Closed Kadrian closed 8 years ago
compat.register
registers psycopg2
as an alias for psycopg2cffi
, but you still need to import it:
>>> from psycopg2cffi import compat
>>> compat.register()
>>> psycopg2
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'psycopg2' is not defined
>>> import psycopg2
>>> psycopg2
<module 'psycopg2cffi' from 'psycopg2cffi/__init__.pyc'>
I tried to clarify it in the README - does it look better now?
Aha! :-) Thanks for clarification!
You're welcome! :)
Is there something I'm missing?