Sign inSign up

pythonflask/python-flask-demo

By pythonflask

•Updated almost 8 years ago

this python flask test demo

Image
0

1.0K

pythonflask/python-flask-demo repository overview

build status coverage report

⁠Flask Skeleton

Flask starter project... new release

⁠Quick Start

⁠Basics
  1. Activate a virtualenv
  2. Install the requirements
⁠Set Environment Variables

Update skeleton/server/config.py, and then run:

$ export APP_SETTINGS="skeleton.server.config.DevelopmentConfig"

or

$ export APP_SETTINGS="skeleton.server.config.ProductionConfig"
⁠Create DB
$ python manage.py create_db
$ python manage.py db init
$ python manage.py db migrate
$ python manage.py create_admin
$ python manage.py create_data
⁠Run the Application
$ python manage.py runserver

So access the application at the address http://localhost:5000/⁠

Want to specify a different port?

$ python manage.py runserver -h 0.0.0.0 -p 8080
⁠Testing1
$ tox

Tag summary

Content type

Image

Digest

Size

352.2 MB

Last updated

almost 8 years ago

docker pull pythonflask/python-flask-demo