From 089fa29dfe6b266cdfc25413c3f91363fe563c64 Mon Sep 17 00:00:00 2001 From: philipp Date: Fri, 10 May 2019 22:14:50 +0000 Subject: [PATCH] Create a readme file. git-svn-id: http://www.winterrodeln.org/svn/wradmin/trunk@2812 7aebc617-e5e2-0310-91dc-80fb5f6d2477 --- readme.txt | 16 ++++++++++++++++ wradmin/__init__.py | 3 --- 2 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 readme.txt diff --git a/readme.txt b/readme.txt new file mode 100644 index 0000000..9914f2f --- /dev/null +++ b/readme.txt @@ -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) diff --git a/wradmin/__init__.py b/wradmin/__init__.py index 85e456e..fba490d 100644 --- a/wradmin/__init__.py +++ b/wradmin/__init__.py @@ -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 -- 2.39.5