From a089f696255f8c05d1ff7a3aee4e6e73d5442ece Mon Sep 17 00:00:00 2001 From: Sabuhi Gasimzada Date: Sun, 18 Feb 2024 21:20:43 +0400 Subject: [PATCH] * --- .github/workflows/django.yml | 2 +- demo/.gitignore | 2 ++ demo/__pycache__/settings.cpython-312.pyc | Bin 3755 -> 3943 bytes demo/settings.py | 9 +++++---- vercel.json | 14 -------------- 5 files changed, 8 insertions(+), 19 deletions(-) delete mode 100644 vercel.json diff --git a/.github/workflows/django.yml b/.github/workflows/django.yml index 34e79e5d..7fd88e7a 100644 --- a/.github/workflows/django.yml +++ b/.github/workflows/django.yml @@ -27,4 +27,4 @@ jobs: pip install -r requirements.txt - name: Run Tests run: | - python manage.py test + python manage.py runserver diff --git a/demo/.gitignore b/demo/.gitignore index e69de29b..30bd623c 100644 --- a/demo/.gitignore +++ b/demo/.gitignore @@ -0,0 +1,2 @@ +.env + diff --git a/demo/__pycache__/settings.cpython-312.pyc b/demo/__pycache__/settings.cpython-312.pyc index 3fd66cab460e20eb56c095c40872b7b5f2e64bec..78ec1f3af0a2df96e0578e194f516c9630fde807 100644 GIT binary patch delta 1092 zcmbtSy>C)c6u*~8c|71!pp=%Dk3wmIw!BuYgKpG<8k?ACJM<)m)SQ=>2Q4J6Hqiwd zhfXGKFflQ>bY*04b8vO>D_UQdIv7{tU*M&b7a?>o-sI%`&d2Y3+()?L_BkS;{ zr))tph&Z59u%ZPdp5ry*2FQ;X&;b9P>2H-P8}-hB!s@i`>DA!m3kWE7{4l5zv>s7# zaV>G}MjLq0e!*Dr?mjI`aiXJMHnjsPMTSmZYVe3^6kRnlzY#CGVHiE&Lk1&UM!EQL z2*&=YiMMX_fbm}D`TqI-^9^^X5I`RUd&%w5FW`Wt8Cx&cospnp~)wg@~-vnWsU_Zxq#% zj1T3l5-OWJ@{*>eA3rK(HDwcZ+x^UqdzsbToy>Y;U3hM8{1#u+=v7@*io4o&si>Pu zJGzi5?&<>f=+*MZ(`CB&yO6du4o)D>NC8DRI?icn7&$cSUF%kFed-iX{`;mCR5MR?$ee3YMPTk&v ifeJewUi?5jr*>BT;YeD)GuJ`jGYd5sdqvF;c=12+A*^%& delta 892 zcmbtSL2nXK5Pol$D!cFsrL>f`Kxt_U1zJRH(}Rh|5D&c=H8Gt-jq+^>Sgi;lfeZct z4-E$!gO^@8a`CJu=pL=x7}~#MD9#Gs&#y3qI1j4$WXs-zSBbcJmqK|YhU?0)TNZ4g)t0t fj#Stj_yaH0&@H@^ofDPP2kJ)ugL*Ap_c{LuPfv*! diff --git a/demo/settings.py b/demo/settings.py index 328eb673..23346da1 100644 --- a/demo/settings.py +++ b/demo/settings.py @@ -1,10 +1,11 @@ +# import environ import os -# import env -# env = env.Env() -# env.Env.read_env() + +# env = environ.Env() +# environ.Env.read_env() ENVIRONMENT = os.getenv('ENVIRONMENT', 'development') @@ -12,7 +13,7 @@ DEBUG = False # ALLOWED_HOSTS = [] -ALLOWED_HOSTS = ['.vercel.app'] +ALLOWED_HOSTS = ['*'] DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) diff --git a/vercel.json b/vercel.json deleted file mode 100644 index 6edd80d5..00000000 --- a/vercel.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "builds": [ - { - "src": "demo/wsgi.py", - "use": "@vercel/python" - } - ], - "routes": [ - { - "src": "/(.*)", - "dest": "demo/wsgi.py" - } - ] -} \ No newline at end of file