eskp.py
changeset 280 3b4e7d56960a
parent 279 024119c683df
child 281 99597bb20b0c
equal deleted inserted replaced
279:024119c683df 280:3b4e7d56960a
     1 # -*- coding: utf-8 -*-
     1 # -*- coding: utf-8 -*-
       
     2 import logging
     2 
     3 
     3 import os
     4 import os
     4 import codecs
     5 import codecs
     5 import vobject
     6 import vobject
     6 import StringIO
     7 import StringIO
    20 LANGUAGE_SELECTED = "de"
    21 LANGUAGE_SELECTED = "de"
    21 #ToDo after engelish is implemented set LANGUAGE_SELECTED = None
    22 #ToDo after engelish is implemented set LANGUAGE_SELECTED = None
    22 
    23 
    23 # We need the path of this file to find templates to translate
    24 # We need the path of this file to find templates to translate
    24 ESKP_PATH = os.path.dirname(os.path.abspath(__file__))
    25 ESKP_PATH = os.path.dirname(os.path.abspath(__file__))
       
    26 logging.basicConfig(filename=os.path.join(ESKP_PATH, 'eskp-app.log'),level=logging.DEBUG)
    25 
    27 
    26 app = Flask(__name__)
    28 app = Flask(__name__)
    27 babel = Babel(app)
    29 babel = Babel(app)
    28 
    30 
    29 app.config['BABEL_DEFAULT_LOCALE'] = 'de'
    31 app.config['BABEL_DEFAULT_LOCALE'] = 'de'
Impressum Datenschutzerklärung