„No such command init-db“
Also habe ich das Tutorial hier befolgt: https://flask.palletsprojects.com/en/1. ... /database/
(Ich verwende Debian 9.6)
Ich mache Folgendes:
Code: Select all
export FLASK_APP=webApp
export FLASK_ENV=development
flask init-db
< /code>
Ich habe es dann versucht: < /p>
python3 -m flask init-db
Code: Select all
export FLASK_APP=webApp.py
Hier ist der Baum meines Projekts:
Code: Select all
instance/
webApp/
├── auth.py
├── babel.cfg
├── dashboard.py
├── db.py
├── __init__.py
├── pdf.py
├── __pycache__
│ ├── auth.cpython-35.pyc
│ ├── db.cpython-35.pyc
│ ├── __init__.cpython-35.pyc
│ ├── pdf.cpython-35.pyc
│ └── ws.cpython-35.pyc
├── schema.sql
├── static