Hi,

One thing I've seen - and adopted - is to have one application that contains 
the static files.
It looks like:

> └── mysite
>     ├── __init__.py
>     ├── settings.py
>     ├── theme
>         ├── __init__.py
>         ├── models.py (empty file)
>         └── static


>     ├── static
>     ├── templates
>     ├── urls.py
>     └── wsgi.py


Then you add the application in your INSTALLED_APPS and you're done.

Regards,
Xavier Ordoquy,
Linovia.

Le 4 nov. 2012 à 00:23, Ryan <ryan.osborn...@gmail.com> a écrit :

> Hi,
> 
> I have been wondering where people put their non-app-specific static files in 
> their django projects?  For example, the base css file that applies to all 
> pages across the project or perhaps the jquery file?
> 
> Currently I have the following structure:
> 
> .
> ├── app
> │   ├── __init__.py
> │   ├── models.py
> │   ├── static
> │   │   └── app
> │   │       ├── css
> │   │       ├── img
> │   │       └── js
> │   ├── templates
> │   │   └── app
> │   ├── tests.py
> │   └── views.py
> ├── manage.py
> └── mysite
>     ├── __init__.py
>     ├── settings.py
>     ├── static
>     ├── templates
>     ├── urls.py
>     └── wsgi.py
> 
> My STATIC_ROOT setting points to the ./mysite/static directory as this is 
> where I would like collectstatic to dump all the static files for deployment, 
> however this is also the obvious place (for me anyway) to place 
> non-app-specific static files as they apply to the project as a whole like 
> the templates directory at this level.
> 
> Does any one have any input on this?
> 
> Thanks,
> 
> Ryan
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To view this discussion on the web visit 
> https://groups.google.com/d/msg/django-users/-/4H39KqmnTugJ.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to