]> ToastFreeware Gitweb - philipp/winterrodeln/wradmin.git/blob - readme.txt
Implement authentification but don't enforce it yet.
[philipp/winterrodeln/wradmin.git] / readme.txt
1 This web application uses flask (http://flask.pocoo.org/) and Python 3.
2
3 Run the application:
4 $ FLASK_APP=wradmin FLASK_DEBUG=1 WRADMIN_SETTINGS=development.cfg python3 -m flask run
5 $ FLASK_APP=wradmin WRADMIN_SETTINGS=production.cfg python3 -m flask run
6
7 Test the application
8 PYTHONPATH=. FLASK_APP=wradmin WRADMIN_SETTINGS=test.cfg python3 -m unittest
9
10 Run the shell:
11 $ FLASK_APP=wradmin FLASK_DEBUG=1 WRADMIN_SETTINGS=development.cfg python3 -m flask shell
12
13 ipython shell:
14 $ FLASK_APP=wradmin FLASK_DEBUG=1 WRADMIN_SETTINGS=development.cfg ipython
15 >>> import wradmin.model
16 >>> wradmin.model.meta.Session.query(wradmin.model.MwUser).get(1)