-
Notifications
You must be signed in to change notification settings - Fork 2
/
urls.py
41 lines (35 loc) · 1.82 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
from django.conf.urls import patterns, include, url
from agora.feed import LatestEntriesFeed
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
urlpatterns = patterns('',
url(r'^$', 'agora.views.home', name='home'),
url(r"^newcomments", "agora.views.newcomments", name="newcomments"),
url(r"^new", "agora.views.new", name="new"),
url(r"^post/(?P<post_id>\d+)", "agora.views.post", name="post"),
url(r"^user/(?P<username>\w+)", "agora.views.user", name="user"),
url(r"^login", "agora.views.login", name="login"),
url(r"^register", "agora.views.register", name="register"),
url(r"^logout", "agora.views.logout", name="logout"),
url(r"^submit", "agora.views.submit", name="submit"),
url(r"^comment", "agora.views.comment", name="comment"),
url(r"^upvote", "agora.views.upvote", name="upvote"),
url(r"^downvote", "agora.views.downvote", name="downvote"),
url(r"^faq", "agora.views.faq", name="faq"),
url(r"^featreq", "agora.views.featreq", name="featreq"),
url(r"^guidelines", "agora.views.guidelines", name="guidelines"),
url(r"^rss", LatestEntriesFeed()),
url(r"^lists", "agora.lists.main", name="lists"),
url(r"^notifications/read-all", "agora.views.read_all"),
url(r"^user_comments/(?P<username>\w+)", "agora.views.user_comments"),
url(r"^user_posts/(?P<username>\w+)", "agora.views.user_posts"),
url(r"^user_settings", "agora.views.user_settings"),
# Examples:
# url(r'^$', 'haknews.views.home', name='home'),
# url(r'^haknews/', include('haknews.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)),
)