-
Notifications
You must be signed in to change notification settings - Fork 136
Manage Sleepy Puppy
Sleepy Puppy uses manage.py
to perform management tasks. The manage.py file is located in the root of the application.
The following commands and functions are available for you to use.
runserver will start the Flask application with the default Flask web server.
python manage.py runserver
setup_sleepy_puppy will create the database, create a default login (admin/[password you choose]), and seed the database with example Payloads, PuppyScripts, and an Assessment.
python manage.py setup_sleepy_puppy
create_db will create a database.
python manage.py create_db
drop_db will drop the database.
python manage.py drop_db
create_login will create an admin account you can use to log into the UI.
python manage.py create_login admin
default_login will create an admin account (admin/admin). You should ensure you change this password!
python manage.py default_login
make_shell_context creates a python REPL with several default imports in the context of the app.
python manage.py make_shell_context
create_bootstrap_assessment will seed the application with a general Assessment, Payloads, and PuppyScripts. Recommended.
python manage.py create_bootstrap_assessment
list_routes will display the routes for the command.
python manage.py list_routes