Skip to content

Commit b3b6776

Browse files
authored
Update settings.py
1 parent 0ba605b commit b3b6776

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

server/djangoproj/settings.py

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,13 @@
2828
# SECURITY WARNING: don't run with debug on in production!
2929
DEBUG = True
3030

31-
ALLOWED_HOSTS = ['localhost', 'brody8991-8000.theiadockernext-1-labs-prod-theiak8s-4-tor01.proxy.cognitiveclass.ai']
32-
CSRF_TRUSTED_ORIGINS = ['https://brody8991-8000.theiadockernext-1-labs-prod-theiak8s-4-tor01.proxy.cognitiveclass.ai']
31+
ALLOWED_HOSTS = [ # Fix Line 31: E501 line too long
32+
'localhost',
33+
'brody8991-8000.theiadockernext-1-labs-prod-theiak8s-4-tor01.proxy.cognitiveclass.ai'
34+
]
35+
CSRF_TRUSTED_ORIGINS = [ # Fix Line 32: E501 line too long
36+
'https://brody8991-8000.theiadockernext-1-labs-prod-theiak8s-4-tor01.proxy.cognitiveclass.ai'
37+
]
3338

3439
REST_FRAMEWORK = {
3540
'DEFAULT_AUTHENTICATION_CLASSES': [],
@@ -61,7 +66,9 @@
6166
TEMPLATES = [
6267
{
6368
'BACKEND': 'django.template.backends.django.DjangoTemplates',
64-
'DIRS': [os.path.join(BASE_DIR, 'frontend/static')], # Corrected spacing
69+
'DIRS': [ # Fix Line 64: E501 line too long
70+
os.path.join(BASE_DIR, 'frontend/static')
71+
],
6572
'APP_DIRS': True,
6673
'OPTIONS': {
6774
'context_processors': [
@@ -89,7 +96,7 @@
8996

9097
AUTH_PASSWORD_VALIDATORS = [
9198
{
92-
'NAME': (
99+
'NAME': ( # Fix Line 93: E501 line too long (using parentheses)
93100
'django.contrib.auth.password_validation.UserAttributeSimilarityValidator'
94101
), # User similarity validator
95102
},

0 commit comments

Comments
 (0)