takame
-
Posts
2 -
Joined
-
Last visited
Posts posted by takame
-
-
Hello. For the last two hours, i've been trying to set up django, but without success. I keep getting a 500 Error, and can't figure out why. I've followed the tutorial on https://wiki.helionet.org/tutorials/django , and as it didn't work I tried using the cookiecutter template, but the result is the same. Could someone help me? Files content follow, adress is http://takame.heliohost.org/lifecounter/
.htaccess
RewriteEngine On
RewriteBase /
RewriteRule ^(media/.*)$ - [L]
RewriteRule ^(admin_media/.*)$ - [L]
RewriteRule ^(dispatch\.wsgi/.*)$ - [L]
RewriteRule ^(.*)$ /lifecounter/dispatch.wsgi/$1 [QSA,PT,L]dispatch.wsgi
import os, sys
# edit your username below
sys.path.append("/home/takame/public_html")
from django.core.wsgi import get_wsgi_application
os.environ['DJANGO_SETTINGS_MODULE'] = 'lifecounter.settings'
application = get_wsgi_application()
[Solved] Beginner - Django 500 internal server error
in Escalated Requests
Posted · Edited by takame
I'll try this later, thanks
Edit : No changes