Run a production-ready server from manage.py
Project description
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 production-ready and `Heroku-friendly <heroku>`_ WSGI server.
.. _heroku: http://blog.etianen.com/blog/2014/01/19/gunicorn-heroku-django/
Usage
-----
.. code-block:: sh
# 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 <ccdj>`_
.. _ccdj: https://gitlab.com/abre/cookiecutter-django
.. raw:: html
<p xmlns:dct="http://purl.org/dc/terms/" xmlns:vcard="http://www.w3.org/2001/vcard-rdf/3.0#">
<a rel="license"
href="http://creativecommons.org/publicdomain/zero/1.0/">
<img src="http://i.creativecommons.org/p/zero/1.0/88x31.png" style="border-style: none;" alt="CC0" />
</a>
<br />
To the extent possible under law,
<span resource="[_:publisher]" rel="dct:publisher">
<span property="dct:title">Commercial Motor Vehicles Pty Ltd</span></span>
have waived all copyright and related or neighboring rights to
<span property="dct:title">cookiecutter-django</span>.
This work is published from:
<span property="vcard:Country" datatype="dct:ISO3166"
content="AU" about="[_:publisher]">
Australia</span>.
</p>
===============
Run a production-ready server from manage.py!
This Django app just provides a management command that serves your Django project using Waitress, a production-ready and `Heroku-friendly <heroku>`_ WSGI server.
.. _heroku: http://blog.etianen.com/blog/2014/01/19/gunicorn-heroku-django/
Usage
-----
.. code-block:: sh
# 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 <ccdj>`_
.. _ccdj: https://gitlab.com/abre/cookiecutter-django
.. raw:: html
<p xmlns:dct="http://purl.org/dc/terms/" xmlns:vcard="http://www.w3.org/2001/vcard-rdf/3.0#">
<a rel="license"
href="http://creativecommons.org/publicdomain/zero/1.0/">
<img src="http://i.creativecommons.org/p/zero/1.0/88x31.png" style="border-style: none;" alt="CC0" />
</a>
<br />
To the extent possible under law,
<span resource="[_:publisher]" rel="dct:publisher">
<span property="dct:title">Commercial Motor Vehicles Pty Ltd</span></span>
have waived all copyright and related or neighboring rights to
<span property="dct:title">cookiecutter-django</span>.
This work is published from:
<span property="vcard:Country" datatype="dct:ISO3166"
content="AU" about="[_:publisher]">
Australia</span>.
</p>
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-waitress-0.1.0.tar.gz
(5.0 kB
view details)
Built Distribution
File details
Details for the file django-waitress-0.1.0.tar.gz
.
File metadata
- Download URL: django-waitress-0.1.0.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/0.11.2 CPython/3.6.2 Darwin/17.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | befb3cd608c3b10ded724fcaa3940459796eeeb1551fef0610d66dfdb5772b49 |
|
MD5 | af3c6252c1e6c255962c28d1106c62ed |
|
BLAKE2b-256 | 0a7fce68a69dac97dc84d0e9a41ec3c5167de117e117d5d0fb13433826ff6698 |
File details
Details for the file django_waitress-0.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: django_waitress-0.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 10.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/0.11.2 CPython/3.6.2 Darwin/17.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c24bcd90e9134979b23c046c64c94cab5a224fe5d6d1f5449dd27e3559c5245d |
|
MD5 | 839d45c375b7d3c354b422e769f67513 |
|
BLAKE2b-256 | 8305a0a66ae36057d95c6d438d533b36a61b4198de43d6e433fb61eb94408e20 |