diff options
author | Alexander Sulfrian <asulfrian@zedat.fu-berlin.de> | 2022-01-06 18:18:46 +0100 |
---|---|---|
committer | Alexander Sulfrian <asulfrian@zedat.fu-berlin.de> | 2022-01-06 18:38:32 +0100 |
commit | eccd0190576cbfabb5390bc261d940b0cd6b2cab (patch) | |
tree | 0e324b3fa18f715e15a1a8a787fbccd12987693e | |
parent | b4b37bc9a2dfadfaba0c828d299f7cd1fe2c85a7 (diff) | |
download | klausuren-eccd0190576cbfabb5390bc261d940b0cd6b2cab.tar.gz klausuren-eccd0190576cbfabb5390bc261d940b0cd6b2cab.tar.bz2 klausuren-eccd0190576cbfabb5390bc261d940b0cd6b2cab.zip |
Update flask-scripts to flask.cli
-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 |