Hi!
I try to write a hello world application on Windows. I managed to install the WSGI module for Apache, the script is called, I can do a vanilla python WSGI hello world, but with Django I have configuration issues. I have the following code:
wsgi.py
import os
from django.core.wsgi import get_wsgi_application
os.environ['DJANGO_SETTINGS_MODULE'] = 'app.settings'
application = get_wsgi_application()
app/settings.py
ROOT_URLCONF='app.urls'
ALLOWED_HOSTS = ['localhost', '127.0.0.1']
SECRET_KEY = '1234'
DEBUG_TOOLBAR_PATCH_SETTINGS = False
My problem, that the app/settings.py does not appear to be loaded, neither the app/urls.py. I got the error message
django.core.exceptions.ImproperlyConfigured: The included URLconf ‘settings’ does not appear to have any patterns in it. If you see the ‘urlpatterns’ variable with valid patterns in the file then the issue is probably caused by a circular import.
No matter what I do I got the same error message. It does not matter whether I change the name of the settings file in the DJANGO_SETTINGS_MODULE
or I remove that line.
What should I do to fix this?