Skip to content

Commit

Permalink
Wrote down the url naming convention in urls.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dduan committed Jul 30, 2010
1 parent 11352d5 commit 41921be
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions sophie/urls.py
@@ -1,3 +1,11 @@
'''
URLs are named following this convention:
sophie_[part name]_[page type]_url
Where the page type is 'details', there shoudl be a '[part name]_slug' field.
'''

from django.conf.urls.defaults import *

from sophie.models import Blog
Expand All @@ -15,9 +23,9 @@

# Feed urls
urlpatterns = patterns('',
url(r'^%sfeed/$' % (blog_bit), BlogFeed(), name='sophie_blog_feed'),
url(r'^%sfeed/$' % (blog_bit), BlogFeed(), name='sophie_blog_feed_url'),
url(r'^%scategory/%s/feed/$' % (blog_bit, slug_bit % 'category'),
CategoryFeed(), name='sophie_category_feed'
CategoryFeed(), name='sophie_category_feed_url'
),
)

Expand Down

0 comments on commit 41921be

Please sign in to comment.