Skip to main content

Django deployment utilities

Project description

# Django Deployement Tools

Tools to help deploy a django application.

## INSTALLATION:

pip install Django-Deployment-Tools

## 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 (optional) 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 then generate an apache configuration file:

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

For more information check :

python manage.py 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.

## DEVELOPMENT:

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

management/commands directory: <https://github.com/ygbourhis/django_deploy_tools/tree/master/django_deploy_tools/management/commands> As per the django documentation: <https://docs.djangoproject.com/en/dev/howto/custom-management-commands/> And configuration templates used by the commands are put in the templates/django_deploy_tools`directory: <https://github.com/ygbourhis/django_deploy_tools/tree/master/django_deploy_tools/templates/django_deploy_tools> 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.

Source Distribution

Django Deployment Tools-0.5.0.tar.gz (16.9 kB view details)

Uploaded Source

Built Distribution

Django_Deployment_Tools-0.5.0-py3-none-any.whl (17.2 kB view details)

Uploaded Python 3

File details

Details for the file Django Deployment Tools-0.5.0.tar.gz.

File metadata

  • Download URL: Django Deployment Tools-0.5.0.tar.gz
  • Upload date:
  • Size: 16.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.40.1 CPython/3.8.0

File hashes

Hashes for Django Deployment Tools-0.5.0.tar.gz
Algorithm Hash digest
SHA256 2104ba27dd6cf77f5aa997feb33be97d3023e6fa4863665988b8fc587211f899
MD5 a6bee26e99259a7bd40f572b22e0fb8c
BLAKE2b-256 f7ac2967d856e9e4c47aefda41eb710c90ae2366355721b772215f16914fdb43

See more details on using hashes here.

File details

Details for the file Django_Deployment_Tools-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: Django_Deployment_Tools-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 17.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.40.1 CPython/3.8.0

File hashes

Hashes for Django_Deployment_Tools-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c7370077609fee3a0002a35517b0354bbf31b4629a48e77b30ba667055a58161
MD5 b2774e09e3eeee6d39698da3d95671c3
BLAKE2b-256 abe92a999cfc5217dd674d17ec74c37128ad0e0c307e5b03b325735485715511

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