From c6c8b4e63f5642be730284b1a1f1ea513e36b6f6 Mon Sep 17 00:00:00 2001 From: xie7654 <765462425@qq.com> Date: Fri, 4 Jul 2025 13:19:49 +0800 Subject: [PATCH] =?UTF-8?q?pip=20=E6=8D=A2=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/Dockerfile | 2 +- backend/backend/settings.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/Dockerfile b/backend/Dockerfile index 4324942..ad0891c 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -13,7 +13,7 @@ RUN apt-get update && \ COPY requirements.txt . -RUN pip install -r requirements.txt +RUN pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple COPY . . CMD ["sh", "-c", "sleep 10 && python manage.py runserver 0.0.0.0:8000"] diff --git a/backend/backend/settings.py b/backend/backend/settings.py index 2b9dc14..ea48f0a 100644 --- a/backend/backend/settings.py +++ b/backend/backend/settings.py @@ -93,7 +93,7 @@ DATABASES = { 'ENGINE': 'django.db.backends.mysql', 'NAME': 'django_vue', 'USER': 'root', - 'PASSWORD': '', + 'PASSWORD': 'my-secret-pw', 'HOST': os.getenv('DATABASE_HOST', 'localhost'), # 'HOST': 'localhost', }