поправил файл настроек
This commit is contained in:
parent
feb1493ecd
commit
4a5bc8cc6b
@ -13,10 +13,12 @@ DEBUG = DEBUG.lower().strip() in ('true', 'yes', '1', 'y', 't')
|
||||
|
||||
AUTH_USER_MODEL = 'auth.User'
|
||||
|
||||
ALLOWED_HOSTS = [
|
||||
'localhost',
|
||||
'127.0.0.1',
|
||||
]
|
||||
ALLOWED_HOSTS = os.getenv(
|
||||
'DJANGO_ALLOWED_HOSTS',
|
||||
default=[
|
||||
'localhost,127.0.0.1',
|
||||
],
|
||||
).split(',')
|
||||
|
||||
INSTALLED_APPS = [
|
||||
'films.apps.FilmsConfig',
|
||||
@ -90,19 +92,19 @@ DATABASES = {
|
||||
AUTH_PASSWORD_VALIDATORS = [
|
||||
{
|
||||
'NAME': 'django.contrib.auth.'
|
||||
'password_validation.UserAttributeSimilarityValidator',
|
||||
'password_validation.UserAttributeSimilarityValidator',
|
||||
},
|
||||
{
|
||||
'NAME': 'django.contrib.auth.'
|
||||
'password_validation.MinimumLengthValidator',
|
||||
'password_validation.MinimumLengthValidator',
|
||||
},
|
||||
{
|
||||
'NAME': 'django.contrib.auth.'
|
||||
'password_validation.CommonPasswordValidator',
|
||||
'password_validation.CommonPasswordValidator',
|
||||
},
|
||||
{
|
||||
'NAME': 'django.contrib.auth.'
|
||||
'password_validation.NumericPasswordValidator',
|
||||
'password_validation.NumericPasswordValidator',
|
||||
},
|
||||
]
|
||||
|
||||
|
||||
@ -3,4 +3,5 @@ django-ckeditor==6.7.0
|
||||
django-cleanup==8.1.0
|
||||
pillow==10.2.0
|
||||
python-dotenv~=1.0.1
|
||||
sorl-thumbnail==12.10.0
|
||||
sorl-thumbnail==12.10.0
|
||||
psycopg2-binary==2.9.1
|
||||
Loading…
x
Reference in New Issue
Block a user