We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
Configure mod_wsgi for Django
Configure mod_wsgi for Django
HI
I have installed django and virtualenv I have configure my domain to run on wsgi
but when i launhed the page. I am still facing internal server error.
meanwhile this is the he content of django.wsgi
currently I have python 2.7.2
how do I fix this please?
and here is the error message I am actually getting.
By the way, I am using the latest VestaCP on Debian 7 (Wheezy)
I have installed django and virtualenv I have configure my domain to run on wsgi
but when i launhed the page. I am still facing internal server error.
meanwhile this is the he content of django.wsgi
Code: Select all
import os, sys
sys.path.insert(0, '/home/admin/web/django.alexprohost.com/private/django/django.alexprohost.com/env/lib/python2.6/site-packages')
sys.path.insert(0, '/home/admin/web/django.alexprohost.com/private/django/django.alexprohost.com/project/src/shared/')
sys.path.insert(0, '/home/admin/web/django.alexprohost.com/private/django/django.alexprohost.com/project/src/')
os.environ['DJANGO_SETTINGS_MODULE'] = 'main.settings'
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()
how do I fix this please?
and here is the error message I am actually getting.
Code: Select all
[Wed Sep 10 10:02:52 2014] [error] [client 85.242.136.12] mod_wsgi (pid=31913): Target WSGI script '/home/admin/web/django.alexprohost.com/public_html/django.wsgi' cannot be loaded as Python module.
[Wed Sep 10 10:02:52 2014] [error] [client 85.242.136.12] mod_wsgi (pid=31913): Exception occurred processing WSGI script '/home/admin/web/django.alexprohost.com/public_html/django.wsgi'.
[Wed Sep 10 10:02:52 2014] [error] [client 85.242.136.12] Traceback (most recent call last):
[Wed Sep 10 10:02:52 2014] [error] [client 85.242.136.12] File "/home/admin/web/django.alexprohost.com/public_html/django.wsgi", line 7, in <module>
[Wed Sep 10 10:02:52 2014] [error] [client 85.242.136.12] import django.core.handlers.wsgi
[Wed Sep 10 10:02:52 2014] [error] [client 85.242.136.12] ImportError: No module named django.core.handlers.wsgi