From 672f3748146fdd9c435cdf256127a9b94f9dfe2c Mon Sep 17 00:00:00 2001 From: bakatrouble Date: Fri, 12 Mar 2021 01:28:31 +0300 Subject: [PATCH] =?UTF-8?q?=D1=84=D0=B2=D0=B2=20=D1=86=D1=80=D1=88=D0=B5?= =?UTF-8?q?=D1=83=D1=80=D1=89=D0=B3=D1=8B=D1=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Pipfile | 1 + Pipfile.lock | 10 +++++++++- config/settings.py | 1 + 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/Pipfile b/Pipfile index 9b764de..71f1faa 100644 --- a/Pipfile +++ b/Pipfile @@ -35,6 +35,7 @@ tgcrypto = "*" psycopg2-binary = "*" hiredis = "*" twisted = {extras = ["http2", "tls"], version = "*"} +whitenoise = "*" [dev-packages] diff --git a/Pipfile.lock b/Pipfile.lock index c29088d..9c43460 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -1,7 +1,7 @@ { "_meta": { "hash": { - "sha256": "4bdfd1ffab8493310c08b8caaf32c5ed07fe1b084aa32107c50d0cbdab12b815" + "sha256": "af0051ce4cbe3965f9d19d33c2b4ce64f6fa9d4732a9e254979bade34c27664f" }, "pipfile-spec": 6, "requires": { @@ -934,6 +934,14 @@ ], "version": "==0.2.5" }, + "whitenoise": { + "hashes": [ + "sha256:05ce0be39ad85740a78750c86a93485c40f08ad8c62a6006de0233765996e5c7", + "sha256:05d00198c777028d72d8b0bbd234db605ef6d60e9410125124002518a48e515d" + ], + "index": "pypi", + "version": "==5.2.0" + }, "zope.interface": { "hashes": [ "sha256:05a97ba92c1c7c26f25c9f671aa1ef85ffead6cdad13770e5b689cf983adc7e1", diff --git a/config/settings.py b/config/settings.py index 8954f8d..564aa38 100644 --- a/config/settings.py +++ b/config/settings.py @@ -39,6 +39,7 @@ INSTALLED_APPS = [ MIDDLEWARE = [ 'djconfig.middleware.DjConfigMiddleware', 'django.middleware.security.SecurityMiddleware', + 'whitenoise.middleware.WhiteNoiseMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware',