Browse Source

Add a FAQ page

raylu 14 years ago
parent
commit
1e39d49f89
5 changed files with 53 additions and 4 deletions
  1. 3 0
      pyc/grader/views.py
  2. 47 0
      pyc/templates/faq.html
  3. 2 0
      pyc/templates/index.html
  4. 0 4
      pyc/templates/lab.html
  5. 1 0
      pyc/urls.py

+ 3 - 0
pyc/grader/views.py

@@ -92,6 +92,9 @@ def submission(request, lab_id, user_id):
 			'code' : code,
 			})
 
+def faq(request):
+	return render_to_response('faq.html')
+
 def grade(file, id):
 	import subprocess
 	from os import path

+ 47 - 0
pyc/templates/faq.html

@@ -0,0 +1,47 @@
+{% extends 'base.html' %}
+{% block body %}
+<ol>
+	<li>
+How do I submit a solution?
+<p>
+You need an account. Ask raylu to create you one.
+</p>
+	</li>
+
+	<li>
+I don't know any Python.
+<p>
+This is more of "learn to code" excercise than a "learn Python" exercise.
+Python just happens to be a good first language. In fact, I only want
+participants who have little&ndash;to&ndash;no coding experience.
+</p>
+	</li>
+
+	<li>
+Why should I learn Python?
+<p>
+It's a good first language for a
+<a href="http://docs.python.org/faq/general.html#is-python-a-good-language-for-beginning-programmers">variety</a>
+of <a href="http://www.stanford.edu/~pgbovine/python-teaching.htm">reasons</a>.
+</p>
+	</li>
+
+	<li>
+Which scores are shown on the lab ranking pages?
+<p>
+Each user's highest score and earliest time with that score are displayed.
+</p>
+	</li>
+
+	<li>
+Am I allowed to look for help on the web?
+<p>
+Yes.
+</p>
+	</li>
+</ol>
+
+<p>
+<a href="/">Home</a>
+</p>
+{% endblock %}

+ 2 - 0
pyc/templates/index.html

@@ -25,5 +25,7 @@ If you are interested, please contact raylu.
 {% else %}
 	<a href="{% url django.contrib.auth.views.login %}">Login</a>
 {% endif %}
+<br />
+<a href="{% url grader.views.faq %}">FAQ</a>
 </p>
 {% endblock %}

+ 0 - 4
pyc/templates/lab.html

@@ -25,10 +25,6 @@ Lab {{ lab.id }} due {{ lab.due }} at 11:59:59 PDT (UTC-7):
 {% endfor %}
 </table></p>
 
-<p>
-Users' highest scores and earliest time with that score are displayed.
-</p>
-
 <p>
 <a href="/submit/{{ lab.id }}/">Submit</a> your solution
 <br>

+ 1 - 0
pyc/urls.py

@@ -8,6 +8,7 @@ urlpatterns = patterns('',
 	url(r'^lab/(?P<lab_id>\d+)/$', 'grader.views.lab'),
 	url(r'^submit/(?P<lab_id>\d+)/$', 'grader.views.submit'),
 	url(r'^submission/(?P<lab_id>\d+)/(?P<user_id>\d+)/$', 'grader.views.submission'),
+	url(r'^faq/$', 'grader.views.faq'),
 
 	url(r'^login/$', 'django.contrib.auth.views.login', {'template_name': 'login.html'}),
 	url(r'^logout/$', 'django.contrib.auth.views.logout', {'next_page': '/'}),