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/

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...