Travel Sites on Heroku

Travel Sites

Just completed this project.
I also created a Heroku App
Code on GitHub

3 Likes

Accidentally deleted the heroku app. Recreated on the following address:
Travel Sites

Thanks for creating and sharing this. I noticed you inserted the db.Model within the Post class of models.py and carefully initialised the database with a now commented out db.create_all() in app.py.

Did you find you had to seed the database - particularly for posts?

As per Werkzeug documentation (Changes — Werkzeug Documentation (3.1.x)):

Deprecate the werkzeug.urls module, except for the uri_to_iri and iri_to_uri functions. Use the urllib.parse library instead. #2600

So this function is no longer there anymore.

Changes:

#from werkzeug.urls import url_parse
from urllib.parse import urlparse

and

if not next_page or urlparse(next_page).netloc != '': #or url_parse(next_page).netloc != '':

seem to be working.

In my case also this string should have been added into app.py:

app.app_context().push()