Hi Gary,
You can certainly setup a global static files location. All you need to do
is add a path to STATICFILES_DIRS in your settings file. However, that is
not really necessary. All files that are in a static directory in one app
are accessible in other apps. You can create an app that contains
On 11/07/2015 04:29 PM, René Fleschenberg wrote:
Hi Gary,
In your second example:
├── archive
│ ├── archive
│ │ ├── __init__.py
│ │ ├── settings.py
│ │ ├── urls.py
│ │ └── wsgi.py
│ ├── home
│ ├── static
| | |___home
│ │ ├── home.css
│ │ ├── image
Hi Gary,
> ├── archive
> │ ├── archive
> │ │ ├── __init__.py
> │ │ ├── settings.py
> │ │ ├── urls.py
> │ │ └── wsgi.py
> │ ├── home
> │ │ ├── __init__.py
> │ │ ├── static
> │ │ │ ├── home.css
> │ ├── manage.py
In your first example, "home" is an app (not a proj
Which is the correct file structure for static files
Putting the static files under the individual project as shown with
"home' below:
├── archive
│ ├── archive
│ │ ├── __init__.py
│ │ ├── __init__.pyc
│ │ ├── settings.py
│ │ ├── settings.pyc
│ │ ├── urls.py
│ │ └── ws
4 matches
Mail list logo