-
Notifications
You must be signed in to change notification settings - Fork 2
/
urls.py
90 lines (70 loc) · 3.12 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
import os
from django.conf.urls.defaults import *
from django.contrib import admin
import registration.views
import blog.views
import lectures.views
import newrooms.views
import common.views
from blog.feeds import *
feeds = {
'blog': LatestBlogEntries,
}
admin.autodiscover()
urlpatterns = patterns('',
# Example:
# (r'^zapisy_zosia/', include('zapisy_zosia.foo.urls')),
(r'^$', blog.views.index),
(r'^rooms/$', newrooms.views.index),
(r'^rooms/list.json$', newrooms.views.json_rooms_list),
#(r'^rooms/fill/$', newrooms.views.fill_rooms),
(r'^rooms/modify/$', newrooms.views.modify_room),
(r'^rooms/open/$', newrooms.views.open_room),
(r'^rooms/close/$', newrooms.views.close_room),
(r'^rooms/trytogetin/$', newrooms.views.trytogetin_room),
(r'^leave_room/$', newrooms.views.leave_room),
(r'^blog/$', blog.views.index),
# rss feed
(r'^feeds/(?P<url>.*)/$', 'django.contrib.syndication.views.feed',
{'feed_dict': feeds}),
# admin related
(r'^admin/register_payment/$', registration.views.register_payment),
# TODO(Karol): we disable separate transportation payment for this edition.
# (r'^admin/register_bus_payment/$', registration.views.register_bus_payment),
url(r'^admin/', include(admin.site.urls)),
# registration related
(r'^register/$', registration.views.register),
(r'^register/thanks/$', registration.views.thanks),
(r'^register/regulations/$', registration.views.regulations),
# (r'^register/add_org/$', registration.views.add_organization),
(r'^register/activate/(?P<uidb36>[0-9A-Za-z]+)-(?P<token>.+)/$', registration.views.activate_user),
(r'^change_preferences/$', registration.views.change_preferences),
# login / logout
(r'^login/$', common.views.login_view),
(r'^accounts/login/', common.views.login_view),
(r'^logout/$', common.views.logout_view),
(r'^logout/bye/$', common.views.thanks),
# apps main urls
(r'^lectures/$', lectures.views.index),
(r'^program/$', lectures.views.program),
# static media
# note, that this should be disabled for production code
# (may be disabled outside of django, though)
(r'^static_media/(?P<path>.*)$', 'django.views.static.serve',
{'document_root': os.getcwd()+os.sep+'static_media', 'show_indexes': True}),
# urls required for password change/reset
(r'^password_change/$', common.views.password_change),
(r'^password_change/done/$', common.views.password_change_done),
(r'^password_reset/$',
'django.contrib.auth.views.password_reset',
{ 'template_name':'password_reset_form.html' }),
(r'^password_reset/done/$',
'django.contrib.auth.views.password_reset_done',
{ 'template_name':'password_reset_done.html' }),
(r'^reset/(?P<uidb36>[0-9A-Za-z]+)-(?P<token>.+)/$',
'django.contrib.auth.views.password_reset_confirm',
{ 'template_name':'password_reset_confirm.html' }),
(r'^reset/done/$',
'django.contrib.auth.views.password_reset_complete',
{ 'template_name':'password_reset_complete.html' }),
)