ihatemoney/budget/default_settings.py
0livd a5856a3b05 Add a @require_admin decorator
It can be used to protect specific endpoints with ADMIN_PASS
(a password that is stored unencrypted in the settings)
The decorator has no effect if ADMIN_PASS is an empty string (default value)
2017-05-04 18:09:34 +02:00

12 lines
321 B
Python

DEBUG = False
SQLALCHEMY_DATABASE_URI = 'sqlite:///budget.db'
SQLACHEMY_ECHO = DEBUG
# Will likely become the default value in flask-sqlalchemy >=3 ; could be removed
# then:
SQLALCHEMY_TRACK_MODIFICATIONS = False
SECRET_KEY = "tralala"
MAIL_DEFAULT_SENDER = ("Budget manager", "budget@notmyidea.org")
ADMIN_PASS = ""