Just pull your regular expression into a variable and use re.I or
re.IGNORECASE. Fore example:
urls.py:
from django.conf.urls.defaults import *
import re
re_admin = re.compile(r'^admin/', re.I)
urlpatterns = patterns('',
(re_admin, include('django.contrib.admin.urls')),
)
This will allow a match for any case: /admin/, /aDmiN/, /ADMIN/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---