[Answered ]-Django flatpages and redirects app – case-sensitivity

2👍

Create your own urls.py based on the flatpages urls.py and make the regex case insentive by using ?(i):

from django.conf.urls import url
from django.contrib.flatpages import views
urlpatterns = [
    url(r'^(?i)(?P<url>.*)$', views.flatpage, name='django.contrib.flatpages.views.flatpage'),
]

and include it in your root urls.py

urlpatterns = patterns('',
    ...
    url(r'^', include('myapp.urls')),
    ...
)

Leave a comment