author | nishanth |
Wed, 21 Jul 2010 12:57:58 +0530 | |
branch | anoop |
changeset 150 | c5afcbaab4e6 |
parent 149 | 1f53ccd82a21 |
child 151 | c5915459e48b |
permissions | -rw-r--r-- |
15 | 1 |
from django.shortcuts import render_to_response, redirect |
98 | 2 |
from django.http import HttpResponse, Http404 |
65
0ca63c964237
now login is required for accessing stats and send_invi pages
nishanth
parents:
57
diff
changeset
|
3 |
from django.contrib.auth.decorators import login_required |
97 | 4 |
from django.utils.datastructures import MultiValueDictKeyError |
7 | 5 |
|
67 | 6 |
from django.contrib.auth import authenticate, login, logout |
7 |
||
120
f9408ab30ace
created the basic view and template for confirming participation in sage days
nishanth
parents:
118
diff
changeset
|
8 |
from sage_days.sdi.models import Registrant, RegistrantInfo, ParticipantInfo |
124
d4a7644e7fe8
created a form for taking participant info and used it in the view
nishanth
parents:
123
diff
changeset
|
9 |
from sage_days.sdi.forms import RegisterForm, SearchForm, EmailForm, LoginForm, UserSelectForm, ParticipantInfoForm |
149
1f53ccd82a21
included the send_cnf_email event in views but right now, it is commented
nishanth
parents:
148
diff
changeset
|
10 |
from sage_days.sdi.events import send_reg_complete_mail, mail_invi, send_sgd_ptc_confirm, send_cnf_email |
72 | 11 |
from sage_days.settings import APACHE_URL_PREFIX as aup |
7 | 12 |
|
13 |
def register(request): |
|
14 |
""" The user register page. |
|
15 |
""" |
|
16 |
||
9 | 17 |
if request.method == "POST": |
14 | 18 |
form = RegisterForm(request.POST) |
19 |
if form.is_valid(): |
|
136
b68ff7095ca5
added the registrantinfo creation part in register view
nishanth
parents:
130
diff
changeset
|
20 |
user = form.save() |
53 | 21 |
|
22 |
data = form.cleaned_data |
|
23 |
first_name = data['first_name'] |
|
24 |
last_name = data['last_name'] |
|
25 |
email = data['email'] |
|
26 |
send_reg_complete_mail(email, first_name, last_name) |
|
27 |
||
136
b68ff7095ca5
added the registrantinfo creation part in register view
nishanth
parents:
130
diff
changeset
|
28 |
user_info = RegistrantInfo() |
b68ff7095ca5
added the registrantinfo creation part in register view
nishanth
parents:
130
diff
changeset
|
29 |
user_info.registrant = user |
b68ff7095ca5
added the registrantinfo creation part in register view
nishanth
parents:
130
diff
changeset
|
30 |
user_info.status_of_attending_sagedays = "1" |
b68ff7095ca5
added the registrantinfo creation part in register view
nishanth
parents:
130
diff
changeset
|
31 |
user_info.status_of_attending_workshop = True if user.need_for_python_workshop else False |
b68ff7095ca5
added the registrantinfo creation part in register view
nishanth
parents:
130
diff
changeset
|
32 |
user_info.status_of_accomodation = "1" if user.acco_required else "0" |
b68ff7095ca5
added the registrantinfo creation part in register view
nishanth
parents:
130
diff
changeset
|
33 |
user_info.save() |
b68ff7095ca5
added the registrantinfo creation part in register view
nishanth
parents:
130
diff
changeset
|
34 |
|
26
212fcba4459e
changed the app to work with apache + added base.html, and did needed changes.
anoop
parents:
25
diff
changeset
|
35 |
return redirect("/sage_days/registration/complete") |
14 | 36 |
else: |
37 |
return render_to_response("register.html", {"form":form}) |
|
9 | 38 |
else: |
39 |
form = RegisterForm() |
|
40 |
return render_to_response("register.html", {"form":form}) |
|
22 | 41 |
|
42 |
def reg_complete(request): |
|
43 |
""" Tell the registration is successful. |
|
44 |
""" |
|
45 |
||
46 |
return render_to_response("reg_complete.html") |
|
23 | 47 |
|
65
0ca63c964237
now login is required for accessing stats and send_invi pages
nishanth
parents:
57
diff
changeset
|
48 |
@login_required |
23 | 49 |
def list_stats(request): |
50 |
""" List the statiscs of registered participants. |
|
51 |
""" |
|
52 |
||
24
f79be1dd4a22
added clean methods for each attribute in search form
nishanth
parents:
23
diff
changeset
|
53 |
if request.method == "POST": |
f79be1dd4a22
added clean methods for each attribute in search form
nishanth
parents:
23
diff
changeset
|
54 |
form = SearchForm(request.POST) |
f79be1dd4a22
added clean methods for each attribute in search form
nishanth
parents:
23
diff
changeset
|
55 |
if form.is_valid(): |
25 | 56 |
data = form.cleaned_data |
79
064ff60025d9
removed the need_python_workshop and need_acco fields since they are very confusing
nishanth
parents:
77
diff
changeset
|
57 |
|
064ff60025d9
removed the need_python_workshop and need_acco fields since they are very confusing
nishanth
parents:
77
diff
changeset
|
58 |
#need_workshop = data['need_for_python_workshop'] |
064ff60025d9
removed the need_python_workshop and need_acco fields since they are very confusing
nishanth
parents:
77
diff
changeset
|
59 |
#acco_required = data['need_accomodation'] |
064ff60025d9
removed the need_python_workshop and need_acco fields since they are very confusing
nishanth
parents:
77
diff
changeset
|
60 |
#db_query = "Registrant.objects.filter(need_for_python_workshop=%s, acco_required=%s)"%(need_workshop, acco_required) |
064ff60025d9
removed the need_python_workshop and need_acco fields since they are very confusing
nishanth
parents:
77
diff
changeset
|
61 |
db_query = "Registrant.objects" |
25 | 62 |
|
63 |
topics_include, topics_exclude = data['topics_interested'] |
|
64 |
for number in topics_include: |
|
65 |
db_query += '.filter(topics_interested__contains="%s")'%number |
|
66 |
||
67 |
for number in topics_exclude: |
|
68 |
db_query += '.exclude(topics_interested__contains="%s")'%number |
|
69 |
||
70 |
start_python, stop_python = data['knowledge_of_python'] |
|
71 |
if start_python and stop_python: |
|
72 |
db_query += '.filter(knowledge_of_python__gte="%s")'%start_python |
|
73 |
db_query += '.filter(knowledge_of_python__lte="%s")'%stop_python |
|
74 |
elif start_python: |
|
75 |
db_query += '.filter(knowledge_of_python__exact="%s")'%start_python |
|
76 |
||
77 |
start_sage, stop_sage = data['knowledge_of_sage'] |
|
78 |
if start_sage and stop_sage: |
|
79 |
db_query += '.filter(knowledge_of_sage__gte="%s")'%start_sage |
|
80 |
db_query += '.filter(knowledge_of_sage__lte="%s")'%stop_sage |
|
81 |
elif start_sage: |
|
82 |
db_query += '.filter(knowledge_of_sage__exact="%s")'%start_sage |
|
83 |
||
84 |
start_likeliness, stop_likeliness = data['likeliness_of_attending'] |
|
85 |
if start_likeliness and stop_likeliness: |
|
86 |
db_query += '.filter(likeliness_of_attending__gte="%s")'%start_likeliness |
|
87 |
db_query += '.filter(likeliness_of_attending__lte="%s")'%stop_likeliness |
|
88 |
elif start_likeliness: |
|
89 |
db_query += '.filter(likeliness_of_attending__exact="%s")'%start_likeliness |
|
90 |
||
80
c200156c80a9
fixed a bug that arises when a query does not have any parameters to filter
nishanth
parents:
79
diff
changeset
|
91 |
db_query += ".all()" |
c200156c80a9
fixed a bug that arises when a query does not have any parameters to filter
nishanth
parents:
79
diff
changeset
|
92 |
|
25 | 93 |
matches = eval(db_query) |
94 |
return render_to_response("list_stats.html", {"form":form, 'matches':matches}) |
|
24
f79be1dd4a22
added clean methods for each attribute in search form
nishanth
parents:
23
diff
changeset
|
95 |
else: |
f79be1dd4a22
added clean methods for each attribute in search form
nishanth
parents:
23
diff
changeset
|
96 |
return render_to_response("list_stats.html", {"form":form}) |
f79be1dd4a22
added clean methods for each attribute in search form
nishanth
parents:
23
diff
changeset
|
97 |
else: |
f79be1dd4a22
added clean methods for each attribute in search form
nishanth
parents:
23
diff
changeset
|
98 |
form = SearchForm() |
f79be1dd4a22
added clean methods for each attribute in search form
nishanth
parents:
23
diff
changeset
|
99 |
return render_to_response("list_stats.html", {"form":form}) |
26
212fcba4459e
changed the app to work with apache + added base.html, and did needed changes.
anoop
parents:
25
diff
changeset
|
100 |
|
65
0ca63c964237
now login is required for accessing stats and send_invi pages
nishanth
parents:
57
diff
changeset
|
101 |
@login_required |
56 | 102 |
def send_invi(request): |
103 |
""" Take a list of csv email addresses and send mails to them. |
|
104 |
""" |
|
105 |
||
106 |
if request.method == "POST": |
|
107 |
form = EmailForm(request.POST) |
|
108 |
if form.is_valid(): |
|
109 |
to_emails = form.cleaned_data['emails'] |
|
110 |
mail_invi(to_emails) |
|
111 |
return render_to_response("send_invi.html", {"emails":to_emails}) |
|
112 |
else: |
|
113 |
return render_to_response("send_invi.html", {"form":form}) |
|
114 |
else: |
|
57 | 115 |
form = EmailForm() |
56 | 116 |
return render_to_response("send_invi.html", {"form":form}) |
117 |
||
86 | 118 |
@login_required |
119 |
def send_workshop_confirm(request): |
|
120 |
""" Show a list of all the ppl who requested for a workshop and |
|
121 |
send a confirmation mail to them if not sent. |
|
122 |
""" |
|
123 |
||
88 | 124 |
matches = Registrant.objects.filter(need_for_python_workshop=True, registrantinfo__status_of_attending_workshop="1") |
86 | 125 |
if request.method == "POST": |
93
505989755cd8
modified the form and implemented the view to display selected users
nishanth
parents:
92
diff
changeset
|
126 |
form = UserSelectForm(matches, request.POST) |
505989755cd8
modified the form and implemented the view to display selected users
nishanth
parents:
92
diff
changeset
|
127 |
if form.is_valid(): |
505989755cd8
modified the form and implemented the view to display selected users
nishanth
parents:
92
diff
changeset
|
128 |
selected_users = form.cleaned_data['selected_users'] |
505989755cd8
modified the form and implemented the view to display selected users
nishanth
parents:
92
diff
changeset
|
129 |
return render_to_response("sent_wsp_confirm.html", {"selected_users":selected_users}) |
505989755cd8
modified the form and implemented the view to display selected users
nishanth
parents:
92
diff
changeset
|
130 |
else: |
505989755cd8
modified the form and implemented the view to display selected users
nishanth
parents:
92
diff
changeset
|
131 |
return render_to_response("send_workshop_confirm.html", {"matches":matches}) |
86 | 132 |
else: |
93
505989755cd8
modified the form and implemented the view to display selected users
nishanth
parents:
92
diff
changeset
|
133 |
return render_to_response("send_workshop_confirm.html", {"matches":matches}) |
86 | 134 |
|
108
9363e5121f9b
added the GET part of view for sending event confirmation emails
nishanth
parents:
107
diff
changeset
|
135 |
@login_required |
9363e5121f9b
added the GET part of view for sending event confirmation emails
nishanth
parents:
107
diff
changeset
|
136 |
def send_sagedays_confirm(request): |
9363e5121f9b
added the GET part of view for sending event confirmation emails
nishanth
parents:
107
diff
changeset
|
137 |
""" filter out ppl depending on their status and display accordingly. |
9363e5121f9b
added the GET part of view for sending event confirmation emails
nishanth
parents:
107
diff
changeset
|
138 |
""" |
9363e5121f9b
added the GET part of view for sending event confirmation emails
nishanth
parents:
107
diff
changeset
|
139 |
|
146 | 140 |
attending_ppl = Registrant.objects.filter(registrantinfo__status_of_attending_sagedays ="3") |
141 |
not_confirmed_ppl = Registrant.objects.filter(registrantinfo__status_of_attending_sagedays ="2") |
|
142 |
not_selected_ppl = Registrant.objects.filter(registrantinfo__status_of_attending_sagedays ="1") |
|
108
9363e5121f9b
added the GET part of view for sending event confirmation emails
nishanth
parents:
107
diff
changeset
|
143 |
|
115 | 144 |
user_choices = list(not_selected_ppl) + list(not_confirmed_ppl) |
108
9363e5121f9b
added the GET part of view for sending event confirmation emails
nishanth
parents:
107
diff
changeset
|
145 |
form = UserSelectForm(user_choices, request.POST) |
9363e5121f9b
added the GET part of view for sending event confirmation emails
nishanth
parents:
107
diff
changeset
|
146 |
|
9363e5121f9b
added the GET part of view for sending event confirmation emails
nishanth
parents:
107
diff
changeset
|
147 |
if request.method == "POST" and form.is_valid(): |
112 | 148 |
selected_users = form.cleaned_data['selected_users'] |
114
aa5c29984e84
now the send_sgd_cnf view does the updating of user record
nishanth
parents:
113
diff
changeset
|
149 |
for user in selected_users: |
117 | 150 |
user_info = user.registrantinfo_set.all()[0] |
114
aa5c29984e84
now the send_sgd_cnf view does the updating of user record
nishanth
parents:
113
diff
changeset
|
151 |
user_info.status_of_attending_sagedays = "2" |
aa5c29984e84
now the send_sgd_cnf view does the updating of user record
nishanth
parents:
113
diff
changeset
|
152 |
user_info.save() |
118
6c3602582f9f
included the send_mail and created the corresponding event in events
nishanth
parents:
117
diff
changeset
|
153 |
|
137
02a5304a2c5f
fixed a typo and corrected at various places accordingly
nishanth
parents:
136
diff
changeset
|
154 |
send_sgd_ptc_confirm(user) |
114
aa5c29984e84
now the send_sgd_cnf view does the updating of user record
nishanth
parents:
113
diff
changeset
|
155 |
|
116
54ced1b9e010
fixed a typo and added new template for confirmation of sending mail to selected participants
nishanth
parents:
115
diff
changeset
|
156 |
return render_to_response("sent_sgd_confirm.html", {"selected_users":selected_users}) |
108
9363e5121f9b
added the GET part of view for sending event confirmation emails
nishanth
parents:
107
diff
changeset
|
157 |
else: |
111 | 158 |
return render_to_response("send_sgd_cnf.html", {"attending":attending_ppl, |
108
9363e5121f9b
added the GET part of view for sending event confirmation emails
nishanth
parents:
107
diff
changeset
|
159 |
"not_confirmed":not_confirmed_ppl, |
9363e5121f9b
added the GET part of view for sending event confirmation emails
nishanth
parents:
107
diff
changeset
|
160 |
"not_selected":not_selected_ppl, |
110 | 161 |
}) |
108
9363e5121f9b
added the GET part of view for sending event confirmation emails
nishanth
parents:
107
diff
changeset
|
162 |
|
95
ab554d46fd34
created basic view for confirmation of wsp participation
nishanth
parents:
93
diff
changeset
|
163 |
def confirm_wsp_participation(request, uid): |
ab554d46fd34
created basic view for confirmation of wsp participation
nishanth
parents:
93
diff
changeset
|
164 |
""" match id versus email and take lappy details. |
ab554d46fd34
created basic view for confirmation of wsp participation
nishanth
parents:
93
diff
changeset
|
165 |
""" |
ab554d46fd34
created basic view for confirmation of wsp participation
nishanth
parents:
93
diff
changeset
|
166 |
|
99 | 167 |
try: |
168 |
email = request.GET['email'] |
|
169 |
except MultiValueDictKeyError: |
|
170 |
raise Http404 |
|
171 |
||
172 |
try: |
|
173 |
user = Registrant.objects.get(id=uid, email=email) |
|
174 |
except Registrant.DoesNotExist: |
|
175 |
raise Http404 |
|
176 |
||
100 | 177 |
user_info = user.registrantinfo_set.all()[0] |
123 | 178 |
status = user_info.status_of_attending_workshop |
99 | 179 |
if status == "3": |
180 |
return render_to_response("attending_wsp.html") |
|
181 |
elif status != "2": |
|
182 |
raise Http404 |
|
183 |
||
95
ab554d46fd34
created basic view for confirmation of wsp participation
nishanth
parents:
93
diff
changeset
|
184 |
if request.method == "POST": |
104
7630d7f3613a
added template for thanking for participation in workshop
nishanth
parents:
102
diff
changeset
|
185 |
try: |
7630d7f3613a
added template for thanking for participation in workshop
nishanth
parents:
102
diff
changeset
|
186 |
has_laptop = request.POST['lap_status'] |
7630d7f3613a
added template for thanking for participation in workshop
nishanth
parents:
102
diff
changeset
|
187 |
except MultiValueDictKeyError: |
7630d7f3613a
added template for thanking for participation in workshop
nishanth
parents:
102
diff
changeset
|
188 |
return render_to_response("cnf_wsp_ptc.html", {"user":user}) |
7630d7f3613a
added template for thanking for participation in workshop
nishanth
parents:
102
diff
changeset
|
189 |
|
106 | 190 |
user_info.status_of_attending_workshop = "3" |
107 | 191 |
user_info.has_laptop_for_workshop = True if has_laptop == "True" else False |
106 | 192 |
user_info.save() |
193 |
||
104
7630d7f3613a
added template for thanking for participation in workshop
nishanth
parents:
102
diff
changeset
|
194 |
return render_to_response("attending_wsp.html") |
95
ab554d46fd34
created basic view for confirmation of wsp participation
nishanth
parents:
93
diff
changeset
|
195 |
else: |
102 | 196 |
return render_to_response("cnf_wsp_ptc.html", {"user":user}) |
95
ab554d46fd34
created basic view for confirmation of wsp participation
nishanth
parents:
93
diff
changeset
|
197 |
|
120
f9408ab30ace
created the basic view and template for confirming participation in sage days
nishanth
parents:
118
diff
changeset
|
198 |
def confirm_sgd_participation(request, uid): |
f9408ab30ace
created the basic view and template for confirming participation in sage days
nishanth
parents:
118
diff
changeset
|
199 |
""" match id versus email and take lappy details. |
f9408ab30ace
created the basic view and template for confirming participation in sage days
nishanth
parents:
118
diff
changeset
|
200 |
""" |
f9408ab30ace
created the basic view and template for confirming participation in sage days
nishanth
parents:
118
diff
changeset
|
201 |
|
f9408ab30ace
created the basic view and template for confirming participation in sage days
nishanth
parents:
118
diff
changeset
|
202 |
try: |
f9408ab30ace
created the basic view and template for confirming participation in sage days
nishanth
parents:
118
diff
changeset
|
203 |
email = request.GET['email'] |
f9408ab30ace
created the basic view and template for confirming participation in sage days
nishanth
parents:
118
diff
changeset
|
204 |
except MultiValueDictKeyError: |
f9408ab30ace
created the basic view and template for confirming participation in sage days
nishanth
parents:
118
diff
changeset
|
205 |
raise Http404 |
f9408ab30ace
created the basic view and template for confirming participation in sage days
nishanth
parents:
118
diff
changeset
|
206 |
|
f9408ab30ace
created the basic view and template for confirming participation in sage days
nishanth
parents:
118
diff
changeset
|
207 |
try: |
f9408ab30ace
created the basic view and template for confirming participation in sage days
nishanth
parents:
118
diff
changeset
|
208 |
user = Registrant.objects.get(id=uid, email=email) |
f9408ab30ace
created the basic view and template for confirming participation in sage days
nishanth
parents:
118
diff
changeset
|
209 |
except Registrant.DoesNotExist: |
f9408ab30ace
created the basic view and template for confirming participation in sage days
nishanth
parents:
118
diff
changeset
|
210 |
raise Http404 |
f9408ab30ace
created the basic view and template for confirming participation in sage days
nishanth
parents:
118
diff
changeset
|
211 |
|
f9408ab30ace
created the basic view and template for confirming participation in sage days
nishanth
parents:
118
diff
changeset
|
212 |
user_info = user.registrantinfo_set.all()[0] |
f9408ab30ace
created the basic view and template for confirming participation in sage days
nishanth
parents:
118
diff
changeset
|
213 |
status = user_info.status_of_attending_sagedays |
f9408ab30ace
created the basic view and template for confirming participation in sage days
nishanth
parents:
118
diff
changeset
|
214 |
if status == "3": |
139
7eaaecef80f6
replaced acco_required with user.acco_required in template and made change accordingly
nishanth
parents:
138
diff
changeset
|
215 |
return render_to_response("attending_sgd.html", {"user":user}) |
123 | 216 |
elif status != "2": |
120
f9408ab30ace
created the basic view and template for confirming participation in sage days
nishanth
parents:
118
diff
changeset
|
217 |
raise Http404 |
f9408ab30ace
created the basic view and template for confirming participation in sage days
nishanth
parents:
118
diff
changeset
|
218 |
|
124
d4a7644e7fe8
created a form for taking participant info and used it in the view
nishanth
parents:
123
diff
changeset
|
219 |
participant_info = ParticipantInfo() |
d4a7644e7fe8
created a form for taking participant info and used it in the view
nishanth
parents:
123
diff
changeset
|
220 |
participant_info.participant = user |
d4a7644e7fe8
created a form for taking participant info and used it in the view
nishanth
parents:
123
diff
changeset
|
221 |
|
128 | 222 |
form = ParticipantInfoForm(request.POST) |
223 |
if request.method == "POST" and form.is_valid(): |
|
224 |
data = form.cleaned_data |
|
130 | 225 |
participant_info.has_laptop_for_sagedays = True if data['has_laptop_for_sagedays'] == "Yes" else False |
128 | 226 |
participant_info.sprinted_already = True if data['sprinted_already'] == "Yes" else False |
227 |
participant_info.will_sprint = data['will_sprint'] |
|
129 | 228 |
participant_info.save() |
229 |
||
230 |
user_info.status_of_attending_sagedays = "3" |
|
231 |
user_info.save() |
|
232 |
||
149
1f53ccd82a21
included the send_cnf_email event in views but right now, it is commented
nishanth
parents:
148
diff
changeset
|
233 |
#send_cnf_email(user) |
1f53ccd82a21
included the send_cnf_email event in views but right now, it is commented
nishanth
parents:
148
diff
changeset
|
234 |
|
139
7eaaecef80f6
replaced acco_required with user.acco_required in template and made change accordingly
nishanth
parents:
138
diff
changeset
|
235 |
return render_to_response("attending_sgd.html", {"user":user}) |
120
f9408ab30ace
created the basic view and template for confirming participation in sage days
nishanth
parents:
118
diff
changeset
|
236 |
else: |
126 | 237 |
return render_to_response("cnf_sgd_ptc.html", {"user":user}) |
120
f9408ab30ace
created the basic view and template for confirming participation in sage days
nishanth
parents:
118
diff
changeset
|
238 |
|
67 | 239 |
def admin_login(request): |
240 |
""" basic login. |
|
241 |
""" |
|
56 | 242 |
|
72 | 243 |
redirect_url = "/%s/registration/stats"%aup |
244 |
||
245 |
user = request.user |
|
246 |
if user.is_authenticated(): |
|
247 |
return redirect(redirect_url) |
|
248 |
||
67 | 249 |
if request.method == "POST": |
250 |
form = LoginForm(request.POST) |
|
251 |
if form.is_valid(): |
|
72 | 252 |
data = form.cleaned_data |
67 | 253 |
|
254 |
username = data['username'] |
|
255 |
password = data['password'] |
|
256 |
||
257 |
user = authenticate(username=username, password=password) |
|
258 |
login(request, user) |
|
72 | 259 |
return redirect(redirect_url) |
67 | 260 |
else: |
261 |
return render_to_response("login.html", {"form":form}) |
|
262 |
else: |
|
263 |
form = LoginForm() |
|
264 |
return render_to_response("login.html", {"form":form}) |
|
265 |
||
70 | 266 |
@login_required |
67 | 267 |
def admin_logout(request): |
268 |
""" simply logout. |
|
269 |
""" |
|
270 |
||
271 |
logout(request) |
|
272 |
return render_to_response("logout.html") |
|
56 | 273 |
|
26
212fcba4459e
changed the app to work with apache + added base.html, and did needed changes.
anoop
parents:
25
diff
changeset
|
274 |
def homepage(request): |
91 | 275 |
return render_to_response("index.html") |
26
212fcba4459e
changed the app to work with apache + added base.html, and did needed changes.
anoop
parents:
25
diff
changeset
|
276 |
|
31 | 277 |
def schedule(request): |
91 | 278 |
return render_to_response("schedule.html") |
31 | 279 |
|
280 |
def organizers(request): |
|
91 | 281 |
return render_to_response("organizers.html") |
31 | 282 |
|
283 |
def venue(request): |
|
91 | 284 |
return render_to_response("about_venue.html") |
31 | 285 |
|
286 |
def contact(request): |
|
91 | 287 |
return render_to_response("contact.html") |
31 | 288 |
|
289 |
def about(request): |
|
91 | 290 |
return render_to_response("about.html") |
48
a3e6f9470549
made some changes to links and added accomodation page.
anoop
parents:
31
diff
changeset
|
291 |
|
a3e6f9470549
made some changes to links and added accomodation page.
anoop
parents:
31
diff
changeset
|
292 |
def accomodation(request): |
91 | 293 |
return render_to_response("accomodation.html") |
84 | 294 |
|
295 |
def about_mumbai(request): |
|
296 |
return render_to_response("about_mumbai.html") |
|
297 |
||
298 |
def reaching_iitb(request): |
|
299 |
return render_to_response("reaching_iitb.html") |
|
91 | 300 |
|
301 |
def talks_proposed(request): |
|
302 |
return render_to_response("talks_proposed.html") |
|
143
a752dc99e23c
added link to sprint_info and created a basic template
nishanth
parents:
139
diff
changeset
|
303 |
|
a752dc99e23c
added link to sprint_info and created a basic template
nishanth
parents:
139
diff
changeset
|
304 |
def sprint_info(request): |
a752dc99e23c
added link to sprint_info and created a basic template
nishanth
parents:
139
diff
changeset
|
305 |
""" display info on what a sprint is. |
a752dc99e23c
added link to sprint_info and created a basic template
nishanth
parents:
139
diff
changeset
|
306 |
""" |
a752dc99e23c
added link to sprint_info and created a basic template
nishanth
parents:
139
diff
changeset
|
307 |
|
144 | 308 |
return render_to_response("sprint_info.html") |