From eccd0190576cbfabb5390bc261d940b0cd6b2cab Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Thu, 6 Jan 2022 18:18:46 +0100 Subject: Update flask-scripts to flask.cli --- README | 4 ++-- manage.py | 6 +++--- requirements.txt | 1 - 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/README b/README index 476070d..4059f81 100644 --- a/README +++ b/README @@ -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 ... diff --git a/manage.py b/manage.py index 0a6a57d..eaa95b2 100644 --- a/manage.py +++ b/manage.py @@ -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 -- cgit v1.2.3-1-g7c22