Skip to main content

Easy to use django command for deploy your project in nginx using asgi.

Project description

IMPORTANT

This package adds a new command to manage.py for your django project, it does requires root access for deployment and also requires you to have nginx and systemctl installed on your system. All this project is free and open source, you can see its code inside of https://github.com/n4b3ts3/django-deploy, DO NOT COPY THIS CODE FROM OTHERS SOURCES THAN PIP OR GITHUB IT MAY BE A MALWARE

WARNINGS

When you runs this commands some warnings may appears, please do not ignore those warnings cause may means potentialy dangerous leaks in your django project

INSTALATION

pip3 install django-deploy-asgi

USAGE

Make deployment and run it into your default browser if there is any ;)

  • sudo path_to_venv/bin/python3 manage.py deploy Show help
  • sudo path_to_venv/bin/python3 manage.py deploy -h

WHY ROOT?

We need sudo permissions in order to create a service in /etc/systemd/system so you can create a consistent service that you manually later will enable for persistency We create files only in the nexts directories using md5 hashes of the DEPLOY_NAME set by the user in settings.py:

  • /etc/systemd/system/*_django_asgi.service|socket
  • /etc/nginx/sites-enabled/*_django_asgi

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-deploy-asgi-1.0.2.tar.gz (6.8 kB view hashes)

Uploaded Source

Built Distribution

django_deploy_asgi-1.0.2-py3-none-any.whl (7.4 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