From 0873fe36e29b354249e8fb232d90b8572d2cfd97 Mon Sep 17 00:00:00 2001 From: Sanj Date: Thu, 16 Feb 2012 12:25:57 +0530 Subject: [PATCH] route url regex should allow spaces and dashes --- chaloBEST/urls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chaloBEST/urls.py b/chaloBEST/urls.py index c015c00..d6d733a 100644 --- a/chaloBEST/urls.py +++ b/chaloBEST/urls.py @@ -11,7 +11,7 @@ urlpatterns = patterns('', url(r'^$','chaloBEST.views.index', name='index'), url(r'^static/(?P.*)$','django.views.static.serve', {'document_root':'./static'}), (r'^routes/$', 'mumbai.views.routes'), - (r'^route/(?P[a-zA-Z0-9]*?)/$', 'mumbai.views.route'), + (r'^route/(?P[a-zA-Z0-9\s\-]*?)/$', 'mumbai.views.route'), # Uncomment the admin/doc line below to enable admin documentation: (r'^admin/doc/', include('django.contrib.admindocs.urls')), #(r'^grappelli/', include('grappelli.urls')),