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