aboutsummaryrefslogtreecommitdiff
path: root/budget/default_settings.py
AgeCommit message (Collapse)AuthorFilesLines
2017-05-18Public project creation and admin permissions (#210)0livd1-0/+2
* Add a @requires_admin decorator It can be used to protect specific endpoints with ADMIN_PASSWORD (a password that is stored unencrypted in the settings) The decorator has no effect if ADMIN_PASSWORD is an empty string (default value) * Require admin permissions to access create project endpoint When ADMIN_PASSWORD is not empty, project creation form on the home page will be replaced by a link to the create project endpoint so one is able to enter the admin password before filling the form
2017-05-17Add ACTIVATE_DEMO_PROJECT setting (#209)0livd1-0/+2
When set to False (True by default), it deactivates the demo project
2017-03-29Explicitly disables SQLALCHEMY_TRACK_MODIFICATIONSJocelyn Delalande1-0/+4
That noisy warning was everywhere in our test/CI logs before that commit: > ./home/travis/build/spiral-project/ihatemoney/.tox/py27/lib/python2.7/site-packages/flask_sqlalchemy/__init__.py:839: FSADeprecationWarning: SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhead and will be disabled by default in the future. Set it to True or False to suppress this warning. > > 'SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhe
2016-04-03Do not load user-overriden settings in unit tests.Jocelyn Delande1-6/+0
Loading not versioned settings.py during tests make them less predictable. That's inspired from django behaviour with DJANGO_SETTING_MODULE environment variable.
2015-08-19Made an URL prefix configurable in settings, includes tests.Jocelyn Delande1-0/+1
2015-04-30nicely deprecates DEFAULT_MAIL_SENDER as it changed upstream for flask-mail>=0.8Jocelyn Delande1-1/+1
2011-10-13Fix some problems related to postgresql and modelsAlexis Metaireau1-1/+6
2011-07-30Invite people after project creation.Alexis Metaireau1-0/+2
Uses the flask-mail extension.
2011-07-23Split the logic into different python modules:Alexis Metaireau1-0/+4
* web.py contains the controllers (also called views) + url definitions * models.py contains the models * forms.py contains the forms * utils.py contains a set of utility fonctions to ease the dev. process