You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As recommended in Django Unit Testing instructions, I added the -Wall argument to python.exe in the python -Wall manage.py test command. When the production API image is built and the test-entrypoint.sh command is run, it now reports an error concerning psycopg2 being deprecated in favor of django.db.backends.postgresql:
$ bin/test.sh -p
Creating network "[secure]resiliencebackend_default" with the default driver
Postgres is up
/usr/local/lib/python3.6/importlib/_bootstrap.py:219: ImportWarning: can't resolve package from __spec__ or __package__, falling back on __name__ and __path__
return f(*args, **kwds)
/usr/local/lib/python3.6/importlib/_bootstrap.py:219: ImportWarning: can't resolve package from __spec__ or __package__, falling back on __name__ and __path__
return f(*args, **kwds)
/usr/local/lib/python3.6/importlib/_bootstrap.py:219: ImportWarning: can't resolve package from __spec__ or __package__, falling back on __name__ and __path__
return f(*args, **kwds)
/usr/local/lib/python3.6/site-packages/django_db_geventpool/backends/postgresql_psycopg2/base.py:13: RemovedInDjango30Warning: The django.db.backends.postgresql_psycopg2 module is deprecated in favor of django.db.backends.postgresql.
from django.db.backends.postgresql_psycopg2.base import CursorWrapper
Is it necessary for us continue to use the psycopg2 module to connect to postgres, or can we update to the official and recommended DB connector?
The text was updated successfully, but these errors were encountered:
As recommended in Django Unit Testing instructions, I added the
-Wall
argument topython.exe
in thepython -Wall manage.py test
command. When the production API image is built and thetest-entrypoint.sh
command is run, it now reports an error concerningpsycopg2
being deprecated in favor ofdjango.db.backends.postgresql
:Is it necessary for us continue to use the psycopg2 module to connect to postgres, or can we update to the official and recommended DB connector?
The text was updated successfully, but these errors were encountered: