Jump to content

Django


kruptein

Recommended Posts

the same problem, need help

(host = vcards.heliohost.org)

(un = simbairk)

 

set up on this article

read forum, tried different boards

best of what has made it view.index at http://vcards.heliohost.org/dispatch.wsgi. Links give an error 404 http://vcards.heliohost.org/dispatch.wsgi/500.shtml

 

my public_html/dispatch.wsgi (right 755)

 

import os, sys
sys.path.append("/home/simbairk/public_html/")
os.environ['DJANGO_SETTINGS_MODULE'] = 'phonebook.settings'
os.environ['PYTHON_EGG_CACHE'] = '/home/simbairk/.python_egg_cache' #right 775
import django.core.handlers.wsgi

_application = django.core.handlers.wsgi.WSGIHandler()
def application(environ, start_response):
    environ['PATH_INFO'] = environ['SCRIPT_NAME'] + environ['PATH_INFO']
    return _application(environ, start_response)

 

my public_html/.htaccess (right 644)

RewriteEngine On
RewriteBase /
RewriteRule ^(dispatch\.wsgi/.*)$ - [L]
RewriteRule ^(.*)$ dispatch.wsgi/$1 [QSA,PT,L]

Link to comment
Share on other sites

I found my mistake

my view.index not use database

but login use...

I need to do syncdb

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...