[Answer]-Urls with ".html" suffix in FlatPages

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'),
)

Leave a comment