Flask automated MVC experiment
Project description
Flask MVC Experiment (Django alternative)
Idea: Django alternative (powered by Flask + SQL-Alchemy)
Run project
Install requirements
pip install -r requirements.txt
Apply changes to database (from database migration files)
flask db upgrade
Start Webserver
set FLASK_APP=flask_mvc_app
flask run
# optional
flask run --port 80 --host 0.0.0.0
Development
Enable debug mode for development:
set FLASK_DEBUG=1
Use Flask Shell:
flask shell
>>> from flask_mvc_app.models import *
>>> TestModel.all()
Create migration-file after model changes
flask db migrate -m "user model added"
Initialize DB Structures
Normally not needed again... (for information only)
flask db init
Create Release-Build for PIP
python setup.py bdist_wheel
Inspired (or powered) by:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
flask_mvc-0.1.5-py3-none-any.whl
(96.3 kB
view hashes)
Close
Hashes for flask_mvc-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b67f5248a5ed02cd8de9afabe75fb653676bc49b9870ba01e730b9af480a6c8d |
|
MD5 | f792f90bb8588282a843453d09a7466e |
|
BLAKE2b-256 | 876270b384df452f328c094c259d25782be8cb71da85f9891084117a7d4e48b3 |