django.core.exceptions.ImproperlyConfigured: Requested setting EMAIL_BACKEND, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8 EMAIL_HOST = 'smtp.gmail.com' EMAIL_HOST_USER='myemail' EMAIL_HOST_PASSWORD='mypassword' EMAIL_PORT = 587 EMAIL_USE_TLS = True DEFAULT_FROM_EMAIL = 'myemail' BASE_URL = '127.0.0.1:8000
Partager