-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathurls.py
58 lines (45 loc) · 1.69 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
from django.conf.urls.defaults import *
from django.views.static import serve
urlpatterns = patterns('',
# For now, The home page will be the OPC
('^$',
'django.views.generic.simple.redirect_to',
{'url': '/opc'}
),
# Everything we do will start with the URL opc/
(r'^opc/', include('hackzor.server.urls')),
(r'^accounts/confirm/(?P<activation_key>\w+)/$',
'hackzor.server.views.confirm'),
#For django login, authenticated login
# gets redirected to /accounts/profile
('^accounts/profile/$',
'django.views.generic.simple.redirect_to',
{'url': '/opc'}
),
#Login
(r'^accounts/login/$',
'django.contrib.auth.views.login',
{'template_name' : 'login.html'}),
#Logout
(r'^accounts/logout/$',
'hackzor.server.views.logout_view'),
# Registration Page
(r'^accounts/register/$',
'hackzor.server.views.register'),
# For reseting password
(r'^accounts/resetpassword/$',
'hackzor.server.views.forgot_password'),
# To Change password
(r'^accounts/changepassword/$',
'hackzor.server.views.change_password'),
# To Change Profile Details
(r'^accounts/myaccount/$',
'hackzor.server.views.change_details'),
# Admin Interface
(r'^admin/',
include('django.contrib.admin.urls')),
# For serving static files. (like uploaded files etc.)
# For development Sever only
(r'^(.*)$', 'django.views.static.serve',
{'document_root': 'media'}),
)