Static templates.
parent
0b8f842a3c
commit
ce532d4145
11
urls.py
11
urls.py
|
@ -68,6 +68,11 @@ urlpatterns = patterns('',
|
|||
url(r'^', include('snipts.urls')),
|
||||
)
|
||||
|
||||
urlpatterns += patterns('',
|
||||
(r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': os.path.join(os.path.dirname(__file__), 'media')}),
|
||||
)
|
||||
if DEBUG:
|
||||
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')}),
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue