-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.py
57 lines (44 loc) · 1.79 KB
/
settings.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
import os
# *****************************
# Environment specific settings
# *****************************
APP_NAME = 'Essensplan'
# DO NOT use "DEBUG = True" in production environments
DEBUG = True
# DO NOT use Unsecure Secrets in production environments
# Generate a safe one with:
# python -c "import os; print repr(os.urandom(24));"
SECRET_KEY = '<\xad\r>{\xa3\x10\xa9\x1cf\xcd\x08\x974yM&\xb7\x84N\x94\x8c]\x08'
# SQLAlchemy settings
SQLALCHEMY_DATABASE_URI = 'sqlite:///essensplan.db'
SQLALCHEMY_TRACK_MODIFICATIONS = False # Avoids a SQLAlchemy Warning
# Flask-Mail settings
# For smtp.gmail.com to work, you MUST set "Allow less secure apps" to ON in Google Accounts.
# Change it in https://myaccount.google.com/security#connectedapps (near the bottom).
MAIL_SERVER = ''
MAIL_PORT = 587
MAIL_USE_SSL = False
MAIL_USE_TLS = True
MAIL_USERNAME = ''
MAIL_PASSWORD = ''
# Sendgrid settings
SENDGRID_API_KEY='place-your-sendgrid-api-key-here'
# Flask-User settings
USER_APP_NAME = 'Essensplan'
USER_EMAIL_SENDER_NAME = 'Admin'
USER_EMAIL_SENDER_EMAIL = 'admin@something.de'
USER_ENABLE_EMAIL = False # Disable email authentication
USER_ENABLE_USERNAME = True # Enable username authentication
USER_REQUIRE_RETYPE_PASSWORD = False # Simplify register form
USER_ENABLE_CHANGE_PASSWORD = True # Allow users to change their password
USER_ENABLE_CHANGE_USERNAME = False # Allow users to change their username
USER_ENABLE_CONFIRM_EMAIL = False # Force users to confirm their email
USER_ENABLE_FORGOT_PASSWORD = True # Allow users to reset their passwords
USER_ENABLE_REGISTRATION = True # Allow new users to register
USER_AFTER_LOGIN_ENDPOINT = 'displayWeek'
# Babel settings
BABEL_DEFAULT_LOCALE = 'de'
BABEL_DEFAULT_TIMEZONE = 'Europe/Berlin'
ADMINS = [
'"Admin One" <nathank@jkopka.de>',
]