From d8552b4955c36e44c73224c431b8bb130b0aa4d7 Mon Sep 17 00:00:00 2001 From: mike cullerton Date: Tue, 13 Apr 2021 12:08:03 -0400 Subject: [PATCH] Turned off CSRF token for testing --- config/testing.py | 1 + 1 file changed, 1 insertion(+) diff --git a/config/testing.py b/config/testing.py index 6681d9b..8d2565e 100644 --- a/config/testing.py +++ b/config/testing.py @@ -10,6 +10,7 @@ DEVELOPMENT = True TESTING = True SQLALCHEMY_DATABASE_URI = environ.get('SQLALCHEMY_DATABASE_URI', default="sqlite:///app.db") SECRET_KEY = 'a really really really really long secret key' +WTF_CSRF_ENABLED = False print('### USING TESTING CONFIG: ###') print('SQLALCHEMY_DATABASE_URI = ', SQLALCHEMY_DATABASE_URI)