Code Monkey home page Code Monkey logo

flask-go's Introduction

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!

flask-go's People

Contributors

cellocello avatar autodataming avatar

Stargazers

Data avatar  avatar  avatar 没眉毛的青蛙 avatar misakar avatar Cássio Botaro avatar Igor P. Leroy avatar Alexandre Souza avatar Bruno Rocha avatar

Watchers

 avatar misakar avatar

Forkers

autodataming

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.