django.core.exceptions.ImproperlyConfigured: WSGI application 'mainsite.wsgi.application' could not be loaded; Error importing module. code example
Example: django.core.exceptions.ImproperlyConfigured: WSGI application 'souroSANOU.wsgi.application' could not be loaded; Error importing module.
Change the line in settings.py as below
WSGI_APPLICATION = 'application' to WSGI_APPLICATION = 'wsgi.application'