gergelypolonkai-web-django/blog/urls.py
Gergely Polonkai 1765929555 Added Code Chunks support
Currently with inline style sheets. That will definitely change soon.
2013-10-21 00:55:12 +02:00

13 lines
834 B
Python

from django.conf.urls import patterns, url
from blog import views
urlpatterns = patterns('',
url(r'^$', views.index, name='index'),
url(r'^page/(?P<page>\d+)$', views.indexpage, name='indexpage'),
url(r'^tag/(?P<tag>[^/]+)$', views.taglist, name='taglist'),
url(r'^tag/(?P<tag>[^/]+)/page/(?P<page>\d+)$', views.tagpage, name='tagpage'),
url(r'^(?P<year>\d+)/(?P<month>\d+)/(?P<day>\d+)/(?P<slug>[^/]+)$', views.read, name='read'),
url(r'^code-chunk/(?P<language>[^/]+)/(?P<slug>[^/]+)$', views.codechunk, name='codechunk'),
url(r'^feed$', views.feed, name='feed'),
)