Skip to content

Commit 33316e1

Browse files
authored
Update settings.py
1 parent 56b119c commit 33316e1

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

server/djangoproj/settings.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
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 =\
25+
SECRET_KEY = \
2626
'django-insecure-ccow$tz_=9%dxu4(0%^(z%nx32#s@(zt9$ih@)5l54yny)wm-0'
2727

2828
# SECURITY WARNING: don't run with debug turned on in production!
@@ -61,7 +61,7 @@
6161
TEMPLATES = [
6262
{
6363
'BACKEND': 'django.template.backends.django.DjangoTemplates',
64-
'DIRS': [os.path.join(BASE_DIR,'frontend/static')],
64+
'DIRS': [os.path.join(BASE_DIR, 'frontend/static')], # Fix Line 64: E231 missing whitespace after ','
6565
'APP_DIRS': True,
6666
'OPTIONS': {
6767
'context_processors': [
@@ -89,8 +89,9 @@
8989

9090
AUTH_PASSWORD_VALIDATORS = [
9191
{
92-
'NAME':
93-
'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
92+
'NAME': ( # Fix Line 93: E501 line too long (83 > 79 characters)
93+
'django.contrib.auth.password_validation.UserAttributeSimilarityValidator'
94+
),
9495
},
9596
{
9697
'NAME':
@@ -135,6 +136,6 @@
135136
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
136137

137138
STATICFILES_DIRS = [
138-
os.path.join(BASE_DIR,'frontend/static')
139+
os.path.join(BASE_DIR, 'frontend/static') # Fix Line 138: E231 missing whitespace after ','
139140
]
140-
141+
# Fix Line 140: W391 blank line at end of file (removed the blank line)

0 commit comments

Comments
 (0)