From 0c0466e3782c317ffbb1fdd658eba412b01219bf Mon Sep 17 00:00:00 2001 From: flying-hero <462087392@qq.com> Date: Wed, 1 Apr 2026 21:48:14 +0800 Subject: [PATCH] Add WSGI config and ignore database file --- .gitignore | 1 + code/backend/backend/wsgi.py | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 code/backend/backend/wsgi.py diff --git a/.gitignore b/.gitignore index 15d7ca9..0dc2fa0 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,4 @@ dist/ # 备份 *.old/ *.bak +db.sqlite3 diff --git a/code/backend/backend/wsgi.py b/code/backend/backend/wsgi.py new file mode 100644 index 0000000..52929ea --- /dev/null +++ b/code/backend/backend/wsgi.py @@ -0,0 +1,11 @@ +""" +WSGI config for lobster_monitor project. +""" + +import os + +from django.core.wsgi import get_wsgi_application + +os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'backend.settings') + +application = get_wsgi_application()