Jump to content

Recommended Posts

Posted

Here's your error

[Fri Jun 09 20:20:12.124673 2017] [wsgi:error] [pid 1213] [client <krydos>:25350] ModuleNotFoundError: No module named 'drEdsby', referer: http://edsby.drte.ch/
Here's the sample dispatch.wsgi from the wiki

import os, sys

# edit your username below
sys.path.append("/home/username_on_heliohost/public_html")

from django.core.wsgi import get_wsgi_application

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

application = get_wsgi_application()
You don't add your django app to the path so it's not going to be able to find your modules, such as drEdsby.
Posted

Shouldn't this be working?

import os, sys
from django.core.wsgi import get_wsgi_application

sys.path.append('/home/dr/public_html/edsby')
sys.path.append('/home/dr/public_html/edsby/drEdsby')
sys.path.append('/home/dr/public_html/edsby/webapp')

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "drEdsby.settings")

application = get_wsgi_application()
Posted

Yeah, it probably should be. The way I debug things is start really small and simple, and make sure that works. Then just keep adding small parts and making sure they all work as you add them.

 

When I was experimenting I remember having trouble with this line

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "drEdsby.settings")
which is the way startproject command writes it. I changed it to something more like

os.environ['DJANGO_SETTINGS_MODULE'] = 'drEdsby.settings'
and had better success. Does that work?
Posted

Yep, you've got a new error now:

[Sat Jun 10 04:18:38.747773 2017] [wsgi:error] [pid 26724] [client krydos:10325] RuntimeError: populate() isn't reentrant, referer: http://edsby.drte.ch/
Posted

I read through the logs some more and found this as well

[Sat Jun 10 04:43:48.904414 2017] [wsgi:error] [pid 6587] [client krydos:10808] ModuleNotFoundError: No module named 'django_jinja', referer: http://edsby.drte.ch/

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...