aboutsummaryrefslogtreecommitdiffstats
path: root/pysite/views/main/ws_test_rst.py
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2018-04-04 16:09:05 +0100
committerGravatar Gareth Coles <[email protected]>2018-04-04 16:09:05 +0100
commit1d1e17f7f19203d449c8641794cd2c61705fdcd2 (patch)
tree63640306e93059a181b2af04952b0403c38ef8ee /pysite/views/main/ws_test_rst.py
parentCSRF error route doesn't do shit, sadly (diff)
Early wiki work including a WS test route for RST parsing
Diffstat (limited to 'pysite/views/main/ws_test_rst.py')
-rw-r--r--pysite/views/main/ws_test_rst.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/pysite/views/main/ws_test_rst.py b/pysite/views/main/ws_test_rst.py
new file mode 100644
index 00000000..9c2ee805
--- /dev/null
+++ b/pysite/views/main/ws_test_rst.py
@@ -0,0 +1,15 @@
+# coding=utf-8
+import os
+
+from pysite.base_route import RouteView
+
+
+class WSTest(RouteView):
+ path = "/ws_test_rst"
+ name = "ws_test_rst"
+
+ def get(self):
+ return self.render(
+ "main/ws_test_rst.html",
+ server_name=os.environ.get("SERVER_NAME", "localhost")
+ )