Run a production-ready server from manage.py!
This Django app just provides a management command that serves your Django project using Waitress, a pure-Python, no-dependencies production-ready and Heroku-friendly WSGI server.
NOTE: According to PyPI, this project was originally created by adambrenecki, but it seems to be unmaintained. This fork just makes the few necessary updates to keep it up-to-date.
# Serve on http://0.0.0.0:7000
python manage.py serve --host 0.0.0.0 --port 7000
# Serve on the Unix socket /var/run/myapp
python manage.py serve --unix /var/run/myapp
# Serve on the host defined by WAITRESS_HOST
# and the port defined by WAITRESS_PORT
# in settings.py
# (defaults to localhost:8000)
python manage.py serve
You could just install Waitress itself, and run the waitress-serve
command it provides, pointing to your wsgi.py
file; the only thing that this project does is provide a Django management command, and remove the need for a wsgi.py
in your project.
This project was extracted from CMV's cookiecutter-django
To the extent possible under law,
Commercial Motor Vehicles Pty Ltd
have waived all copyright and related or neighboring rights to
cookiecutter-django.
This work is published from:
Australia.