Error loading script uwsgi - can not be loaded as Python module

1

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

  

can not 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 sudo permission chmod a + x, even though I could not.

    
asked by anonymous 18.09.2015 / 17:47

0 answers