summaryrefslogtreecommitdiff
path: root/app/blog/urls.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2014-06-24 12:05:46 -0400
committerluxagraf <sng@luxagraf.net>2014-06-24 12:05:46 -0400
commitcc70aa809252899dfd062feb241aaecede66bd02 (patch)
treeed0468f58a240d1c46d7532eddb3c40e455ee4ff /app/blog/urls.py
parent78d265997ac26aecfb350ccf497ec2de3f3fad4b (diff)
Rewrote all sass and reconfigured HTML to use more microformats and
clearer class names
Diffstat (limited to 'app/blog/urls.py')
-rw-r--r--app/blog/urls.py13
1 files changed, 12 insertions, 1 deletions
diff --git a/app/blog/urls.py b/app/blog/urls.py
index d0a5224..0ac8870 100644
--- a/app/blog/urls.py
+++ b/app/blog/urls.py
@@ -1,10 +1,21 @@
from django.conf.urls import *
from django.views.generic.base import RedirectView
-
+"""
urlpatterns = patterns('',
(r'(?P<slug>[-\w]+)/(?P<page>\d+)/$', 'blog.views.entry_list_by_area'),
(r'(?P<page>\d+)/$', 'blog.views.entry_list'),
(r'(?P<slug>[-\w]+)/$', RedirectView.as_view(url="/writing/%(slug)s/1/")),
(r'', RedirectView.as_view(url="/writing/1/")),
)
+"""
+
+urlpatterns = patterns('',
+ url(r'(?P<year>\d{4})/(?P<month>\d{2})/(?P<slug>[-\w]+)$', 'blog.views.entry_detail'),
+ #url(r'(?P<year>\d{4})/(?P<month>\d{2})/$', 'blog.views.date_list', name="blog_by_month"),
+ #url(r'(?P<year>\d{4})/$', 'blog.views.date_list', name="blog_by_year"),
+ (r'(?P<slug>[-\w]+)/(?P<page>\d+)/$', 'blog.views.entry_list_by_area'),
+ (r'(?P<page>\d+)/$', 'blog.views.entry_list'),
+ url(r'(?P<slug>[-\w]+)/$', RedirectView.as_view(url="/writing/%(slug)s/1/")),
+ #url(r'', RedirectView.as_view(url="/writing/1/")),
+)