Flask Project Template
Project description
flask_template
templates used to fast create flask project.
install
pip install flask_template
usage
flasktemplate create [-t simple] project_name
will create a flask project directory named after project_name on current path.
flasktemplate create -t mongo project_name
will create a flask project directory named after project_name on current path. mongo template will use mongodb instead of mysql.
flasktemplate list
will list current supported templates.
normal project initial usage flow:
cd {project_name}
pyenv virtualenv {python_version} {virtualenv_name}
pyenv activate {virtualenv_name}
- modify
SQLALCHEMY_DATABASE_URI
with correct database account and database name - design and develop models and migrate, apply them into database with:
python manage.py db migrate
python manage.py db upgrade
- design develop apis
update logs
0.4.3
- add mongo template
- use mongodb instead of mysql as database
- add hamlet user authentication, send email
- add celery wokers
- add send email, tar/zip file, send file
- add dockerfile
0.4.2
- update requirements
- fix bugs
0.4.1
-
modify config.py;
-
format by pycodestyle;
0.4
-
add migrations directory,modify env.py script to support alembic:include, alembic:exclude options in alembic.ini to limit alembic dectecting tables;
-
fix some typo;
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for flask_template-0.4.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9da1480cbb514bbb796e96be41cffdd5ee4e8f3fb224294cae81dfd54c496fa9 |
|
MD5 | 747c54083fcc7b9848bb29e4617196e8 |
|
BLAKE2b-256 | 91d36bbdc98bd9d325304999755dba53b64768b72eba5e9a7f51d0064d0de8e8 |