Error loading uwsgi - cannot be Loaded as Python module

Asked

Viewed 63 times

1

I made the settings to work Django with Apache, but always gives the following error:

cannot be Loaded as Python module

My file:

import os
import sys
sys.path.append('/home/myuser/public/site.com.br/public_html/app/')
sys.path.append('/home/myuser/public/site.com.br/public_html/')
os.environ['DJANGO_SETTINGS_MODULE'] = 'site.settings'

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

I tried the permision sudo chmod a+x, still I could not.

  • I solved, it was an app that was missing, so was giving this error.

  • Can you post which app was giving error, please? It may be useful to other users.

  • The problem was a module of Django that was not installed.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.