0👍
✅
I’ve just removed FlatPages middleware from settings and added this line to the end of my urlpatterns:
url(r'^(?P<url>.*)', 'django.contrib.flatpages.views.flatpage'),
1👍
I think, it is only possible with explicit urls in urls.py
try this.
urlpatterns += patterns('django.contrib.flatpages.views',
url(r'^about/policy.html$', 'flatpage', {'url': '/about/policy.html'}, name='policy'),
)
- [Answer]-Complex Ordering In Django with respect to related models
- [Answer]-Failed to to turn django staff flag on programatically
- [Answer]-Is calling is_valid() on a form that has hidden values required?
Source:stackexchange.com