Skip to content

Commit

Permalink
Postgres connection path fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu committed Nov 9, 2018
1 parent c074e87 commit e048f5f
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion database_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,6 @@ def serialize(self):
}


engine = create_engine('postgresql://postgres:postgres@localhost/itemcatalog.db')
engine = create_engine('postgresql://postgres:postgres@localhost:5432/itemcatalog')

Base.metadata.create_all(engine)
Binary file modified database_setup.pyc
Binary file not shown.
2 changes: 1 addition & 1 deletion fill_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from database_setup import Base, Category, CategoryItem, User

engine = create_engine('postgresql://postgres:postgres@localhost/itemcatalog.db')
engine = create_engine('postgresql://postgres:postgres@localhost:5432/itemcatalog')
# Bind the engine to the metadata of the Base class so that the
# declaratives can be accessed through a DBSession instance
Base.metadata.bind = engine
Expand Down
2 changes: 1 addition & 1 deletion project.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@


# Connect to Database and create database session
engine = create_engine('postgresql://postgres:postgres@localhost/itemcatalog.db')
engine = create_engine('postgresql://postgres:postgres@localhost:5432/itemcatalog')
Base.metadata.bind = engine

DBSession = sessionmaker(bind=engine)
Expand Down

0 comments on commit e048f5f

Please sign in to comment.