djangosnippets.org: Latest snippets tagged with 'STATIC_ROOT'http://djangosnippets.org/tags/static_root/2011-05-18T06:00:35.987012-05:00Serve from STATIC_ROOT
2011-05-18T06:00:35.987012-05:00popen2http://djangosnippets.org/snippets/2439/<p>Assuming you have defined STATIC_ROOT correctly in settings.py, and have installed staticfiles_urlpatterns() in urls.py (as demoed in the code, taken from Django's staticfiles docs), the code from static_root_finder.py can be used to simply serve static files in development from STATIC_ROOT directly, avoiding complicated setups in case we just want to …</p>
Freely redistributable