Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[djangoproject.com] APPEND_SLASH = True.

git-svn-id: http://code.djangoproject.com/svn/djangoproject.com@9097 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 89e6747def0c98d4411273d374899d75b65bbe34 1 parent ac70243
jacob authored
Showing with 2 additions and 1 deletion.
  1. +1 −0  djangodocs/settings.py
  2. +1 −1  djangodocs/urls.py
View
1  djangodocs/settings.py
@@ -1,6 +1,7 @@
from django_website.settings import *
PREPEND_WWW = False
+APPEND_SLASH = True
INSTALLED_APPS = ['djangodocs']
TEMPLATE_DIRS = [os.path.join(os.path.dirname(__file__), "templates")] + TEMPLATE_DIRS
TEMPLATE_CONTEXT_PROCESSORS = ['django.core.context_processors.request']
View
2  djangodocs/urls.py
@@ -23,7 +23,7 @@
djangodocs.views.source,
),
url(
- r'^(?P<lang>[a-z-]+)/(?P<version>[\w.-]+)/(?P<url>[\w./-]*)$',
+ r'^(?P<lang>[a-z-]+)/(?P<version>[\w.-]+)/(?P<url>[\w./-]*)/$',
djangodocs.views.document,
),
)
Please sign in to comment.
Something went wrong with that request. Please try again.