Skip to main content

Django deployment utilities

Project description

Tools to help deploy a django application

INSTALLATION:

pip install .

CONFIGURATION:

Add ‘django_deploy_tools’, in your settings.INSTALLED_APPS.

Add a STATIC_ROOT variable in your django settings.py file.

See <https://docs.djangoproject.com/en/3.0/ref/settings/#static-files>, <https://docs.djangoproject.com/en/3.0/ref/settings/#static-root> and <https://docs.djangoproject.com/en/3.0/howto/static-files/> for more details.

USAGE:

First collect static files:

python manage.py collectstatic

If you have django-compressor run

python manage.py compress

(see <https://django-compressor.readthedocs.io/en/stable/> for more details).

Then, create a wsgi file:

python manage.py make_sgi –wsgi –out path/to/wsgi_file

And the generate an apache configuration file:

python manage.py make_apache_conf –wsgi path/to/wsgi_file –sll –out /path/to/apache_conf_file

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 Deployment Tools-0.2.0.tar.gz (14.9 kB view hashes)

Uploaded Source

Built Distribution

Django_Deployment_Tools-0.2.0-py3-none-any.whl (16.8 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