-
Notifications
You must be signed in to change notification settings - Fork 0
/
urls.py
49 lines (42 loc) · 1.6 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
from django.conf.urls.defaults import *
from django.conf import settings
from nankin.services.feed import LatestJot
# Uncomment the next two lines to enable the admin:
handler404 = 'nankin.views.page_not_found'
feeds = {
'latest': LatestJot,
}
urlpatterns = patterns('nankin.views',
# Example:
# (r'^mindgames/', include('mindgames.foo.urls')),
# Uncomment the admin/doc line below and add 'django.contrib.admindocs'
# to INSTALLED_APPS to enable admin documentation:
# (r'^admin/doc/', include('django.contrib.admindocs.urls')),
# Uncomment the next line to enable the admin:
# Core App
(r'^$', 'index'),
(r'^about/', 'about'),
(r'^news/', 'news'),
(r'^publish/', 'publish'),
(r'^createpage/', 'create_page'),
(r'^accounts/login/', 'login'),
(r'^accounts/logout/', 'logout'),
(r'^post/', 'post'),
(r'^page/(?P<path>[a-zA-Z0-9_-]*)/$', 'page'),
(r'^page/(?P<path>[a-zA-Z0-9_-]*)/create/$', 'publish_page'),
(r'^view/(?P<key>.*)/', 'view'),
(r'^search/tag/(?P<tag>.*)/', 'view_by_tag'),
(r'^comment/(?P<key>.*)/', 'comment'),
(r'^vote/', 'vote'),
(r'^404/', 'page_not_found'),
(r'^edit/(?P<key>.*)/', 'edit'),
(r'^delete/(?P<key>.*)/', 'delete'),
(r'rpc_relay.html', 'friend_connect', {'template':'rpc_relay.html'}),
(r'canvas.html', 'friend_connect', {'template':'canvas.html'}),
#(r'^wantown/upload/', 'upload'),
)
urlpatterns += patterns('',
(r'^feeds/(?P<url>.*)/$',
'django.contrib.syndication.views.feed', {'feed_dict': feeds}
),
)