Author: sevein
Date: Tue Nov 30 15:35:22 2010
New Revision: 37
Log:
Use Django settings to save static path.
Modified:
trunk/settings.py.tmpl
trunk/urls.py
Modified: trunk/settings.py.tmpl
==============================================================================
--- trunk/settings.py.tmpl Tue Nov 30 15:31:27 2010 (r36)
+++ trunk/settings.py.tmpl Tue Nov 30 15:35:22 2010 (r37)
@@ -104,3 +104,6 @@
)
LOGIN_URL = '/login/'
+
+# Physical path to static media dir
+STATIC_DOC_ROOT = ''
Modified: trunk/urls.py
==============================================================================
--- trunk/urls.py Tue Nov 30 15:31:27 2010 (r36)
+++ trunk/urls.py Tue Nov 30 15:35:22 2010 (r37)
@@ -25,5 +25,6 @@
if settings.DEBUG:
urlpatterns += patterns('',
- (r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root':
''}),
+ (r'^static/(?P<path>.*)$', 'django.views.static.serve',
+ {'document_root': settings.STATIC_DOC_ROOT}),
)
--
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/qubit-commits?hl=en.