-
Notifications
You must be signed in to change notification settings - Fork 0
/
urls.py
120 lines (100 loc) · 3.2 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
from django.conf.urls.defaults import patterns, include, url
from app.views import *
from app.slate import *
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
from django.views.generic.simple import direct_to_template
admin.autodiscover()
urlpatterns = patterns('',
# URLS
(r'^$', splash),
#semi-static
url(r'^about/$', 'app.views.about', name='about'),
url(r'^terms/$', 'app.views.terms', name="terms"),
url(r'^privacy/$', 'app.views.privacy', name="privacy"),
#functionality
url(r'^top/$', 'app.views.splash',{'show':'top'},'splash-top'),
url(r'^started/$', 'app.views.splash',{'show':'started'},'splash-started'),
url(r'^not-started/$', 'app.views.splash',{'show':'not-started'},'splash-not-started'),
# IDEA
url(r'^idea/(?P<idea_id>\w+)/edit/$',
'app.views.idea',
{'edit':'true'},
'edit-idea'
),
url(r'^idea/(?P<idea_id>\w+)/delete/$',
'app.views.delete_idea',
name='delete-idea'
),
url(r'^idea/(?P<idea_id>\w+)/start/$',
'app.views.start_idea',
name='start-idea'
),
url(r'^idea/(?P<idea_id>\w+)/convert_to_slate/$',
'app.slate.convert_idea',
name = 'convert-idea',
),
url(r'^idea/(?P<idea_id>\w+)/$',
'app.views.idea',
name = 'idea',
),
(r'^bookmarklet/idea/$', bookmarklet),
url(r'^search/$',
'app.views.search',
name = 'no-query-search',
),
url(r'^search/(?P<query>[\w|\W]+)/$',
'app.views.search',
name = 'view-search',
),
url(r'^ideas/$',
'app.views.all_ideas',
name = 'all-ideas',
),
# SLATE
url(r'^slate/(?P<slate_id>\w+)/clean/$',
'app.slate.clean_slate',
name='clean-slate'
),
url(r'^slate/(?P<slate_id>\w+)/release/$',
'app.slate.release_slate',
name='release-slate'
),
url(r'^slate/(?P<slate_id>\w+)/$',
'app.slate.view_slate',
name='view-slate'
),
url(r'^slate/$',
'app.slate.slate',
name='slate'
),
url(r'^invite/slate/(?P<slate_id>\w+)/(?P<invite_id>\w+)/(?P<slate_name>[\w\d-]+)/$',
'app.slate.accept_invite',
name='accept-invite'
),
# USERS
url(r'^user/(?P<user_id>\w+)/$',
'app.user.user',
name='view-user'
),
# ADMIN
#url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
url(r'^admin/', include(admin.site.urls)),
# USER MANAGEMENT
(r'^accounts/verify/(?P<id>\w+)/(?P<verify_hash>\w+)/$', verify),
(r'^accounts/register/$', register),
(r'^accounts/profile/$', profile),
url(r'^accounts/password/$',
'app.views.password',
name='password'),
url(r'^accounts/pw_rst/(?P<user_id>\w+)/(?P<hashed>\w+)/$',
'app.views.password_reset',
name='password_reset'),
(r'^accounts/login/$', 'django.contrib.auth.views.login', {'template_name':
'main/login.html'}),
(r'^accounts/logout/$', 'django.contrib.auth.views.logout',
{'next_page':'/accounts/login/'}),
(r'^accounts/facebook/$', facebook),
# API
(r'^api/', include('app.api.urls')),
)