8000 GitHub - VanL/django-waitress: Run waitress from a management command in Django
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

VanL/django-waitress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django-waitress

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.

Usage

# 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

Alternatives

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.

License

This project was extracted from CMV's cookiecutter-django

CC0
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.

About

Run waitress from a management command in Django

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

0