-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
51 lines (37 loc) · 1.49 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/usr/bin/python
# -*- coding: utf-8 -*-
# __author__ = "Albin TCHOPBA"
# __copyright__ = "Copyright 2020 Albin TCHOPBA and contributors"
# __credits__ = ["Albin TCHOPBA and contributors"]
# __license__ = "GPL"
# __version__ = "3"
# __maintainer__ = "Albin TCHOPBA"
# __email__ = "Albin TCHOPBA <atchopba @ gmail dot com"
# __status__ = "Production"
from os import environ, path
from dotenv import load_dotenv
basedir = path.abspath(path.dirname(__file__))
load_dotenv(path.join(basedir, '.env'))
class Config:
GMAIL_USER = environ.get("GMAIL_USER")
GMAIL_PWD = environ.get("GMAIL_PWD")
# sujet des mails
SUBJECT = "Epidemie - alerte"
ERROR_MSG_INSERT = "Veuillez recommencer!"
MALADIE = "Covid-19"
SUSPECT_SCORE_MIN = 0.6
FILE_SM_NOTIF_SMS = "./epidemic_notifier/templates/model/notification-sm.sms.model"
FILE_SM_NOTIF_EMAIL = "./epidemic_notifier/templates/model/notification-sm.email.model"
FILE_M_NOTIF_SMS = "./epidemic_notifier/templates/model/notification-m.sms.model"
FILE_M_NOTIF_EMAIL = "./epidemic_notifier/templates/model/notification-m.email.model"
FLASK_APP = "wsgi.py"
FLASK_ENV = environ.get("FLASK_ENV")
SECRET_KEY = environ.get("SECRET_KEY")
# Static Assets
STATIC_FOLDER = "static"
TEMPLATES_FOLDER = "templates"
COMPRESSOR_DEBUG = environ.get('COMPRESSOR_DEBUG')
# Databases
MULTI_DATABASE = False
DATABASE_URI = "./epidemic_notifier/static/data/main.db"
DATABASE_CLIENT = None