Project 4: Movie Watchlist: Deploy the movie watchlist project to Heroku (+3, -0)
routes.py (+1, -0)
From:
curriculum/section14/lectures/19_deploying_to_heroku/start/movie_library/routes.py
To:
curriculum/section14/lectures/19_deploying_to_heroku/end/movie_library/routes.py
index 071f12a..f8a9c8b 100644
--- a/curriculum/section14/lectures/19_deploying_to_heroku/start/movie_library/routes.py
+++ b/curriculum/section14/lectures/19_deploying_to_heroku/end/movie_library/routes.py
@@ -87,6 +87,7 @@ def login():
if not user_data:
flash("Login credentials not correct", category="danger")
return redirect(url_for(".login"))
+
user = User(**user_data)
if user and pbkdf2_sha256.verify(form.password.data, user.password):
runtime.txt (+1, -0)
From:
curriculum/section14/lectures/19_deploying_to_heroku/end/runtime.txt
To:
curriculum/section14/lectures/19_deploying_to_heroku/end/runtime.txt
new file mode 100644
index 0000000..a18669d
--- /dev/null
+++ b/curriculum/section14/lectures/19_deploying_to_heroku/end/runtime.txt
@@ -0,0 +1 @@
+python-3.10.3
Procfile (+1, -0)
From:
curriculum/section14/lectures/19_deploying_to_heroku/end/Procfile
To:
curriculum/section14/lectures/19_deploying_to_heroku/end/Procfile
new file mode 100644
index 0000000..5e2a5fb
--- /dev/null
+++ b/curriculum/section14/lectures/19_deploying_to_heroku/end/Procfile
@@ -0,0 +1 @@
+web: gunicorn "movie_library:create_app()"