[Answer]-Uwsgi error : Requested setting DEBUG, but settings are not configured

1👍

Try this one :

import os
import sys

sys.path.append('/home/ubuntu/web/lightea.com/elderlytracking/django_test')
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "django_test.settings") # here django_test is a directory within django_test project 

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

Leave a comment