Commit 374db800 by Clinton Blackburn

Merge pull request #74 from edx/append-slash

URL Trailing Slash is Optional
parents 1f41d944 d6e5d043
...@@ -202,9 +202,6 @@ MIDDLEWARE_CLASSES = ( ...@@ -202,9 +202,6 @@ MIDDLEWARE_CLASSES = (
# See: https://docs.djangoproject.com/en/dev/ref/settings/#root-urlconf # See: https://docs.djangoproject.com/en/dev/ref/settings/#root-urlconf
ROOT_URLCONF = '{}.urls'.format(SITE_NAME) ROOT_URLCONF = '{}.urls'.format(SITE_NAME)
# See: https://docs.djangoproject.com/en/1.7/ref/settings/#append-slash
APPEND_SLASH = False
# Used to construct LMS URLs; must include a trailing slash # Used to construct LMS URLs; must include a trailing slash
LMS_URL_ROOT = None LMS_URL_ROOT = None
......
...@@ -65,9 +65,9 @@ if settings.DEBUG: # pragma: no cover ...@@ -65,9 +65,9 @@ if settings.DEBUG: # pragma: no cover
# Allow error pages to be tested # Allow error pages to be tested
urlpatterns += patterns( urlpatterns += patterns(
'', '',
url(r'^403$', handler403, name='403'), url(r'^403/$', handler403, name='403'),
url(r'^404$', 'django.views.defaults.page_not_found', name='404'), url(r'^404/$', 'django.views.defaults.page_not_found', name='404'),
url(r'^500$', 'django.views.defaults.server_error', name='500'), url(r'^500/$', 'django.views.defaults.server_error', name='500'),
) )
if os.environ.get('ENABLE_DJANGO_TOOLBAR', False): if os.environ.get('ENABLE_DJANGO_TOOLBAR', False):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment