diff options
author | 2018-04-01 23:16:55 +0100 | |
---|---|---|
committer | 2018-04-01 23:16:55 +0100 | |
commit | ff3a39ab03c2a4091aa56da039775dde4541d9f0 (patch) | |
tree | ffdc60e421558881ab9ede3bf475f34fdc93d733 /pysite/constants.py | |
parent | Fix test for now (diff) |
Add CSRF protection and optimise imports
Diffstat (limited to 'pysite/constants.py')
-rw-r--r-- | pysite/constants.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pysite/constants.py b/pysite/constants.py index 921a32b9..69633127 100644 --- a/pysite/constants.py +++ b/pysite/constants.py @@ -3,6 +3,8 @@ from enum import Enum, IntEnum from os import environ +from flask_wtf import CSRFProtect + class ErrorCodes(IntEnum): unknown_route = 0 @@ -68,3 +70,7 @@ PAPERTRAIL_PORT = int(environ.get("PAPERTRAIL_PORT") or 0) # DataDog logging DATADOG_ADDRESS = environ.get("DATADOG_ADDRESS") or None DATADOG_PORT = int(environ.get("DATADOG_PORT") or 0) + +# CSRF + +CSRF = CSRFProtect() |