Teddy Xinyuan Chen
commited on
Commit
·
ccc9c65
1
Parent(s):
73add38
2024-10-08T13-06-45Z
Browse files- src/quizsite/settings.py +2 -0
- src/quizsite/wsgi.py +2 -0
- vercel.json +8 -0
src/quizsite/settings.py
CHANGED
@@ -50,6 +50,8 @@ else:
|
|
50 |
ALLOWED_HOSTS = []
|
51 |
CSRF_TRUSTED_ORIGINS = [
|
52 |
"http://localhost:8000",
|
|
|
|
|
53 |
]
|
54 |
if env.get_value("CODESPACE_NAME", default=None):
|
55 |
CSRF_TRUSTED_ORIGINS.append(
|
|
|
50 |
ALLOWED_HOSTS = []
|
51 |
CSRF_TRUSTED_ORIGINS = [
|
52 |
"http://localhost:8000",
|
53 |
+
"https://mq-django-quiz-app.vercel.app",
|
54 |
+
"https://mq-quiz.teddysc.me",
|
55 |
]
|
56 |
if env.get_value("CODESPACE_NAME", default=None):
|
57 |
CSRF_TRUSTED_ORIGINS.append(
|
src/quizsite/wsgi.py
CHANGED
@@ -14,3 +14,5 @@ from django.core.wsgi import get_wsgi_application
|
|
14 |
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "quizsite.settings")
|
15 |
|
16 |
application = get_wsgi_application()
|
|
|
|
|
|
14 |
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "quizsite.settings")
|
15 |
|
16 |
application = get_wsgi_application()
|
17 |
+
|
18 |
+
app = application
|
vercel.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"routes": [
|
3 |
+
{
|
4 |
+
"src": "/(.*)",
|
5 |
+
"dest": "api/wsgi.py"
|
6 |
+
}
|
7 |
+
]
|
8 |
+
}
|