replacement of configuration variable acquisition
This commit is contained in:
parent
b1a1a521c2
commit
3aa76bb320
@ -17,13 +17,13 @@ app.config.from_pyfile('config.py')
|
|||||||
|
|
||||||
|
|
||||||
########################### Variables Globales #################################
|
########################### Variables Globales #################################
|
||||||
extensionimg = app.config['EXT_IMG']
|
extensionimg = app.config.get('EXT_IMG')
|
||||||
DATABASE = app.config['DATABASE']
|
DATABASE = app.config.get('DATABASE')
|
||||||
BASE_URL = app.config['BASE_URL']
|
BASE_URL = app.config.get('BASE_URL')
|
||||||
DOSSIER_PERSO = app.config['DOSSIER_APP']+'/'
|
DOSSIER_PERSO = app.config.get('DOSSIER_APP')+'/'
|
||||||
DOSSIER_PUBLIC = app.config['DOSSIER_PUBLIC']+'/'
|
DOSSIER_PUBLIC = app.config.get('DOSSIER_PUBLIC')+'/'
|
||||||
TITLE_SERVER = app.config['TITLE_SERVER']
|
TITLE_SERVER = app.config.get('TITLE_SERVER')
|
||||||
DESC_SERVER = app.config['DESC_SERVER']
|
DESC_SERVER = app.config.get('DESC_SERVER')
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
@blog.route('/myblog/new-article/', methods=['GET', 'POST'])
|
@blog.route('/myblog/new-article/', methods=['GET', 'POST'])
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user