Django Commander
Run Django manage.py
commands from the web.
This is mainly useful in situations where you can't easily SSH into your host.
For example, if you use azf-wsgi to run Django on Azure Functions.
Configuration
- Add
commander
to yourINSTALLED_APPS
. - Add
COMMANDER_KEY
to your settings. This should be a reasonably secure key, which you'll use in lieu of real authentication😱 -
from commander import commander_urls
and addpath('commander/', commander_urls),
to your URLconf. - Navigate to
http://yourserver/yourapp/commander/?key={COMMANDER_KEY}
. - Do whatever config you need to do.
- Change
COMMANDER_KEY
explicitly toNone
to disable management😌
Contributing
Contributions welcome. Be kind to one another.
To develop locally, first make a virtualenv.
Then cd into dev/
and pip install -e ../src
.
Then pip install django
and off you go.