38 lines
734 B
Python
38 lines
734 B
Python
|
# encoding: utf-8
|
||
|
"""
|
||
|
Minimal configuration able to run but maybe not as you want it.
|
||
|
"""
|
||
|
|
||
|
import os
|
||
|
|
||
|
DEBUG = False
|
||
|
HOST = "0.0.0.0"
|
||
|
PORT = 5000
|
||
|
SECRET_KEY = "No secret key"
|
||
|
|
||
|
JINJA_ENV = {
|
||
|
"TRIM_BLOCKS": True,
|
||
|
"LSTRIP_BLOCKS": True,
|
||
|
}
|
||
|
|
||
|
# defining base directory
|
||
|
BASE_DIR = os.path.abspath(os.path.dirname(__file__))
|
||
|
|
||
|
# defining database URI
|
||
|
# MySQL example
|
||
|
# SQLALCHEMY_DATABASE_URI = "mysql://username:password@server/db"
|
||
|
# SQLite example
|
||
|
# SQLALCHEMY_DATABASE_URI = "sqlite:///" + os.path.join(BASE_DIR, "db.sqlite3")
|
||
|
SQLALCHEMY_TRACK_MODIFICATIONS = False
|
||
|
|
||
|
# defining Babel settings
|
||
|
BABEL_DEFAULT_LOCALE = "fr"
|
||
|
|
||
|
# Languages available
|
||
|
AVAILABLE_LANGUAGES = {
|
||
|
"en": "English",
|
||
|
"fr": "Français",
|
||
|
}
|
||
|
|
||
|
API_PER_PAGE = 30
|