https://github.com/vtbassmatt/django-commander
Run Django manage.py commands from the web
https://github.com/vtbassmatt/django-commander
django python web
Last synced: about 2 months ago
JSON representation
Run Django manage.py commands from the web
- Host: GitHub
- URL: https://github.com/vtbassmatt/django-commander
- Owner: vtbassmatt
- Created: 2018-12-31T20:41:21.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-31T20:52:21.000Z (over 7 years ago)
- Last Synced: 2025-03-08T13:05:15.819Z (over 1 year ago)
- Topics: django, python, web
- Language: Python
- Size: 16.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://github.com/vtbassmatt/azf-wsgi) to run Django on Azure Functions.
## Configuration
1. Add `commander` to your `INSTALLED_APPS`.
2. Add `COMMANDER_KEY` to your settings. This should be a reasonably secure key, which you'll use in lieu of real authentication 😱
3. `from commander import commander_urls` and add `path('commander/', commander_urls),` to your URLconf.
4. Navigate to `http://yourserver/yourapp/commander/?key={COMMANDER_KEY}`.
5. Do whatever config you need to do.
6. Change `COMMANDER_KEY` explicitly to `None` 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.