-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
32 lines (25 loc) · 898 Bytes
/
config.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
import logging
class Config(object):
SQLALCHEMY_DATABASE_URI = 'sqlite:////tmp/queue.db'
SQLALCHEMY_TRACK_MODIFICATIONS = False
LOGGING_LOCATION = 'logs/CHALLENGE.LOG'
LOGGING_FORMAT = '%(asctime)s - %(name)s - %(levelname)s - %(message)s'
LOGGING_LEVEL = logging.INFO
CELERY_BROKER_URL = 'amqp://guest@localhost//'
CELERY_RESULT_BACKEND = 'amqp://guest@localhost//'
PORT = 4555
USER_RELOADER = False
HOST_NAME = "omiron.ro"
THREADED = True
PROCESSES = 1
USE_RELOADER = True
SECRET_KEY = 'be_water_my_friend'
class DevConfig(Config):
Config.PORT = 4555
Config.USER_RELOADER = False
Config.HOST_NAME = "127.0.0.1"
Config.LOGGING_FORMAT = ('%(asctime)s - %(name)s - '
'%(levelname)s - %(message)s')
Config.LOGGING_LEVEL = logging.DEBUG
Config.THREADED = True
Config.PROCESSES = 1