Configure django settings

This commit is contained in:
Barunes Padhy 2024-06-09 19:04:05 +03:00
parent 764aa04390
commit be7bf7e3a3
2 changed files with 4 additions and 1 deletions

View File

@ -26,7 +26,7 @@ SECRET_KEY = 'django-insecure-2qks!5e#imys-r@tp2t#%cc3!*apkfu9f-(a7t)bn%sm@@3aq+
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
ALLOWED_HOSTS = []
ALLOWED_HOSTS = ['localhost', '127.0.0.1', '0.0.0.0']
# Application definition
@ -142,6 +142,8 @@ DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
MEDIA_URL = '/media/'
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
CSRF_TRUSTED_ORIGINS = [
'http://localhost:3000',
]

View File

@ -2,6 +2,7 @@ asgiref==3.8.1
bottle==0.12.25
Django==5.0.6
djangorestframework==3.15.1
gunicorn==22.0.0
packaging==24.0
proxy_tools==0.1.0
sqlparse==0.5.0