Skip to main content

Let you create flask project like use django-admin

Project description

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 myapp

SYSTEM_BLUEPRINTS = (
    (myapp, None),  # blueprint and url_prefix
)

run flask

python manage.py run

Have fun!

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

flask-go-0.1.1.tar.gz (5.2 kB view details)

Uploaded Source

File details

Details for the file flask-go-0.1.1.tar.gz.

File metadata

  • Download URL: flask-go-0.1.1.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for flask-go-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c1fd1d3459852677992ca481ebd33645e4e29722dfe867137dd765c8d0e62018
MD5 02488662a131f7007bd565c5492dfd8b
BLAKE2b-256 ea33148f9c3b57899ef8037d44515d466a93b2693472964ac174f98ecb40178b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page