Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions frameworks/Python/django/benchmark_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"flavor": "Python3",
"orm": "Full",
"platform": "WSGI",
"webserver": "Meinheld",
"webserver": "Gunicorn",
"os": "Linux",
"database_os": "Linux",
"display_name": "Django",
Expand Down Expand Up @@ -77,7 +77,7 @@
"flavor": "Python3",
"orm": "Full",
"platform": "WSGI",
"webserver": "Meinheld",
"webserver": "Gunicorn",
"os": "Linux",
"database_os": "Linux",
"display_name": "Django [Postgres]",
Expand Down
2 changes: 1 addition & 1 deletion frameworks/Python/django/django-postgresql.dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.9-bullseye
FROM python:3.12-bullseye

ADD ./ /django

Expand Down
2 changes: 1 addition & 1 deletion frameworks/Python/django/django.dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.9-bullseye
FROM python:3.12-bullseye

ADD ./ /django

Expand Down
16 changes: 2 additions & 14 deletions frameworks/Python/django/gunicorn_conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
_is_pypy = hasattr(sys, 'pypy_version_info')
_is_travis = os.environ.get('TRAVIS') == 'true'

workers = int(multiprocessing.cpu_count() * 2.5)
workers = int(multiprocessing.cpu_count())
if _is_travis:
workers = 2

Expand All @@ -14,16 +14,4 @@
errorlog = '-'
pidfile = 'gunicorn.pid'
pythonpath = 'hello'

if _is_pypy:
worker_class = "sync"
else:
worker_class = "meinheld.gmeinheld.MeinheldWorker"

def post_fork(server, worker):
import meinheld
import meinheld.server
import meinheld.patch
meinheld.server.set_access_logger(None)
meinheld.set_keepalive(keepalive)
meinheld.patch.patch_all()
worker_class = 'sync'
6 changes: 3 additions & 3 deletions frameworks/Python/django/requirements-gunicorn.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-r requirements.txt
greenlet==0.4.17
gunicorn==20.1.0
meinheld==1.0.2
greenlet==3.1.1
gunicorn==21.2.0
gevent==24.10.2
9 changes: 4 additions & 5 deletions frameworks/Python/django/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
Django==3.2.25
mysqlclient==1.4.6
psycopg2==2.9.6; implementation_name=='cpython'
psycopg2cffi==2.9.0; implementation_name=='pypy'
pytz==2020.4
ujson==5.4.0
mysqlclient==2.2.6
psycopg2==2.9.9; implementation_name=='cpython'
pytz==2023.2
ujson==5.8.0
Loading