Huzzy619 / NewProject40

0 stars 1 forks source link

WSGI Import error. #3

Open Swaybob opened 2 years ago

Swaybob commented 2 years ago

Running server raises an exception. Exception text - Django ImproperlyConfigured: WSGI application 'myproject.wsgi.application' could not be loaded; Error importing module.

oniyidefaith commented 2 years ago

try this pip install Django-cors-header and add this to the bottom of your setting.py file Change the line in settings.py as below

WSGI_APPLICATION = 'application' to WSGI_APPLICATION = 'wsgi.application'