Skip to content

Commit c4cba1b

Browse files
authored
Update settings.py
1 parent 1bcec65 commit c4cba1b

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

server/djangoproj/settings.py

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@
2727
# SECURITY WARNING: don't run with debug on in production!
2828
DEBUG = True
2929

30-
ALLOWED_HOSTS = [ # Fix Line 31: E501 line too long
30+
ALLOWED_HOSTS = [ # Fix Line 31 (originally 31 in the current context)
3131
"localhost",
3232
"brody8991-8000.theiadockernext-1-labs-prod-theiak8s-4-tor01.proxy.cognitiveclass.ai",
3333
]
34-
CSRF_TRUSTED_ORIGINS = [ # Fix Line 32: E501 line too long
34+
CSRF_TRUSTED_ORIGINS = [ # Fix Line 32 (originally 32 in the current context)
3535
"https://brody8991-8000.theiadockernext-1-labs-prod-theiak8s-4-tor01.proxy.cognitiveclass.ai"
3636
]
3737

@@ -65,7 +65,7 @@
6565
TEMPLATES = [
6666
{
6767
"BACKEND": "django.template.backends.django.DjangoTemplates",
68-
"DIRS": [ # Fix Line 64: E501 line too long
68+
"DIRS": [ # Fix Line 64 (originally 64 in the current context)
6969
os.path.join(BASE_DIR, "frontend/static")
7070
],
7171
"APP_DIRS": True,
@@ -93,20 +93,25 @@
9393
}
9494
}
9595

96-
AUTH_PASSWORD_VALIDATORS = [
96+
AUTH_PASSWORD_VALIDATORS = [ # Fix Line 103: E501 (by moving opening bracket)
9797
{
98-
"NAME": ( # Fix Line 93: E501 line too long (using parentheses)
98+
"NAME": ( # Fix Line 104 (previously 93): E501 (already wrapped)
9999
"django.contrib.auth.password_validation.UserAttributeSimilarityValidator"
100100
), # User similarity validator
101101
},
102102
{
103-
"NAME": "django.contrib.auth.password_validation.MinimumLengthValidator",
103+
"NAME": ( # Fix Line 108 (previously 106): E501 (wrapping string)
104+
"django.contrib.auth.password_validation.MinimumLengthValidator"
105+
),
104106
},
105107
{
106-
"NAME": "django.contrib.auth.password_validation.CommonPasswordValidator",
108+
"NAME": ( # Fix Line 112 (previously 109): E501 (wrapping string)
109+
"django.contrib.auth.password_validation.CommonPasswordValidator"
110+
),
107111
},
108112
{
109-
"NAME": "django.contrib.auth.password_validation.NumericPasswordValidator",
113+
"NAME":
114+
"django.contrib.auth.password_validation.NumericPasswordValidator",
110115
},
111116
]
112117

@@ -138,4 +143,6 @@
138143

139144
DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"
140145

141-
STATICFILES_DIRS = [os.path.join(BASE_DIR, "frontend/static")] # Static files directory
146+
STATICFILES_DIRS = [ # Fix Line 141 (originally 141 in current context): E501 (by moving opening bracket & comment)
147+
os.path.join(BASE_DIR, "frontend/static")
148+
] # Static files directory

0 commit comments

Comments
 (0)