Skip to main content

Deploy django project

Project description

djangodeployer

Deploy django project with nginx, gunicorn, supervisor, postgresql on debian.

Quick start

Creates the basic config file.

djangodeployer init

Edit the basic configuration dj_config.json.

{
    "IP_ADDRESS": "0.0.0.0",        # server public ip address
    "SERVER_NAME": "django-server", # hostname of the server
    "LINUX_USER": "dj",             # server username
    "DJ_PROJ": "djangosite",        # django project name
    "PG_USER": "djadmin",           # postgresql database username
    "PG_DB": "djangodb",            # postgresql database name
    "DOMAIN_NAME": "mywebsite.com"  # domain name
}

Deploy with the command:

djangodeployer deploy

Requirements

  • Python3.6+

Installation

python3 -m pip install djangodeployer

Acknowledgments

Most of the functions use the code from Corey Schafer's youtube channel:

License

MIT

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

djangodeployer-0.1.2.tar.gz (7.2 kB view hashes)

Uploaded Source

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