diff options
author | 2018-02-05 12:22:49 +0000 | |
---|---|---|
committer | 2018-02-05 12:22:49 +0000 | |
commit | beaa61362aed31f229c935a347e382024eee5a90 (patch) | |
tree | 4d9cf54e44b7fea4124389098fd0fa37a17cdad9 /pysite/views/invite.py | |
parent | Add templates & static folder with .gitkeep's (diff) |
Dynamic route loader; proper application structure
Also fixed flake8-imports getting the other wrong
Diffstat (limited to 'pysite/views/invite.py')
-rw-r--r-- | pysite/views/invite.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/pysite/views/invite.py b/pysite/views/invite.py new file mode 100644 index 00000000..d035fc99 --- /dev/null +++ b/pysite/views/invite.py @@ -0,0 +1,15 @@ +# coding=utf-8 +from flask import redirect + +from pysite.base_route import BaseView + + +__author__ = "Gareth Coles" + + +class InviteView(BaseView): + path = "/invite" + name = "invite" + + def get(self): + return redirect("http://invite.pythondiscord.com/") |