2020-06-16 14:45:41 -04:00
|
|
|
import re
|
2020-03-23 17:05:34 -04:00
|
|
|
import os
|
2020-06-16 14:45:41 -04:00
|
|
|
from os import environ
|
|
|
|
|
2020-03-23 17:05:34 -04:00
|
|
|
basedir = os.path.abspath(os.path.dirname(__file__))
|
|
|
|
|
|
|
|
NAME = "CR Connect Protocol Builder Mock"
|
2020-06-16 14:45:41 -04:00
|
|
|
CORS_ALLOW_ORIGINS = re.split(r',\s*', environ.get('CORS_ALLOW_ORIGINS', default="localhost:5000"))
|
2020-03-23 17:05:34 -04:00
|
|
|
DEVELOPMENT = True
|
|
|
|
TESTING = True
|
2020-06-16 14:45:41 -04:00
|
|
|
SQLALCHEMY_DATABASE_URI = environ.get('SQLALCHEMY_DATABASE_URI', default="sqlite:///app.db")
|
2020-03-23 17:05:34 -04:00
|
|
|
SECRET_KEY = 'a really really really really long secret key'
|
2021-04-13 12:08:03 -04:00
|
|
|
WTF_CSRF_ENABLED = False
|
2020-06-16 14:45:41 -04:00
|
|
|
|
|
|
|
print('### USING TESTING CONFIG: ###')
|
|
|
|
print('SQLALCHEMY_DATABASE_URI = ', SQLALCHEMY_DATABASE_URI)
|
|
|
|
print('TESTING = ', TESTING)
|