Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added /weblog/ to django_website main urlconf

git-svn-id: http://code.djangoproject.com/svn/djangoproject.com@16 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 0a7a31ba8c81d041a875fca9f06fd77c70a6b9df 1 parent 9d49e48
adrian authored
View
10 django_website/apps/blog/urls/blog.py
@@ -7,9 +7,9 @@
}
urlpatterns = patterns('django.views.generic.date_based',
- (r'(?P<year>\d{4})/(?P<month>\w{3})/(?P<day>\w{2})/(?P<slug>\w+)/', 'object_detail', dict(info_dict, slug_field='slug')),
- (r'(?P<year>\d{4})/(?P<month>\w{3})/(?P<day>\w{2})/', 'archive_day', info_dict),
- (r'(?P<year>\d{4})/(?P<month>\w{3})/', 'archive_month', info_dict),
- (r'(?P<year>\d{4})/', 'archive_year', info_dict),
- (r'/?', 'archive_index', info_dict),
+ (r'^(?P<year>\d{4})/(?P<month>\w{3})/(?P<day>\w{2})/(?P<slug>\w+)/$', 'object_detail', dict(info_dict, slug_field='slug')),
+ (r'^(?P<year>\d{4})/(?P<month>\w{3})/(?P<day>\w{2})/$', 'archive_day', info_dict),
+ (r'^(?P<year>\d{4})/(?P<month>\w{3})/$', 'archive_month', info_dict),
+ (r'^(?P<year>\d{4})/$', 'archive_year', info_dict),
+ (r'^/?$', 'archive_index', info_dict),
)
View
1  django_website/settings/urls/main.py
@@ -1,5 +1,6 @@
from django.conf.urls.defaults import *
urlpatterns = patterns('',
+ (r'^weblog/', include('django_website.apps.blog.urls.blog')),
(r'', include('django.conf.urls.flatfiles')),
)
Please sign in to comment.
Something went wrong with that request. Please try again.