From e6a0aa751c1bd550c1eda2db2a95b46e3752b04b Mon Sep 17 00:00:00 2001 From: JP100099 Date: Wed, 1 Oct 2025 14:53:59 +0200 Subject: [PATCH] added gunicorn as dependency --- README.md | 6 +++++- pyproject.toml | 1 + uv.lock | 23 +++++++++++++++++++++++ 3 files changed, 29 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 53290a9..12a2fe5 100644 --- a/README.md +++ b/README.md @@ -12,4 +12,8 @@ __Create the database:__ `uv run manage.py migrate` __Create an admin user__ `uv run manage.py createsuperuser` -__Start the server__ `uv run manage.py runserver` \ No newline at end of file +__Start the server__ `uv run manage.py runserver` + +## Production + +__Run Server__ `uv run gunicorn wagtail_ahl.wsgi:application` \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 799c176..0c2846e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,5 +6,6 @@ readme = "README.md" requires-python = ">=3.13" dependencies = [ "django>=5.2,<5.3", + "gunicorn>=23.0.0", "wagtail>=7.1,<7.2", ] diff --git a/uv.lock b/uv.lock index 3f9eb6e..fe86a8c 100644 --- a/uv.lock +++ b/uv.lock @@ -222,6 +222,18 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/18/79/1b8fa1bb3568781e84c9200f951c735f3f157429f44be0495da55894d620/filetype-1.2.0-py2.py3-none-any.whl", hash = "sha256:7ce71b6880181241cf7ac8697a2f1eb6a8bd9b429f7ad6d27b8db9ba5f1c2d25", size = 19970, upload-time = "2022-11-02T17:34:01.425Z" }, ] +[[package]] +name = "gunicorn" +version = "23.0.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "packaging" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/34/72/9614c465dc206155d93eff0ca20d42e1e35afc533971379482de953521a4/gunicorn-23.0.0.tar.gz", hash = "sha256:f014447a0101dc57e294f6c18ca6b40227a4c90e9bdb586042628030cba004ec", size = 375031, upload-time = "2024-08-10T20:25:27.378Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/cb/7d/6dac2a6e1eba33ee43f318edbed4ff29151a49b5d37f080aad1e6469bca4/gunicorn-23.0.0-py3-none-any.whl", hash = "sha256:ec400d38950de4dfd418cff8328b2c8faed0edb0d517d3394e457c317908ca4d", size = 85029, upload-time = "2024-08-10T20:25:24.996Z" }, +] + [[package]] name = "idna" version = "3.10" @@ -255,6 +267,15 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/c0/da/977ded879c29cbd04de313843e76868e6e13408a94ed6b987245dc7c8506/openpyxl-3.1.5-py2.py3-none-any.whl", hash = "sha256:5282c12b107bffeef825f4617dc029afaf41d0ea60823bbb665ef3079dc79de2", size = 250910, upload-time = "2024-06-28T14:03:41.161Z" }, ] +[[package]] +name = "packaging" +version = "25.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/a1/d4/1fc4078c65507b51b96ca8f8c3ba19e6a61c8253c72794544580a7b6c24d/packaging-25.0.tar.gz", hash = "sha256:d443872c98d677bf60f6a1f2f8c1cb748e8fe762d2bf9d3148b5599295b0fc4f", size = 165727, upload-time = "2025-04-19T11:48:59.673Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/20/12/38679034af332785aac8774540895e234f4d07f7545804097de4b666afd8/packaging-25.0-py3-none-any.whl", hash = "sha256:29572ef2b1f17581046b3a2227d5c611fb25ec70ca1ba8554b24b0e69331a484", size = 66469, upload-time = "2025-04-19T11:48:57.875Z" }, +] + [[package]] name = "pillow" version = "11.3.0" @@ -438,12 +459,14 @@ version = "0.1.0" source = { virtual = "." } dependencies = [ { name = "django" }, + { name = "gunicorn" }, { name = "wagtail" }, ] [package.metadata] requires-dist = [ { name = "django", specifier = ">=5.2,<5.3" }, + { name = "gunicorn", specifier = ">=23.0.0" }, { name = "wagtail", specifier = ">=7.1,<7.2" }, ]