Django

Code

Changeset 16

Show
Ignore:
Timestamp:
07/14/05 11:03:18 (3 years ago)
Author:
adrian
Message:

Added /weblog/ to django_website main urlconf

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • djangoproject.com/django_website/apps/blog/urls/blog.py

    r13 r16  
    88 
    99urlpatterns = patterns('django.views.generic.date_based', 
    10    (r'(?P<year>\d{4})/(?P<month>\w{3})/(?P<day>\w{2})/(?P<slug>\w+)/', 'object_detail', dict(info_dict, slug_field='slug')), 
    11    (r'(?P<year>\d{4})/(?P<month>\w{3})/(?P<day>\w{2})/', 'archive_day', info_dict), 
    12    (r'(?P<year>\d{4})/(?P<month>\w{3})/', 'archive_month', info_dict), 
    13    (r'(?P<year>\d{4})/', 'archive_year', info_dict), 
    14    (r'/?', 'archive_index', info_dict), 
     10   (r'^(?P<year>\d{4})/(?P<month>\w{3})/(?P<day>\w{2})/(?P<slug>\w+)/$', 'object_detail', dict(info_dict, slug_field='slug')), 
     11   (r'^(?P<year>\d{4})/(?P<month>\w{3})/(?P<day>\w{2})/$', 'archive_day', info_dict), 
     12   (r'^(?P<year>\d{4})/(?P<month>\w{3})/$', 'archive_month', info_dict), 
     13   (r'^(?P<year>\d{4})/$', 'archive_year', info_dict), 
     14   (r'^/?$', 'archive_index', info_dict), 
    1515) 
  • djangoproject.com/django_website/settings/urls/main.py

    r7 r16  
    22 
    33urlpatterns = patterns('', 
     4    (r'^weblog/', include('django_website.apps.blog.urls.blog')), 
    45    (r'', include('django.conf.urls.flatfiles')), 
    56)