Code

Opened 4 years ago

Last modified 3 years ago

#13924 new New feature

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.

Attachments (0)

Change History (4)

comment:1 Changed 4 years ago by gabrielhurley

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

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 Changed 3 years ago by graham_king

  • Severity set to Normal
  • Type set to New feature

comment:3 Changed 2 years ago by aaugustin

  • UI/UX unset

Change UI/UX from NULL to False.

comment:4 Changed 2 years ago by aaugustin

  • Easy pickings unset

Change Easy pickings from NULL to False.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as new
The owner will be changed from nobody to anonymous. Next status will be 'assigned'
as The resolution will be set. Next status will be 'closed'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.