Skip to content

Commit 6fc0c6b

Browse files
authored
Update settings.py
1 parent 1923275 commit 6fc0c6b

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

server/djangoproj/settings.py

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

30-
ALLOWED_HOSTS = [ # Fix Line 31 (originally 31 in the current context)
30+
ALLOWED_HOSTS = [
3131
"localhost",
32+
# Fix Line 32 (previously 31/32 in past reports): E501 line too long
3233
"brody8991-8000.theiadockernext-1-labs-prod-theiak8s-4-tor01.proxy.cognitiveclass.ai",
3334
]
34-
CSRF_TRUSTED_ORIGINS = [ # Fix Line 32 (originally 32 in the current context)
35+
CSRF_TRUSTED_ORIGINS = [
36+
# Fix Line 35 (previously 32/35 in past reports): E501 line too long
3537
"https://brody8991-8000.theiadockernext-1-labs-prod-theiak8s-4-tor01.proxy.cognitiveclass.ai"
3638
]
3739

@@ -65,7 +67,7 @@
6567
TEMPLATES = [
6668
{
6769
"BACKEND": "django.template.backends.django.DjangoTemplates",
68-
"DIRS": [ # Fix Line 64 (originally 64 in the current context)
70+
"DIRS": [
6971
os.path.join(BASE_DIR, "frontend/static")
7072
],
7173
"APP_DIRS": True,
@@ -93,19 +95,20 @@
9395
}
9496
}
9597

96-
AUTH_PASSWORD_VALIDATORS = [ # Fix Line 103: E501 (by moving opening bracket)
98+
AUTH_PASSWORD_VALIDATORS = [
9799
{
98-
"NAME": ( # Fix Line 104 (previously 93): E501 (already wrapped)
100+
"NAME": (
101+
# Fix Line 99 (previously 93/104): E501 line too long (using parentheses)
99102
"django.contrib.auth.password_validation.UserAttributeSimilarityValidator"
100103
), # User similarity validator
101104
},
102105
{
103-
"NAME": ( # Fix Line 108 (previously 106): E501 (wrapping string)
106+
"NAME": (
104107
"django.contrib.auth.password_validation.MinimumLengthValidator"
105108
),
106109
},
107110
{
108-
"NAME": ( # Fix Line 112 (previously 109): E501 (wrapping string)
111+
"NAME": (
109112
"django.contrib.auth.password_validation.CommonPasswordValidator"
110113
),
111114
},
@@ -143,6 +146,8 @@
143146

144147
DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"
145148

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")
149+
STATICFILES_DIRS = [
150+
os.path.join( # Fix Line 146 (previously 141): E501 line too long
151+
BASE_DIR, "frontend/static"
152+
)
148153
] # Static files directory

0 commit comments

Comments
 (0)