irgendwie schaffe ich es gerade nicht Django Flatpages zum Laufen zu bekommen. Irgendwas habe ich übersehen...
settings.py:
Code: Alles auswählen
SITE_ID = 1
MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware',
)
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.admin',
'django.contrib.flatpages',
'proj.app',
)
Die Flatpage Middleware habe ich auch schon an den Anfang der Liste gesetzt.
Wenn ich nun versuche http://localhost:8000/informationen/ aufrufe, findet er die Seite nicht. Erhalte einen 404 Error:
Code: Alles auswählen
Using the URLconf defined in k1.urls, Django tried these URL patterns, in this order:
^admin/
^static/(?P<path>.*)$
^$
^neuigkeiten/$
^termine/$
^kontakt/$
The current URL, informationen/, didn't match any of these.