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 , 14 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:2 by , 14 years ago
Severity: | → Normal |
---|---|
Type: | → New feature |
comment:5 by , 10 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
This was fixed in psycopg 2.4.3 (ticket #52).
Note:
See TracTickets
for help on using tickets.
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.