Opened 19 years ago

Closed 19 years ago

#478 closed defect (worksforme)

error with sqlite and admin

Reported by: anonymous Owned by: Adrian Holovaty
Component: contrib.admin Version:
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Jacob)

When trying to load the admin page, it comes up with this error (I´m using sqlite):

Mod_python error: "PythonHandler django.core.handlers.modpython"

Traceback (most recent call last):

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

  File "/home/joey/django_projects/django/core/handlers/modpython.py", line 164, in handler
    return ModPythonHandler()(req)

  File "/home/joey/django_projects/django/core/handlers/modpython.py", line 145, in __call__
    response = middleware_method(request, response)

  File "/home/joey/django_projects/django/middleware/sessions.py", line 68, in process_response
    datetime.datetime.now() + datetime.timedelta(seconds=SESSION_COOKIE_AGE))

  File "/home/joey/django_projects/django/models/core.py", line 148, in _module_save
    s.save()

  File "/usr/lib/python2.4/site-packages/django/utils/functional.py", line 3, in _curried

  File "/home/joey/django_projects/django/core/meta/__init__.py", line 801, in method_save
    ','.join(field_names), ','.join(placeholders)), db_values)

  File "/usr/lib/python2.4/site-packages/django/core/db/base.py", line 10, in execute

  File "/home/joey/django_projects/django/core/db/backends/sqlite3.py", line 67, in execute
    return Database.Cursor.execute(self, query, params)

OperationalError: SQL logic error or missing database

Change History (1)

comment:1 by Jacob, 19 years ago

Description: modified (diff)
Resolution: worksforme
Status: newclosed

This is a bug with your setup -- could be you don't have write access to the sqlite db -- not with Django (the sqlite backend works for me and passes all tests). Please post support requests to http://groups.google.com/django-users.

Note: See TracTickets for help on using tickets.
Back to Top