github.com/ddev/ddev@v1.23.2-0.20240519125000-d824ffe36ff3/pkg/ddevapp/django4/settings.ddev.py (about) 1 #!/usr/bin/env python 2 3 # #ddev-generated: Automatically generated Drupal settings file. 4 # ddev manages this file and may delete or overwrite the file unless this 5 # comment is removed. It is recommended that you leave this file alone. 6 7 DATABASES = { 8 'default': { 9 'ENGINE': '{{ .engine }}', 10 'NAME': '{{ .database }}', 11 'USER': '{{ .user }}', 12 'PASSWORD': '{{ .password }}', 13 'HOST': '{{ .host }}', 14 }, 15 } 16 17 SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https') 18 CSRF_TRUSTED_ORIGINS=["https://*", "http://*"] 19 DEBUG = True 20 21 # Mailpit setup 22 EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' 23 EMAIL_HOST = '127.0.0.1' 24 EMAIL_PORT = '1025' 25 26 ALLOWED_HOSTS = ["*"] 27 28