Saturday, October 8, 2011

Re: STATIC_ROOT confusion


Your STATICFILES_DIRS should not be set to static.
Create a new theme directory, put your files there and update your STATICFILES_DIRS.

Yeah, read that post and I disagree. Introducing yet another name on the filesystem (theme) certainly isn't helping people (this thread and many others show there's enough confusion already). It makes more sense to have a 1:1 mapping between variable naming in settings.py and directories on the filesystem e.g. STATIC_ROOT to static_root, STATIC_DIRS to static/<foo>. Plus, Django is not Joomla or Plone or... so thinking in terms of "themes" is semantically wrong as it makes you think of Django as a CMS (one layer to high).

--
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/-/qWxdPCVJEucJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment