Skip to main content

Django deployment utilities

Project description

# Django Deployement Tools

Tools to help deploy a django application.


pip install Django-Deployment-Tools


Add ‘django_deploy_tools’, in your settings.INSTALLED_APPS.

Add a STATIC_ROOT variable in your django file.

See <>, <> and <> for more details.


First collect static files:

python collectstatic

If you have django-compressor (optional) run:

python compress

(see <> for more details).

Then, create a wsgi file:

python make_sgi –wsgi –out path/to/wsgi_file

And then generate an apache configuration file:

python make_apache_conf –wsgi path/to/wsgi_file –sll –out /path/to/apache_conf_file

For more information check :

python make_apache_conf -h

Especially to define the proper ssl certificates. If not specified when creating the configuration file you will have to edit the generated apache configuration.


If you want to contribute, deployement commands are to be added in the

management/commands directory: <> As per the django documentation: <> And configuration templates used by the commands are put in the templates/django_deploy_tools`directory: <> Then, before adding a pull request, run the `check_code script to check coding rules

TODO: Add unittests.

Project details

Download files

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

Files for Django-Deployment-Tools, version 0.5.0
Filename, size File type Python version Upload date Hashes
Filename, size Django_Deployment_Tools-0.5.0-py3-none-any.whl (17.2 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size Django Deployment Tools-0.5.0.tar.gz (16.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page