Fix: APPEND_SLASH = True funguje

Problémem byl záznam v urls.py pro flatpages, který přijal všechno a
nedovolil tak druhý pokus s lomítkem na konci. Pro flatpages ale stačí
FlatpageFallbackMiddleware v MIDDLEWARE_CLASSES, který odchytává teprve
404.
This commit is contained in:
Matěj Kocián 2015-09-22 18:35:44 +02:00
parent 3400c7a347
commit 6d37b5e8ec

View file

@ -19,8 +19,6 @@ urlpatterns = patterns('',
url(r'^comments_dj/', include('django_comments.urls')), url(r'^comments_dj/', include('django_comments.urls')),
url(r'^comments_fl/', include('fluent_comments.urls')), url(r'^comments_fl/', include('fluent_comments.urls')),
# Obsah - flatpages
url(r'^', include('django.contrib.flatpages.urls')), # Pozor: musi byt posledni
) )
# This is only needed when using runserver. # This is only needed when using runserver.