A gunicorn based django runserver command.
Project description
django-serve
A gunicorn based django runserver command.
Install
python3 -m pip install django-serve
and add to INSTALLED_APPS
#!python
INSTALLED_APPS = [
...
"django_serve.apps.ServeConfig",
...
]
Usage
./manage.py serve
options
--addrThe socket address to bind [default=127.0.0.1]--portThe socket port to bind [default=8000]--workersThe number of worker processes for handling requests [default max(1, (cpu + 1) / 2)]--nameA base to use with setproctitle for process naming [default=django]--wsgiDotted path to wsgi application [default=settings.WSGI_APPLICATION]--configThe Gunicorn config file [default=None]--log-levelThe granularity of Error log outputs (debug, info, warning, error, critical) [default=info]--logformatThe access log format (default='"%(m)s %(U)s%(q)s %(H)s" %(s)s %(B)s' same as default django runserver)--logger-classThe logger you want to use to log events [default=gunicorn_color.Logger if installed else gunicorn default one]--reload-engineWhich reload engine to use between polling or inotify (or not at all) [default=auto]
CHANGES
0.3.0
- add LOG_LEVEL env support
- add WORKERS env support
- drop Django < 3.2 support
- add Django 4.0 and 4.1 support
- drop Python < 3.8 support
- add Python 3.11 support
- update isort and flake8 config
- add rule for
__future__annotations
0.2.0
- use black
- drop Python 3.5 support
- add Django 3.2 support
- add Python 3.9 and 3.10 support
- add django-serve command
- add support for python -m django_serve
- install inotify only on linux platform
- add --reload-engine and DJANGO_DEFAULT_RELOAD_ENGINE option
- update default workers count
0.1.1
- add gunicorn-color as required
0.1.0
- initial implementation
- add support for gunicorn config file
- add custom django reloader
- add log-level option
- add logformat configuration
- add logger-class option
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-serve-0.3.tar.gz
(7.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django-serve-0.3.tar.gz.
File metadata
- Download URL: django-serve-0.3.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4bfb79cb779dcdd50bf4c7ec6f0df9e80246980e483b02824107c80f9408e33b
|
|
| MD5 |
01cc86915251ee37419d1271cf62480a
|
|
| BLAKE2b-256 |
6efd663551188c99f175152e1436cc0c5bb22807a96c0a1a12a7d177ec7562fa
|
File details
Details for the file django_serve-0.3-py3-none-any.whl.
File metadata
- Download URL: django_serve-0.3-py3-none-any.whl
- Upload date:
- Size: 12.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e2ab66f18b4a87f8cf0041d4aa848789df40e05efc58457eba4d65f1a4725015
|
|
| MD5 |
947741cc665c21aa3ddd51e7b2750d0e
|
|
| BLAKE2b-256 |
52c08d006a8c6ad2774fd2cdccd3b431221f4911833eed84a194e04199a1ba00
|