-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathurls.py
30 lines (26 loc) · 1.24 KB
/
urls.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
from django.conf.urls.defaults import patterns, include, url
from myblog.blog.views import BlogFeed
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'myblog.views.home', name='home'),
# url(r'^myblog/', include('myblog.foo.urls')),
# Uncomment the admin/doc line below to enable admin documentation:
# url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
# Uncomment the next line to enable the admin:
# url(r'^admin/', include(admin.site.urls)),
(r'^$', 'myblog.blog.views.view_posts_list'),
(r'l/(\d*)/([^/]*)', 'myblog.blog.views.view_posts_list'),
(r'postblog/$', 'myblog.blog.views.post_blog'),
(r'newauthor/$', 'myblog.blog.views.add_author'),
(r'p/([^/]+)/([^/]*)', 'myblog.blog.views.view_post_content'),
(r'id/(\d+)/([^/]*)', 'myblog.blog.views.view_post_by_id'),
(r'author/([^/]+)/', 'myblog.blog.views.view_author'),
(r'feed/$', BlogFeed()),
(r'postcomment/(\d+)/$', 'myblog.blog.views.post_comment'),
(r'settings/$', 'myblog.blog.views.set_config'),
(r'tag/(\d+)/(\d*)$', 'myblog.blog.views.view_tag'),
(r'about/$', 'myblog.blog.views.view_about'),
)