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...
1 parent c92ae09 commit f21cd6f56ba727623492ea27e8b2213319e00a3d adrian committed Jul 14, 2005
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),

0 comments on commit f21cd6f

Please sign in to comment.