Python
Django
Interact with the Artisan console or execute ad-hoc scripts.
Prerequisites
To get the most out of this guide, you will need to:
- Either create an account in our managed instance or deploy your own hoop.dev instance
- hoop.dev’s CLI installed in your local machine
- You must be your account administrator to perform the following commands
Configuration
To proxy the manage.py shell
command, execute the following command within your root application path.
hoop run --name django-demo --command 'manage.py shell'
To proxy ad-hoc executions, add the command manage.py shell -
.
hoop run --name django-demo --command 'manage.py shell -'
How to Use
Users can now connect and perform ad-hoc executions.
hoop connect django-demo
hoop exec django-demo -i 'print("Hello World")'