Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Made django_website blog entry URLs accepting of single-digit days

git-svn-id: http://code.djangoproject.com/svn/djangoproject.com@19 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit f21cd6f56ba727623492ea27e8b2213319e00a3d 1 parent c92ae09
adrian authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 django_website/apps/blog/urls/blog.py
View
4 django_website/apps/blog/urls/blog.py
@@ -7,8 +7,8 @@
}
urlpatterns = patterns('django.views.generic.date_based',
- (r'^(?P<year>\d{4})/(?P<month>[a-z]{3})/(?P<day>\w{2})/(?P<slug>\w+)/$', 'object_detail', dict(info_dict, slug_field='slug')),
- (r'^(?P<year>\d{4})/(?P<month>[a-z]{3})/(?P<day>\w{2})/$', 'archive_day', info_dict),
+ (r'^(?P<year>\d{4})/(?P<month>[a-z]{3})/(?P<day>\w{1,2})/(?P<slug>\w+)/$', 'object_detail', dict(info_dict, slug_field='slug')),
+ (r'^(?P<year>\d{4})/(?P<month>[a-z]{3})/(?P<day>\w{1,2})/$', 'archive_day', info_dict),
(r'^(?P<year>\d{4})/(?P<month>[a-z]{3})/$', 'archive_month', info_dict),
(r'^(?P<year>\d{4})/$', 'archive_year', info_dict),
(r'^/?$', 'archive_index', info_dict),
Please sign in to comment.
Something went wrong with that request. Please try again.