Skip to main content

Run Django manage.py command 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.0.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

django_commander-0.1.0-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file django-commander-0.1.0.tar.gz.

File metadata

  • Download URL: django-commander-0.1.0.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.2

File hashes

Hashes for django-commander-0.1.0.tar.gz
Algorithm Hash digest
SHA256 abc4c3a626880528918b16b22ee03295e63f0a6fb269e9499f990df3278217c6
MD5 7cc3515022d3b10ca8dfeed7f0cded0e
BLAKE2b-256 7501c0b8e27ac4eb638e7650089ca5ffa5d301b2374ec493bfdb8c4e5b959f53

See more details on using hashes here.

File details

Details for the file django_commander-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: django_commander-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.2

File hashes

Hashes for django_commander-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 18b1674dc064cd150e1ce11298d0a926e9c9d0f5304a313bf563466359048e39
MD5 1534b3590ce814a91797ba8b93e6d400
BLAKE2b-256 0c60a503752f6dca7b979422bcf7b98eabf28f9c8bf1b1a44e80bb6a2640d6c5

See more details on using hashes here.

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