Commit 9b19aa41b8b467efddcdb96af6d59830c80f9901
1 parent
5e4e39bb
Exists in
master
and in
4 other branches
fix default config file
Showing
1 changed file
with
4 additions
and
2 deletions
Show diff stats
resources/pdc_config.py
@@ -10,15 +10,15 @@ root_dir = os.path.abspath(os.path.dirname(__file__)) | @@ -10,15 +10,15 @@ root_dir = os.path.abspath(os.path.dirname(__file__)) | ||
10 | 10 | ||
11 | class Config(object): | 11 | class Config(object): |
12 | SECRET_KEY = 'dev' | 12 | SECRET_KEY = 'dev' |
13 | - SQLALCHEMY_TRACK_MODIFICATIONS = False | ||
14 | 13 | ||
15 | # Please change the following to fit you own site parameters | 14 | # Please change the following to fit you own site parameters |
16 | # | 15 | # |
17 | PDC_APP_NAME = 'Plan de Charge' | 16 | PDC_APP_NAME = 'Plan de Charge' |
18 | PDC_SITE_NAME = 'NO_SITE' # choose among IRAP, PUBLIC, ... | 17 | PDC_SITE_NAME = 'NO_SITE' # choose among IRAP, PUBLIC, ... |
19 | PDC_SITE_CLASS = 'public-icon' # choose among admin-icon, public-icon | 18 | PDC_SITE_CLASS = 'public-icon' # choose among admin-icon, public-icon |
19 | + PDC_LOGS_LEVEL = 'DEBUG' # choose within DEBUG, INFO, WARN, ERROR ( more levels in logging module ) | ||
20 | PDC_LOGS_DIR = os.path.join(root_dir, 'logs') | 20 | PDC_LOGS_DIR = os.path.join(root_dir, 'logs') |
21 | - PDC_LOGS_FILENAME = os.path.join(PDC_LOGS_DIR, 'pdc.logs') | 21 | + PDC_LOGS_FILE = os.path.join(PDC_LOGS_DIR, 'pdc.log') |
22 | 22 | ||
23 | # | 23 | # |
24 | # No need to Edit below | 24 | # No need to Edit below |
@@ -30,6 +30,8 @@ class Config(object): | @@ -30,6 +30,8 @@ class Config(object): | ||
30 | if LOG_TO_STDOUT and LOG_TO_STDOUT.upper() == "true".upper(): | 30 | if LOG_TO_STDOUT and LOG_TO_STDOUT.upper() == "true".upper(): |
31 | LOG_TO_STDOUT = True | 31 | LOG_TO_STDOUT = True |
32 | 32 | ||
33 | + SQLALCHEMY_TRACK_MODIFICATIONS = False | ||
34 | + | ||
33 | # Trying to set specific db uri from ./db_config.py | 35 | # Trying to set specific db uri from ./db_config.py |
34 | try: | 36 | try: |
35 | SQLALCHEMY_DATABASE_URI = sqlalchemy_database_uri | 37 | SQLALCHEMY_DATABASE_URI = sqlalchemy_database_uri |