Opened 8 years ago

Closed 8 years ago

#8718 closed (invalid)

validation TB when starting development server with oracle backend

Reported by: stefan+django@… Owned by: nobody
Component: Database layer (models, ORM) Version: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

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 (4)

comment:1 Changed 8 years ago by Malcolm Tredinnick

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.

comment:2 Changed 8 years ago by anonymous

Resolution: invalid
Status: newclosed

I'm sorry, my fault, I had some local modifications I tried out a while ago, so all fine ;)

comment:3 Changed 8 years ago by brawaga

Resolution: invalid
Status: closedreopened

The same problem when trying firebird through django:

D:\mysite>manage.py runserver
Validating models...
Unhandled exception in thread started by <function inner_run at 0x00D47670>
Traceback (most recent call last):

File "C:\Python252\lib\site-packages\django\core\management\commands\runserver.py", line 48, in inner_run

self.validate(display_num_errors=True)

File "C:\Python252\lib\site-packages\django\core\management\base.py", line 122, in validate

num_errors = get_validation_errors(s, app)

File "C:\Python252\lib\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'

I use Python 2.5.2 and django 1.0

comment:4 Changed 8 years ago by Karen Tracey

Resolution: invalid
Status: reopenedclosed

Django doesn't ship with a firebird backend, so the first place to go to figure out what is going wrong is wherever you got the firebird backend from. It's likely a problem in that backend code, not Django.

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