Skip to main content

Run Django manage.py commands from the web

Project description

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

  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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-commander-0.1.1.tar.gz (4.7 kB view hashes)

Uploaded Source

Built Distribution

django_commander-0.1.1-py3-none-any.whl (7.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page