Skip to content

Commit 3532e00

Browse files
authored
Update settings.py
update
1 parent fc89557 commit 3532e00

File tree

1 file changed

+21
-9
lines changed

1 file changed

+21
-9
lines changed

server/djangoproj/settings.py

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,26 @@
2828
# SECURITY WARNING: don't run with debug turned on in production!
2929
DEBUG = True
3030

31-
ALLOWED_HOSTS=['localhost',
32-
('https://maikoblaukop-8000.theianext-0-labs-prod-misc-tools-us-east-0.proxy.cognitiveclass.ai'),
33-
('https://maikoblaukop-8000.theiadockernext-1-labs-prod-theiak8s-4-tor01.proxy.cognitiveclass.ai'),
34-
('https://maikoblaukop-8000.theiadockernext-1-labs-prod-theiak8s-4-tor01.proxy.cognitiveclass.ai/admin')
31+
ALLOWED_HOSTS = [
32+
'localhost',
33+
(
34+
'https://ripochesierr-8000.theianext-0-labs-prod-misc-tools-us-east-0.'
35+
'proxy.cognitiveclass.ai'
36+
),
37+
(
38+
'https://ripochesierr-8000.theiadockernext-1-labs-prod-theiak8s-4-'
39+
'tor01.proxy.cognitiveclass.ai'
40+
)
3541
]
36-
CSRF_TRUSTED_ORIGINS=[
37-
('https://maikoblaukop-8000.theianext-0-labs-prod-misc-tools-us-east-0.proxy.cognitiveclass.ai'),
38-
('https://maikoblaukop-8000.theiadockernext-1-labs-prod-theiak8s-4-tor01.proxy.cognitiveclass.ai'),
39-
('https://maikoblaukop-8000.theiadockernext-1-labs-prod-theiak8s-4-tor01.proxy.cognitiveclass.ai/admin')
42+
CSRF_TRUSTED_ORIGINS = [
43+
(
44+
'https://ripochesierr-8000.theianext-0-labs-prod-misc-tools-us-east-0.'
45+
'proxy.cognitiveclass.ai'
46+
),
47+
(
48+
'https://ripochesierr-8000.theiadockernext-0-labs-prod-theiak8s-4-'
49+
'tor01.proxy.cognitiveclass.ai'
50+
),
4051
]
4152

4253
REST_FRAMEWORK = {
@@ -102,7 +113,8 @@
102113
AUTH_PASSWORD_VALIDATORS = [
103114
{
104115
'NAME':
105-
'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
116+
'django.contrib.auth.password_validation.'
117+
'UserAttributeSimilarityValidator',
106118
},
107119
{
108120
'NAME':

0 commit comments

Comments
 (0)