Opened 16 years ago
Closed 16 years ago
#8718 closed (invalid)
validation TB when starting development server with oracle backend
Reported by: | 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 )
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 by , 16 years ago
Description: | modified (diff) |
---|
comment:2 by , 16 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
I'm sorry, my fault, I had some local modifications I tried out a while ago, so all fine ;)
comment:3 by , 16 years ago
Resolution: | invalid |
---|---|
Status: | closed → reopened |
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 by , 16 years ago
Resolution: | → invalid |
---|---|
Status: | reopened → closed |
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.
Fixed description formatting.
This is odd, since the
DatabaseWrapper
class for the Oracle backend does create avalidation
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.