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.