Skip to content

Commit 6d891ea

Browse files
authored
Update settings.py
1 parent 22eeb7b commit 6d891ea

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

server/djangoproj/settings.py

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,25 @@
2222
# See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/
2323

2424
# SECURITY WARNING: keep the secret key used in production secret!
25-
SECRET_KEY = "django-insecure-ccow$tz_=9%dxu4(0%^(z%nx32#s@(zt9$ih@)5l54yny)wm-0"
25+
SECRET_KEY = (
26+
"django-insecure-ccow$tz_=9%dxu4(0%^(z%nx32#s@(zt9$ih@)5l54yny)wm-0"
27+
)
2628

2729
# SECURITY WARNING: don't run with debug on in production!
2830
DEBUG = True
2931

3032
ALLOWED_HOSTS = [
3133
"localhost",
32-
# Fix Line 32 (previously 31/32 in past reports): E501 line too long
33-
"brody8991-8000.theiadockernext-1-labs-prod-theiak8s-4-tor01.proxy.cognitiveclass.ai",
34+
( # Fix Line 33: E501 line too long (splitting URL string)
35+
"brody8991-8000.theiadockernext-1-labs-prod-theiak8s-4-tor01"
36+
".proxy.cognitiveclass.ai"
37+
),
3438
]
3539
CSRF_TRUSTED_ORIGINS = [
36-
# Fix Line 35 (previously 32/35 in past reports): E501 line too long
37-
"https://brody8991-8000.theiadockernext-1-labs-prod-theiak8s-4-tor01.proxy.cognitiveclass.ai"
40+
( # Fix Line 37: E501 line too long (splitting URL string)
41+
"https://brody8991-8000.theiadockernext-1-labs-prod-theiak8s-4-tor01"
42+
".proxy.cognitiveclass.ai"
43+
)
3844
]
3945

4046
REST_FRAMEWORK = {
@@ -98,8 +104,10 @@
98104
AUTH_PASSWORD_VALIDATORS = [
99105
{
100106
"NAME": (
101-
# Fix Line 99 (previously 93/104): E501 line too long (using parentheses)
102-
"django.contrib.auth.password_validation.UserAttributeSimilarityValidator"
107+
# Fix Line 101: E501 (comment too long, shortened)
108+
# UserAttributeSimilarityValidator (splitting string on line 102)
109+
"django.contrib.auth.password_validation." # Fix Line 102: E501 (splitting string)
110+
"UserAttributeSimilarityValidator"
103111
), # User similarity validator
104112
},
105113
{
@@ -147,7 +155,7 @@
147155
DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"
148156

149157
STATICFILES_DIRS = [
150-
os.path.join( # Fix Line 146 (previously 141): E501 line too long
158+
os.path.join( # This was previously line 146, which was fixed
151159
BASE_DIR, "frontend/static"
152160
)
153161
] # Static files directory

0 commit comments

Comments
 (0)