/home/~USER/public_html/django.fcgi/ не был найден на этом сервере
Это сводит меня с ума. Мой.htaccess это
AddHandler fcgid-script .fcgi
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ django.fcgi/$1 [QSA,L]
И мой django.fcgi выглядит нормально
#!/usr/bin/python
import os, sys
PROJECT_PATH = os.path.abspath(os.path.join(os.path.dirname( __file__ ),'/home/USER/django-example-project/example_website'))
venv = os.path.abspath(os.path.join(os.path.dirname( __file__ ),'/home/USER/django-example-project/venv/bin/activate_this.py'))
execfile(venv, dict(__file__=venv))
sys.path.insert(0, "{0}/../example_website".format(PROJECT_PATH))
os.environ['DJANGO_SETTINGS_MODULE'] = "example_website.settings"
from django.core.servers.fastcgi import runfastcgi
runfastcgi(method="threaded", daemonize="false")
Когда я ставлю в браузере http://localhost/~USER
это дает мне ошибку
The requested URL /home/~USER/public_html/django.fcgi/ was not found on this server.
Почему я получаю эту ошибку. И мои.htacces и django.fcgi находятся в каталоге public_html. Я перепробовал много вещей, но это всегда показывает это:(