Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
ecommerce
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
ecommerce
Commits
374db800
Commit
374db800
authored
Apr 27, 2015
by
Clinton Blackburn
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #74 from edx/append-slash
URL Trailing Slash is Optional
parents
1f41d944
d6e5d043
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
6 deletions
+3
-6
ecommerce/settings/base.py
+0
-3
ecommerce/urls.py
+3
-3
No files found.
ecommerce/settings/base.py
View file @
374db800
...
@@ -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
...
...
ecommerce/urls.py
View file @
374db800
...
@@ -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
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment