#8718: validation TB when starting development server with oracle backend
-------------------------------------------------+--------------------------
Reporter: [EMAIL PROTECTED] | Owner: nobody
Status: new | Milestone:
Component: Database wrapper | Version: SVN
Resolution: | Keywords:
Stage: Unreviewed | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
-------------------------------------------------+--------------------------
Changes (by mtredinnick):
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
Old description:
> 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.
New description:
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.
Comment:
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.
--
Ticket URL: <http://code.djangoproject.com/ticket/8718#comment:1>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---