Django Urlpatterns Order
I ran into a problem loading the admin section of my django site with the following error: No FlatPage matches the given query. I managed to solve the problem, but I'm attempting
Solution 1:
The problem is that you have not installed the flatpages application correctly. Django's flatpages application relies on a piece of middleware that intercepts 404 requests. As a result, you do not need to add django.contrib.flatpages.urls
to your urls.py
.
You received that error because the regex you are using (''
) matches all URLs. As a result, the urlpattern never reached ^admin/'
.
Post a Comment for "Django Urlpatterns Order"