Browse Source

Priprava na Django 1.9.

remotes/origin/opraf
parent
commit
85a2a10bf0
  1. 8
      mamweb/urls.py

8
mamweb/urls.py

@ -5,7 +5,7 @@ from django.contrib import admin
from django.conf import settings
from django.views.generic.base import TemplateView
urlpatterns = patterns('',
urlpatterns = [
# Admin a nastroje
url(r'^admin/', include(admin.site.urls)), # NOQA
@ -22,11 +22,11 @@ urlpatterns = patterns('',
url(r'^comments_dj/', include('django_comments.urls')),
url(r'^comments_fl/', include('fluent_comments.urls')),
)
]
# This is only needed when using runserver.
if settings.DEBUG:
urlpatterns = patterns('',
urlpatterns = [
url(r'^media/(?P<path>.*)$', 'django.views.static.serve', # NOQA
{'document_root': settings.MEDIA_ROOT, 'show_indexes': True}),
) + staticfiles_urlpatterns() + urlpatterns # NOQA
] + staticfiles_urlpatterns() + urlpatterns # NOQA

Loading…
Cancel
Save