Opened 16 years ago

Last modified 16 years ago

#8718 closed

validation TB when starting development server with oracle backend — at Version 1

Reported by: stefan+django@… Owned by: nobody
Component: Database layer (models, ORM) Version: dev
Severity: 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 Malcolm Tredinnick)

When running manage.py runserver, it starts in a loop but gives this TB:

Validating models...
Unhandled exception in thread started by <function inner_run at 0x85059cc>
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/django/core/management/commands/runserver.py", line 48, in inner_run
    self.validate(display_num_errors=True)
  File "/usr/lib/python2.5/site-packages/django/core/management/base.py", line 122, in validate
    num_errors = get_validation_errors(s, app)
  File "/usr/lib/python2.5/site-packages/django/core/management/validation.py", line 65, in get_validation_errors
    connection.validation.validate_field(e, opts, f)
AttributeError: 'DatabaseWrapper' object has no attribute 'validation'

This doesn't happen with the psycopg2 backend.

Change History (1)

comment:1 by Malcolm Tredinnick, 16 years ago

Description: modified (diff)

Fixed description formatting.

This is odd, since the DatabaseWrapper class for the Oracle backend does create a validation attribute in the __init__ method. The validation attribute was introduce in r8296 (August 11), for reference.

What version of the code are you running? If you just did an upgrade from something earlier than r8296, can you make sure your old .pyc files have been removed and try again? Just in case there's some kind of holdover there.

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