summaryrefslogtreecommitdiff
path: root/sbhs_server/pages/views.py
diff options
context:
space:
mode:
authorttt2017-05-13 00:29:47 +0530
committerttt2017-05-13 00:29:47 +0530
commit4336f5f06f61de30ae3fa54650fce63a9d5ef5be (patch)
tree23b4ee9b8e8f24bf732acf2f7ad22ed50cdd5670 /sbhs_server/pages/views.py
downloadSBHS-2018-Rpi-4336f5f06f61de30ae3fa54650fce63a9d5ef5be.tar.gz
SBHS-2018-Rpi-4336f5f06f61de30ae3fa54650fce63a9d5ef5be.tar.bz2
SBHS-2018-Rpi-4336f5f06f61de30ae3fa54650fce63a9d5ef5be.zip
added all server files
Diffstat (limited to 'sbhs_server/pages/views.py')
-rw-r--r--sbhs_server/pages/views.py41
1 files changed, 41 insertions, 0 deletions
diff --git a/sbhs_server/pages/views.py b/sbhs_server/pages/views.py
new file mode 100644
index 0000000..4b88086
--- /dev/null
+++ b/sbhs_server/pages/views.py
@@ -0,0 +1,41 @@
+from django.shortcuts import render
+from django.template.loader import render_to_string
+from django.http import HttpResponseNotFound, HttpResponseServerError
+
+# Create your views here.
+
+def index(req):
+ return render(req, "pages/index.html")
+
+def about(req):
+ return render(req, "pages/about.html")
+
+def contact(req):
+ return render(req, "pages/contact.html")
+
+def info(req):
+ return render(req, "pages/info.html")
+
+def downloads(req):
+ return render(req, "pages/downloads.html")
+
+def theory(req):
+ return render(req, "pages/theory.html")
+
+def procedure(req):
+ return render(req, "pages/procedure.html")
+
+def experiments(req):
+ return render(req, "pages/experiments.html")
+
+def feedback(req):
+ return render(req, "pages/feedback.html")
+
+def quiz(req):
+ return render(req, "pages/quiz.html")
+
+def e404(req):
+ return HttpResponseNotFound(render_to_string('pages/e404.html'))
+
+def e500(req):
+ return HttpResponseServerError(render_to_string('pages/e500.html'))