Le 8 oct. 2011 à 17:23, Markus Gattol a écrit :
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).
Then forget about STATIC and stick to MEDIA.
I feel the STATIC way is much better for production because it keeps the real static data away from more dynamic data (uploaded or computed files) but it requires some comprehension of what one does.
Regards,
Xavier,
Linovia.
No comments:
Post a Comment