Skip to content

Commit

Permalink
wrong objects called in connection variable
Browse files Browse the repository at this point in the history
the f-string in `connection` refers to `postgres`, but it should be `postgresql`.
  • Loading branch information
ctholho authored Nov 27, 2020
1 parent 1d192c1 commit 1cd74a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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()))
Expand Down

0 comments on commit 1cd74a3

Please sign in to comment.