From 9bffed61cc6f1c7154233e2b55dd42c5e9daf7b4 Mon Sep 17 00:00:00 2001 From: ACLzz Date: Sat, 20 Jun 2020 21:57:27 +0300 Subject: [PATCH] Django update and debug off --- Pipfile.lock | 24 +++++++------- cut_a_link/settings.py | 5 +-- requirements.txt | 72 +++++++++++++++++++++++++++++++++++++++--- 3 files changed, 83 insertions(+), 18 deletions(-) diff --git a/Pipfile.lock b/Pipfile.lock index 752b217..6b8e3fd 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -18,17 +18,17 @@ "default": { "asgiref": { "hashes": [ - "sha256:8036f90603c54e93521e5777b2b9a39ba1bad05773fcf2d208f0299d1df58ce5", - "sha256:9ca8b952a0a9afa61d30aa6d3d9b570bb3fd6bafcf7ec9e6bed43b936133db1c" + "sha256:7e51911ee147dd685c3c8b805c0ad0cb58d360987b56953878f8c06d2d1c6f1a", + "sha256:9fc6fb5d39b8af147ba40765234fa822b39818b12cc80b35ad9b0cef3a476aed" ], - "version": "==3.2.7" + "version": "==3.2.10" }, "certifi": { "hashes": [ - "sha256:1d987a998c75633c40847cc966fcf5904906c920a7f17ef374f5aa4282abd304", - "sha256:51fcb31174be6e6664c5f69e3e1691a2d72a1a12e90f872cbdb1567eb47b6519" + "sha256:5930595817496dd21bb8dc35dad090f1c2cd0adfaf21204bf6732ca5d8ee34d3", + "sha256:8fc0819f1f30ba15bdb34cceffb9ef04d99f420f68eb75d901e9560b8749fc41" ], - "version": "==2020.4.5.1" + "version": "==2020.6.20" }, "chardet": { "hashes": [ @@ -39,11 +39,11 @@ }, "django": { "hashes": [ - "sha256:051ba55d42daa3eeda3944a8e4df2bc96d4c62f94316dea217248a22563c3621", - "sha256:9aaa6a09678e1b8f0d98a948c56482eac3e3dd2ddbfb8de70a868135ef3b5e01" + "sha256:5052b34b34b3425233c682e0e11d658fd6efd587d11335a0203d827224ada8f2", + "sha256:e1630333248c9b3d4e38f02093a26f1e07b271ca896d73097457996e0fae12e8" ], "index": "pypi", - "version": "==3.0.6" + "version": "==3.0.7" }, "gunicorn": { "hashes": [ @@ -88,11 +88,11 @@ }, "requests": { "hashes": [ - "sha256:43999036bfa82904b6af1d99e4882b560e5e2c68e5c4b0aa03b655f3d7d73fee", - "sha256:b3f43d496c6daba4493e7c431722aeb7dbc6288f52a6e04e7b6023b0247817e6" + "sha256:b3559a131db72c33ee969480840fff4bb6dd111de7dd27c8ee1f820f4f00231b", + "sha256:fe75cc94a9443b9246fc7049224f75604b113c36acb93f87b80ed42c44cbb898" ], "index": "pypi", - "version": "==2.23.0" + "version": "==2.24.0" }, "sqlparse": { "hashes": [ diff --git a/cut_a_link/settings.py b/cut_a_link/settings.py index 4ddc1c9..f2a4754 100644 --- a/cut_a_link/settings.py +++ b/cut_a_link/settings.py @@ -23,9 +23,9 @@ SECRET_KEY = 'q-1zx-2e$+yw4=7lk@ag$ks#e9gx&wl=l$a8%93646e0kfm%o!' # SECURITY WARNING: don't run with debug turned on in production! -DEBUG = True +DEBUG = False -ALLOWED_HOSTS = ['cut-a-link.herokuapp.com', '127.0.0.1', '0.0.0.0'] +ALLOWED_HOSTS = ['cut-a-link.herokuapp.com', '127.0.0.1', '0.0.0.0', 'claes.lan'] # Application definition @@ -124,3 +124,4 @@ # https://docs.djangoproject.com/en/3.0/howto/static-files/ STATIC_URL = '/static/' +STATIC_ROOT = os.path.join(BASE_DIR, 'cutter', 'static') diff --git a/requirements.txt b/requirements.txt index 39df3d0..a77525d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,12 +1,76 @@ -asgiref==3.2.7 -certifi==2020.4.5.1 +asgiref==3.2.10 +attrs==19.3.0 +backcall==0.1.0 +bleach==3.1.5 +branca==0.4.1 +certifi==2020.6.20 +cffi==1.14.0 chardet==3.0.4 -Django==3.0.6 +cryptography==2.9.2 +cycler==0.10.0 +decorator==4.4.2 +defusedxml==0.6.0 +Django==3.0.7 +entrypoints==0.3 gunicorn==20.0.4 idna==2.9 +ipykernel==5.3.0 +ipython==7.15.0 +ipython-genutils==0.2.0 +ipywidgets==7.5.1 +jedi==0.17.0 +jeepney==0.4.3 +Jinja2==2.11.2 +json5==0.9.5 +jsonschema==3.2.0 +jupyter-client==6.1.3 +jupyter-core==4.6.3 +jupyterlab==2.1.3 +jupyterlab-server==1.1.5 +keyring==21.2.1 +kiwisolver==1.2.0 +lerc==0.1.0 +MarkupSafe==1.1.1 +matplotlib==3.2.1 +mistune==0.8.4 +nbconvert==5.6.1 +nbformat==5.0.6 +notebook==6.0.3 +ntlm-auth==1.4.0 +numpy==1.18.4 +oauthlib==3.1.0 +packaging==20.4 +pandas==1.0.4 +pandocfilters==1.4.2 +parso==0.7.0 +pexpect==4.8.0 +pickleshare==0.7.5 +prometheus-client==0.8.0 +prompt-toolkit==3.0.5 psycopg2==2.8.5 +ptyprocess==0.6.0 +pycparser==2.20 +Pygments==2.6.1 +pyparsing==2.4.7 +pyrsistent==0.16.0 +pyshp==2.1.0 +python-dateutil==2.8.1 pytz==2020.1 -requests==2.23.0 +pyzmq==19.0.1 +requests==2.24.0 +requests-ntlm==1.1.0 +requests-oauthlib==1.3.0 +requests-toolbelt==0.9.1 +SecretStorage==3.1.2 +Send2Trash==1.5.0 +six==1.15.0 sqlparse==0.3.1 +terminado==0.8.3 +testpath==0.4.4 +tornado==6.0.4 +traitlets==4.3.3 urllib3==1.25.9 +wcwidth==0.1.9 +webencodings==0.5.1 whitenoise==5.1.0 +widgetsnbextension==3.5.1