From 1e39d49f89fb818c7a1c3b7a487e89078f944042 Mon Sep 17 00:00:00 2001
From: raylu
Date: Sat, 14 May 2011 02:13:03 -0400
Subject: Add a FAQ page
---
pyc/grader/views.py | 3 +++
pyc/templates/faq.html | 47 +++++++++++++++++++++++++++++++++++++++++++++++
pyc/templates/index.html | 2 ++
pyc/templates/lab.html | 4 ----
pyc/urls.py | 1 +
5 files changed, 53 insertions(+), 4 deletions(-)
create mode 100644 pyc/templates/faq.html
diff --git a/pyc/grader/views.py b/pyc/grader/views.py
index 9c688be..e74d540 100644
--- a/pyc/grader/views.py
+++ b/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
diff --git a/pyc/templates/faq.html b/pyc/templates/faq.html
new file mode 100644
index 0000000..a90e95a
--- /dev/null
+++ b/pyc/templates/faq.html
@@ -0,0 +1,47 @@
+{% extends 'base.html' %}
+{% block body %}
+
+ -
+How do I submit a solution?
+
+You need an account. Ask raylu to create you one.
+
+
+
+ -
+I don't know any Python.
+
+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–to–no coding experience.
+
+
+
+ -
+Why should I learn Python?
+
+It's a good first language for a
+variety
+of reasons.
+
+
+
+ -
+Which scores are shown on the lab ranking pages?
+
+Each user's highest score and earliest time with that score are displayed.
+
+
+
+ -
+Am I allowed to look for help on the web?
+
+Yes.
+
+
+
+
+
+Home
+
+{% endblock %}
diff --git a/pyc/templates/index.html b/pyc/templates/index.html
index 439beb9..f99165d 100644
--- a/pyc/templates/index.html
+++ b/pyc/templates/index.html
@@ -25,5 +25,7 @@ If you are interested, please contact raylu.
{% else %}
Login
{% endif %}
+
+FAQ
{% endblock %}
diff --git a/pyc/templates/lab.html b/pyc/templates/lab.html
index 6cc241d..4194edc 100644
--- a/pyc/templates/lab.html
+++ b/pyc/templates/lab.html
@@ -25,10 +25,6 @@ Lab {{ lab.id }} due {{ lab.due }} at 11:59:59 PDT (UTC-7):
{% endfor %}
-
-Users' highest scores and earliest time with that score are displayed.
-
-
Submit your solution
diff --git a/pyc/urls.py b/pyc/urls.py
index 899689b..aa1228b 100644
--- a/pyc/urls.py
+++ b/pyc/urls.py
@@ -8,6 +8,7 @@ urlpatterns = patterns('',
url(r'^lab/(?P\d+)/$', 'grader.views.lab'),
url(r'^submit/(?P\d+)/$', 'grader.views.submit'),
url(r'^submission/(?P\d+)/(?P\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': '/'}),
--
cgit v1.2.3