Opened 14 years ago

Closed 10 years ago

#13924 closed New feature (wontfix)

Add information about error "can't adapt type 'Decimal'" to documentation

Reported by: dmkurilov Owned by: nobody
Component: Documentation Version:
Severity: Normal Keywords: Decimal error
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

When you use Django with Apache and mod_wsgi (as described here) and when your application uses PostgreSQL with psycopg2 sometimes you get error ProgrammingError: can't adapt type 'Decimal'.

Here and here is decision. I guess it would be nice to read about this error and ways to solve it in Django documentation rather than use Google.

Thanks.

Change History (5)

comment:1 by Gabriel Hurley, 14 years ago

Triage Stage: UnreviewedAccepted

There may be a useful tidbit Django could share here, but I'd like to see any potential patch have an explanation of why either the process_group directive or daemon mode setting prevent this Decimal value from being passed in erroneously. Moreover, the threads linked recommend upgrading psycopg2 and mod_wsgi; is there some minimum version required for this fix to work? Simply saying "if you're getting this error then do this" doesn't seem like enough to me.

comment:2 by Graham King, 14 years ago

Severity: Normal
Type: New feature

comment:3 by Aymeric Augustin, 13 years ago

UI/UX: unset

Change UI/UX from NULL to False.

comment:4 by Aymeric Augustin, 13 years ago

Easy pickings: unset

Change Easy pickings from NULL to False.

comment:5 by Tim Graham, 10 years ago

Resolution: wontfix
Status: newclosed

This was fixed in psycopg 2.4.3 (ticket #52).

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