-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsampleconfig.py
35 lines (29 loc) · 1.12 KB
/
sampleconfig.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# sample config -> copy paste to a new config.py which isn't under VCS (has been added to .gitignore already)
class Config(object):
DEBUG = False
TESTING = False
CSRF_ENABLED = True
SECRET_KEY = 'secret!'
SQLALCHEMY_TRACK_MODIFICATIONS = False
JS_FOLDER = 'data/js/'
ZIP_FOLDER = 'data/zip/'
RES_FOLDER = 'data/results/'
USER_PICS = 'data/pictures/user'
TASK_PICS = 'data/pictures/tasks'
class Production(Config):
DEBUG = False
class Development(Config):
# SECRET_KEY = "should set this"
DEBUG = True
# SQLALCHEMY_DATABASE_URI = postgresql://[user[:password]@][netloc][:port][/dbname][?param1=value1&...]
SQLALCHEMY_DATABASE_URI = 'sqltype://username:password@location:port/databasename'
class Testing(Config):
TESTING = True
DEBUG = False
JS_FOLDER = "test/upload/data/js/"
ZIP_FOLDER = "test/upload/data/zip/"
RES_FOLDER = "test/upload/data/results/"
USER_PICS = 'test/upload/data/pictures/user'
TASK_PICS = 'test/upload/data/pictures/tasks'
# setup to work with circleCI
SQLALCHEMY_DATABASE_URI = 'postgresql://ubuntu@localhost:5432/circle_test'