urls.py
author Simon Descarpentries <sid@sopinspace.com>
Wed, 09 May 2012 17:13:33 +0200
changeset 417 c5e91f204371
parent 0 40c8f766c9b8
permissions -rw-r--r--
After investigations, commit the proposed patch by kklimonda presented with the following introduction : cm/templates/site/login_form.html template uses a relative url for the form action, which seems to break deployment in the subfolder when trailing slash is missing (the form redirects to the upper folder breaking login). Using {% url login %} (as in the attached patch) instead would fix the issue.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     1
from django.conf.urls.defaults import *
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     2
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     3
# Uncomment the next two lines to enable the admin:
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     4
from django.contrib import admin
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     5
admin.autodiscover()
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     6
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     7
urlpatterns = patterns('',
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     8
    (r'^admin/', include(admin.site.urls)),    
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     9
    
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    10
    (r'', include('cm.urls')),
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    11
)
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    12
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    13
try :
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    14
    import urls_local
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    15
except ImportError :
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    16
    pass