changed the handler404 and handler500 to a custom view, passing scope to get proper formed urls when displaying 404 and 500 pages
from project.settings import *
DEBUG=False
TEMPLATE_DEBUG=DEBUG
SITE_ID = 3
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.comments',
'django.contrib.sessions',
'django.contrib.admin',
'django.contrib.sites',
'django.contrib.flatpages',
'django.contrib.markup',
'django.contrib.sitemaps',
'project.scipycon',
'project.scipycon.base',
'project.scipycon.proceedings',
'project.scipycon.registration',
'project.scipycon.talk',
'project.scipycon.user',
'tagging',
'robots',
)
DATABASE_ENGINE = 'mysql'
DATABASE_NAME = 'scipycon'
DATABASE_USER = 'scipy'
# Imports DATABASE_PASSWORD from project/local.py that is not part of mercurial repo
from project.local import DATABASE_PASSWORD