Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/CelloCello/flask-go
Let you create flask project like use django-admin
https://github.com/CelloCello/flask-go
Last synced: 13 days ago
JSON representation
Let you create flask project like use django-admin
- Host: GitHub
- URL: https://github.com/CelloCello/flask-go
- Owner: CelloCello
- License: other
- Created: 2015-10-11T05:13:53.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2019-10-01T16:57:55.000Z (about 5 years ago)
- Last Synced: 2024-07-24T13:59:34.262Z (4 months ago)
- Language: Python
- Size: 9.77 KB
- Stars: 9
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# flask-go
Let you create flask project like use django-admin# install
pip install flask-go
# How to use
It has two command now, `startproject` and `startapp`.
If you familiar with Django, use `flask-go` just like django-admin.## create project
flask-go startproject project_name
It will create project in current folder.
if you want to create into specific path, you can:flask-go startproject project_name destination
## use your own template
If you want to use your own project template files, `flask-go` also support `--template` command option.flask-go startproject project_name --template /Users/Cello/Code/my_project_template
`flask-go` will replace `project_name` string in folder and file name and replace `%(project_name)s` in code text.
## create blueprint
Like `startproject` command, but change to use `startapp`.flask-go startapp myapp
`startapp` also support creat into specific path and `--template` command option.
After creating blueprint, you should add it into your project.
Open `settings.py` and import your app:```
# blueprint
from apps.myapp.views import myappSYSTEM_BLUEPRINTS = (
(myapp, None), # blueprint and url_prefix
)
```## run flask
python manage.py run
Have fun!