root / cloudcmsblog / urls.py @ c1468bcc
History | View | Annotate | Download (484 Bytes)
1 |
from django.conf.urls.defaults import patterns, include, url |
---|---|
2 |
from django.conf import settings |
3 |
from django.contrib import admin |
4 |
|
5 |
admin.autodiscover() |
6 |
|
7 |
urlpatterns = patterns('cloudcmsblog.views',
|
8 |
url(r'^$', 'index', name='cloudcmsblog_entries_archive'), |
9 |
url(r'^category/(?P<category>\w+)/$', 'archive', name='cloudcmsblog_entries_archive'), |
10 |
url(r'^(?P<year>\d{4})/(?P<month>\d{2})/(?P<day>\d{2})/(?P<slug>[-\w]+)/$',
|
11 |
'detail', name='cloudcmsblog_entry_detail'), |
12 |
) |
13 |
|