]> git.sommitrealweird.co.uk Git - sommitrealweird.git/blob - sommitrealweird/blog/urls.py
Make menu items more seperated
[sommitrealweird.git] / sommitrealweird / blog / urls.py
1 from django.conf.urls.defaults import *
2 from settings import MEDIA_ROOT, MEDIA_URL
3
4 urlpatterns = patterns('',
5     (r'^(?P<year>[0-9]{4})/(?P<month>[0-9]{2})/(?P<day>[0-9]{2})/(?P<slug>[^/]+)(/|)$', 'blog.views.blog_view'),
6     (r'^(?P<year>[0-9]{4})(?P<month>[0-9]{2})(?P<day>[0-9]{2})-(?P<slug>[^/]+)\.html$', 'blog.views.blog_view'),
7     (r'^(?P<year>[0-9]{4})(?P<month>[0-9]{2})(?P<day>[0-9]{2})(?P<hour>[0-9]{2})(?P<minutes>[0-9]{2})-(?P<slug>[^/]+)\.html$', 'blog.views.blog_view'),
8     (r'^section/(?P<section>[^/]*)/$', 'blog.views.blog_index'),
9     (r'^$', 'blog.views.blog_index'),
10 )