Skip to main content

Deploy Django with uWSGI and Frontend with Nginx

Project description

Deploy Django with uWSGI and Frontend with Nginx

  • Nginx + uWSGI + Django

Installation

python3 -m pip install deploy_django_nginx

Options

  -f, --front-end TEXT  the dist directory of frontend  [required]
  -b, --back-end TEXT   the directory of backend  [required]
  -n, --name TEXT       the name of django project  [required]
  -d, --directory TEXT  the directory to deploy  [default: ./deploy]
  -p, --port INTEGER    the port number  [default: 1080]
  -y, --force           force overwrite directory
  -?, -h, --help        Show this message and exit.

Examples

deploy_django_nginx \
  -b /path/to/api  \                  # backend root directory
  -f /path/to/app/dist/ \             # frontend dist directory
  -n proj \                           # django project name
  -p 1080 \                           # network port
  -d /data2/work/novodb/beet \        # destination directory

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

deploy_django_nginx-1.0.0.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

deploy_django_nginx-1.0.0-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file deploy_django_nginx-1.0.0.tar.gz.

File metadata

  • Download URL: deploy_django_nginx-1.0.0.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.8

File hashes

Hashes for deploy_django_nginx-1.0.0.tar.gz
Algorithm Hash digest
SHA256 b8d0843c5f319d740a2a6bdbffce30433900cf1a66b6e31ac08d40cb83ec4dca
MD5 fee861d0eb343c458fea9afb81a08677
BLAKE2b-256 1fc4e0d95dd5ef9abba80b8954880b9c20e3e9ddc8f786c7b33e2dbe81bc89ce

See more details on using hashes here.

File details

Details for the file deploy_django_nginx-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for deploy_django_nginx-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1ef382859715b6287e905396b5360b3f3c30e0603bf5c5819bf8dfe2aee03925
MD5 0d0be507f26ef223801fdf43854041db
BLAKE2b-256 0211cd5205d6d1e5cfbad86134d17f79d7a29e198a8700b04733bb525d1e0f08

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