-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconfig.py.tmpl
55 lines (53 loc) · 1.63 KB
/
config.py.tmpl
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
# -*- coding: utf-8 -*-
import os
import datetime
basedir = os.path.abspath(os.path.dirname(__file__))
SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'projectdashboard.db')
DEBUG = True
SECRET_KEY = "YOUR-REALLY-SECRET-KEY"
SQLALCHEMY_TRACK_MODIFICATIONS = False
ADMIN_USER = {
"username": u"admin",
"password": u"SOME_ADMIN_PASSWORD",
"name": u"YOUR_NAME",
"email_address": u"YOUR_EMAIL",
"organisation": u"YOUR_ORG",
"recipient_country_code": u"ML",
"administrator": True
}
ORGANISATION = {
"default_currency": "EUR",
"default_language": "fr",
"organisation_name": "MAEDI",
"organisation_type": "10",
"organisation_ref": "FR-6",
"organisation_contact_name": "",
"organisation_contact_phone": "",
"organisation_contact_email": "",
"organisation_contact_website": "",
"organisation_contact_address": ""
}
# The earliest date shown in many interfaces.
# Used to filter out partial data from a long / messy dataset.
EARLIEST_DATE = datetime.date(2013,1,1)
FY_EARLIEST_DATE = datetime.date(2000,7,1)
LATEST_DATE = datetime.date(2049,12,31)
# We actually always use the default locale in this app so the data
# is output consistently.
BABEL_DEFAULT_LOCALE="fr"
BABEL_DEFAULT_TIMEZONE="UTC"
LANGUAGES = {
"fr": "Français",
"en": "English"
}
# email server
MAIL_SERVER = "mail.yourdomain.com"
MAIL_PORT = 465
MAIL_USE_TLS = False
MAIL_USE_SSL = True
MAIL_DEFAULT_SENDER = "[email protected]"
MAIL_USERNAME = "username"
MAIL_PASSWORD = "password"
MAIL_RECIPIENTS = ["[email protected]"]
ADMINS = ["email-addresses-that-can-send"]
UPLOAD_FOLDER = "/PATH/TO/YOUR/UPLOAD/FOLDER"