]> ToastFreeware Gitweb - philipp/winterrodeln/wradmin.git/commitdiff
Create a readme file.
authorphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Fri, 10 May 2019 22:14:50 +0000 (22:14 +0000)
committerphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Fri, 10 May 2019 22:14:50 +0000 (22:14 +0000)
git-svn-id: http://www.winterrodeln.org/svn/wradmin/trunk@2812 7aebc617-e5e2-0310-91dc-80fb5f6d2477

readme.txt [new file with mode: 0644]
wradmin/__init__.py

diff --git a/readme.txt b/readme.txt
new file mode 100644 (file)
index 0000000..9914f2f
--- /dev/null
@@ -0,0 +1,16 @@
+This web application uses flask (http://flask.pocoo.org/) and Python 3.
+
+Run the application:
+$ FLASK_APP=wradmin FLASK_DEBUG=1 WRADMIN_SETTINGS=development.cfg python3 -m flask run
+$ FLASK_APP=wradmin WRADMIN_SETTINGS=production.cfg python3 -m flask run
+
+Test the application
+PYTHONPATH=. FLASK_APP=wradmin WRADMIN_SETTINGS=test.cfg python3 -m unittest
+
+Run the shell:
+$ FLASK_APP=wradmin FLASK_DEBUG=1 WRADMIN_SETTINGS=development.cfg python3 -m flask shell
+
+ipython shell:
+$ FLASK_APP=wradmin FLASK_DEBUG=1 WRADMIN_SETTINGS=development.cfg ipython
+>>> import wradmin.model
+>>> wradmin.model.meta.Session.query(wradmin.model.MwUser).get(1)
index 85e456e4b0c0bd71db76cca811b9acd1b3333dd1..fba490dd6aabb5bc8906d4e2d6f1831d50977919 100644 (file)
@@ -1,6 +1,3 @@
-# http://flask.pocoo.org/
-# FLASK_APP=wradmin FLASK_DEBUG=1 WRADMIN_SETTINGS=development.cfg python3 -m flask run
-# FLASK_APP=wradmin WRADMIN_SETTINGS=production.cfg python3 -m flask run
 from flask import Flask, send_from_directory, abort, g, render_template
 from sqlalchemy.engine import create_engine
 import wradmin.model