Complete error: Requested setting INSTALLED_APPS, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
When trying to deploy my Django channels application it returns this error.
To use django-channels it is necessary to use an ASGI server, I am using Daphne for this, perhaps it has nothing to do with the type of server because it previously deployed a Django WSGI application without many complications and without that error.
I have searched for information about this error and I have found that I must set the DJANGO_SETTINGS_MODULE variable manually, but I don’t know where to do it and if that is enough.