-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
30 lines (22 loc) · 803 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
import os
from dotenv import load_dotenv
load_dotenv()
#
# The .env file contains all of the configuration parameters
#
# NOTE: This file will need to be created by the user to run the application.
# It should be placed at the same directory level as app.py
# The syntax should look as follows:
# DATABASE_URI = "<Your_database_uri_here>"
#
class Config:
"""
Base configuration class. Contains default configuration settings
"""
# Settings applicable to all environments
SECRET_KEY = os.getenv('SECRET_KEY', default='party time')
SQLALCHEMY_TRACK_MODIFICATIONS = False
CELERY_BROKER_URL = os.getenv('CELERY_URL ')
RESULT_BACKEND = os.getenv('RESULT_BACKEND')
DEBUG = True
SQLALCHEMY_DATABASE_URI = os.getenv('DATABASE_URI')