From 1cd74a31882eab486f6f4e9b0ba966fae8ffe5eb Mon Sep 17 00:00:00 2001 From: ctholho <28910105+ctholho@users.noreply.github.com> Date: Sat, 28 Nov 2020 00:11:26 +0100 Subject: [PATCH] wrong objects called in connection variable the f-string in `connection` refers to `postgres`, but it should be `postgresql`. --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 0da91564..74aa907d 100644 --- a/README.rst +++ b/README.rst @@ -115,7 +115,7 @@ If you've got other programmatic ways to populate the database, you would need a from pyramid_fullauth.models import Base # pylint:disable=import-outside-toplevel # NOTE: this fstring assumes that psycopg2 >= 2.8 is used. Not sure about it's support in psycopg2cffi (PyPy) - connection = f'postgresql+psycopg2://{postgres.info.user}:@{postgres.info.host}:{postgres.info.port}/{postgres.info.dbname}' + connection = f'postgresql+psycopg2://{postgresql.info.user}:@{postgresql.info.host}:{postgresql.info.port}/{postgresql.info.dbname}' engine = create_engine(connection, echo=False, poolclass=NullPool) pyramid_basemodel.Session = scoped_session(sessionmaker(extension=ZopeTransactionExtension()))