Jump to content

takame

Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by takame

  1. 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()

     

     

×
×
  • Create New...