Skip to content

Commit

Permalink
Solution
Browse files Browse the repository at this point in the history
  • Loading branch information
Gleb1395 committed Jan 10, 2025
1 parent c3c3b7a commit cb36f8c
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions taxi_service/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,11 @@
# Build paths inside the project like this: BASE_DIR / "subdir".
BASE_DIR = Path(__file__).resolve().parent.parent


# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/4.0/howto/deployment/checklist/

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = "django-insecure-8ovil3xu6=eaoqd#-#&ricv159p0pypoh5_lgm*)-dfcjqe=yc"
SECRET_KEY = "django-insecure-8ovil3xu6=eaoqd#-#&ricv159p0pypoh5_lgm*)-dfcjqe=yc" # NOQA E501

# SECURITY WARNING: don"t run with debug turned on in production!
DEBUG = True
Expand Down Expand Up @@ -78,7 +77,6 @@

WSGI_APPLICATION = "taxi_service.wsgi.application"


# Database
# https://docs.djangoproject.com/en/4.0/ref/settings/#databases

Expand All @@ -89,23 +87,22 @@
}
}


# Password validation
# https://docs.djangoproject.com/en/4.0/ref/settings/#auth-password-validators

AUTH_PASSWORD_VALIDATORS = [
{
"NAME": "django.contrib.auth.password_validation."
"UserAttributeSimilarityValidator",
"UserAttributeSimilarityValidator",
},
{
"NAME": "django.contrib.auth.password_validation." "MinimumLengthValidator",
"NAME": "django.contrib.auth.password_validation." "MinimumLengthValidator", # NOQA E501
},
{
"NAME": "django.contrib.auth.password_validation." "CommonPasswordValidator",
"NAME": "django.contrib.auth.password_validation." "CommonPasswordValidator", # NOQA E501
},
{
"NAME": "django.contrib.auth.password_validation." "NumericPasswordValidator",
"NAME": "django.contrib.auth.password_validation." "NumericPasswordValidator", # NOQA E501
},
]

Expand All @@ -124,7 +121,6 @@

USE_TZ = True


# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/4.0/howto/static-files/

Expand Down

0 comments on commit cb36f8c

Please sign in to comment.