Answer the question
In order to leave comments, you need to log in
Can't run django on hosting?
Hello.
Please help with server error 500.
[Sun Jan 29 17:00:51 2017] [error] [client 85.140.1.171] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
.htaccess
AddHandler wsgi-script .wsgi
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /django.wsgi/$1 [QSA,PT,L]
django-wsgi
import os, sys
virtual_env = os.path.expanduser('~/virtualenv/odrova')
activate_this = os.path.join(virtual_env, 'bin/activate_this.py')
execfile(activate_this, dict(__file__=activate_this))
sys.path.insert(0, os.path.join(os.path.expanduser('~'), 'project/odrova'))
os.environ['DJANGO_SETTINGS_MODULE'] = 'odrova.settings'
#import django.core.handlers.wsgi
#application = django.core.handlers.wsgi.WSGIHandler()
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
Answer the question
In order to leave comments, you need to log in
you have a cyclic redirect - that's why errors come out. and stop using Apache for goodness sake. for selling, use the nginx + gunicorn / uwsgi bundle.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question