Static templates.
parent
ce532d4145
commit
d4f33fd31c
12
urls.py
12
urls.py
|
@ -69,10 +69,10 @@ urlpatterns = patterns('',
|
|||
)
|
||||
|
||||
if DEBUG:
|
||||
urlpatterns += patterns('',
|
||||
(r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': os.path.join(os.path.dirname(__file__), 'media')}),
|
||||
)
|
||||
urlpatterns += patterns('',
|
||||
(r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': os.path.join(os.path.dirname(__file__), 'media')}),
|
||||
)
|
||||
else:
|
||||
urlpatterns += patterns('',
|
||||
(r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': os.path.join(os.path.dirname(__file__), 'static')}),
|
||||
)
|
||||
urlpatterns += patterns('',
|
||||
(r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': os.path.join(os.path.dirname(__file__), 'static')}),
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue