psycopg 3 - getting attributeError

29 views
Skip to first unread message

Brian Nabusiu

unread,
Nov 4, 2022, 1:29:08 PM11/4/22
to Django users
attribute_error.pngHello, 

I wanted to migrate my app to using psycopg 3. However, I got an error that insists using psycopg2, even when it was not installed in venv. So I decided to ammend some django code as illustrated by the inventor of psycopg3. However, 
  1. django complained of not knowing how to import Text from django.db.utils. So I inspected the utils.py, there was class Text. I created one and the error went away. I know I am very much likely wrong doing that
  2. django started but I could not connect to querry relations with attribute error that objects do not have status attribute as shown in the image attached
Anyone using django 4.1, python 3.11.0 and psycopg3 to help?


Reply all
Reply to author
Forward
0 new messages