Skip to content

Manage Sketchy

Scott Behrens edited this page Jul 30, 2014 · 1 revision

Sketchy uses manage.py to perform management tasks. The manage.py file is located in the root of the sketch application.

The following commands and functions are available for you to use.

runserver

runserver will start the Flask application with the default Flask web server.

python manage.py runserver

start

start will start the Flask application with Gunicorn.

python manage.py start

create_db

create_db will create a database with the capture table.

python manage.py create_db

drop_db

drop_db will drop the database.

python manage.py drop_db

clear

clear will remove all local file captures.

python manage.py clear

make_shell_context

make_shell_context creates a python REPL with several default imports in the context of the app.

python manage.py make_shell_context

show_urls

show_urls will display the rules and endpoints for urls.

python manage.py show_urls

list_routes

list_routes will display the routes for the command.

python manage.py list_routes