Forums

Error running WSGI application ModuleNotFoundError: No module named 'django'

import os import sys

path = '/home/chlow/djangoProject'
if path not in sys.path:
    sys.path.append(path)

os.environ['DJANGO_SETTINGS_MODULE'] = 'djangoProject.settings'


from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()

Hello guys, i think i write correctly on the path but it still showing that the module. Already try multiple of times on editing the path for trial and error but still not successful. Hope anyone would lend me a hand in pointing out my mistake. Thank you so much.

This is my setting file path : /home/chlow/djangoProject/djangoProject/settings.py

Image : https://photos.app.goo.gl/rNEKZUuJBTmomc6E8

If the error is "no module named django" then it's likely that you're using a virtualenv and haven't installed Django into it; on the "Web" page there is a "Start a console in this virtualenv" link; click there and it will start up a console where you can run "pip install django".