I have a problem with my 400.html when I put the site in production
(another server).

Both desktop and server are running ubuntu 7.04.
The Desktop use the builtin webserver and the server is running apache
with mod_python

On my localhost with debug = True and debug = False, everything is
working as expected. But when I sync the code with the production web
server and I corrected the static path, the server cannot handle 400
error and throw a database error instead. (I don't use the database, I
just have it configured for future use with the default django services)

The apache user has read/write permission on the database file.

here is the error :
Mod_python error: "PythonHandler django.core.handlers.modpython"


Traceback (most recent call last):

  File "/usr/lib/python2.5/site-packages/mod_python/apache.py", line 299, in 
HandlerDispatch
    result = object(req)

  File "/var/lib/python-support/python2.5/django/core/handlers/modpython.py", 
line 163, in handler
    return ModPythonHandler()(req)

  File "/var/lib/python-support/python2.5/django/core/handlers/modpython.py", 
line 136, in __call__
    response = self.get_response(req.uri, request)

  File "/var/lib/python-support/python2.5/django/core/handlers/base.py", line 
95, in get_response
    return callback(request, **param_dict)

  File "/var/lib/python-support/python2.5/django/views/defaults.py", line 79, 
in page_not_found
    return http.HttpResponseNotFound(t.render(RequestContext(request, 
{'request_path': request.path})))

  File "/var/lib/python-support/python2.5/django/template/context.py", line 97, 
in __init__
    self.update(processor(request))

  File "/var/lib/python-support/python2.5/django/core/context_processors.py", 
line 18, in auth
    'user': request.user,

  File "/var/lib/python-support/python2.5/django/contrib/auth/middleware.py", 
line 5, in __get__
    request._cached_user = get_user(request)

  File "/var/lib/python-support/python2.5/django/contrib/auth/__init__.py", 
line 71, in get_user
    user_id = request.session[SESSION_KEY]

  File 
"/var/lib/python-support/python2.5/django/contrib/sessions/middleware.py", line 
18, in __getitem__
    return self._session[key]

  File 
"/var/lib/python-support/python2.5/django/contrib/sessions/middleware.py", line 
56, in _get_session
    expire_date__gt=datetime.datetime.now())

  File "/var/lib/python-support/python2.5/django/db/models/manager.py", line 
67, in get
    return self.get_query_set().get(*args, **kwargs)

  File "/var/lib/python-support/python2.5/django/db/models/query.py", line 211, 
in get
    obj_list = list(clone)

  File "/var/lib/python-support/python2.5/django/db/models/query.py", line 103, 
in __iter__
    return iter(self._get_data())

  File "/var/lib/python-support/python2.5/django/db/models/query.py", line 430, 
in _get_data
    self._result_cache = list(self.iterator())

  File "/var/lib/python-support/python2.5/django/db/models/query.py", line 170, 
in iterator
    cursor = connection.cursor()

  File "/var/lib/python-support/python2.5/django/db/backends/sqlite3/base.py", 
line 45, in cursor
    detect_types=Database.PARSE_DECLTYPES | Database.PARSE_COLNAMES)

OperationalError: unable to open database file



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to