-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
86 lines (70 loc) · 2.23 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# -*- coding: utf-8 -*-
import os
basedir = os.path.abspath(os.path.dirname(__file__))
SQLALCHEMY_MIGRATE_REPO = os.path.join(basedir, 'psql', 'migrate_repo')
WTF_CSRF_ENABLED = True
SQLALCHEMY_TRACK_MODIFICATIONS = True
SECRET_KEY = 'my secret key'
#from secret import SECRET_KEY
# mail server settings
MAIL_SERVER = 'localhost'
MAIL_PORT = 25
MAIL_USERNAME = None
MAIL_PASSWORD = None
MAIL_DOMAIN = 'my.domain.org'
DEFAULT_MAIL_SENDER = None
# administrator list
ADMINS = [] # your email here
from secret import ADMINS, DEFAULT_MAIL_SENDER
# User authentication
USE_PWHASH = True
USE_LDAP = False
#LDAP_PROVIDER_URL = 'your.ldap.server'
#LDAP_SEARCH_BASE = 'dc=xyz, dc=tuv'
#LDAP_USER_PATT = 'uid=%s,ou=people,dc=xuz,dc=tuv'
# Database and other secrets
PGSQL_DATABASE_DB = 'soco'
PGSQL_DATABASE_HOST = 'localhost'
PGSQL_DATABASE_USER = 'myuser'
PGSQL_DATABASE_PASSWORD = 'mypass'
from secret import PGSQL_DATABASE_USER, PGSQL_DATABASE_PASSWORD
DB_ENGINE = 'postgresql'
# Same, with MySQL
MYSQL_DATABASE_DB = 'soco'
MYSQL_DATABASE_HOST = 'localhost'
MYSQL_DATABASE_USER = 'myuser'
MYSQL_DATABASE_PASSWORD = 'mypass'
#from secret import MYSQL_DATABASE_USER, MYSQL_DATABASE_PASSWORD
#DB_ENGINE = 'mysql'
# available languages
LANGUAGES = {
'en': 'English',
'fr': 'Français'
}
BABEL_DEFAULT_LOCALE = 'fr'
# logo upload
LOGO_FOLDER=basedir + '/soco/static/logos/'
LOGO_URL_REL='logos/'
LOGO_EXTENSIONS=['png', 'jpeg', 'jpg', 'gif']
LOGO_DEFAULT='soco-boi.png'
# various default values
URL_APPLICATION = 'http://soco.jm.u-psud.fr'
URL_DEFAULT='http://www.jm.u-psud.fr'
INSTITUTION_PPALE="Université Paris Sud - Faculté Jean Monnet"
SALLE_PPALE="Salle G.Vedel, Faculté Jean Monnet"
EMAIL_ORGA="Odile Bénassy <odile.benassy@u-psud.fr>"
EMAIL_SITE="Odile Bénassy <informatique-recherche.droit-eco-gestion@u-psud.fr>"
SIGNATURE_EMAILS="Équipe de développement de l'application SoCo\nFaculté Jean Monnet\nUniversité Paris Sud"
NOM_INTERFACE_ADMIN="Administration de SoCo"
# Optional features
AVEC_ETIQUETTES=True
AVEC_QRCODE=True
AVEC_RECURRENCE=True
# Flask_login
COOKIE_DURATION_DAYS = 30
LOGIN_MESSAGE = u'Merci de vous identifier'
# Logging
LOG_FILE = './logs/soco.log'
# Where to generate PDFs
FABDIR = basedir + '/soco/tex/'
TMPDIR = '/tmp/'