diff options
-rw-r--r-- | README | 4 | ||||
-rw-r--r-- | manage.py | 6 | ||||
-rw-r--r-- | requirements.txt | 1 |
3 files changed, 5 insertions, 6 deletions
@@ -15,7 +15,7 @@ Setup (dev) $ python3 -m venv env $ . env/bin/activate $ pip install -r requirements.txt # Abhängikeiten installieren - $ python manage.py runserver # Test-Server starten + $ python manage.py run # Test-Server starten Deployment Debian Wheezy @@ -26,7 +26,7 @@ Deployment Debian Wheezy $ cd klausurenarchiv $ cp config.cfg.dist config.cfg # Konfigurationsdatei erstellen $ vim/emacs/nano config.cfg - $ apt-get install python3-flask python3-flaskext.wtf python3-flask-script python3-magic python3-werkzeug python3-wtfforms + $ apt-get install python3-flask python3-flaskext.wtf python3-magic python3-werkzeug python3-wtfforms $ cp nginx.cfg ... $ cp uwsgi.ini ... @@ -1,14 +1,14 @@ # -*- coding: utf-8 -*- -from flask_script import Manager +from flask.cli import FlaskGroup from app import create_app # create app app = create_app() -manager = Manager(app) +cli = FlaskGroup(app) # import scripts from scripts import * if __name__ == '__main__': - manager.run() + cli() diff --git a/requirements.txt b/requirements.txt index aa9da39..6c49951 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,5 @@ Flask Flask-WTF -flask-script Jinja2 WTForms Werkzeug |