Hi all,
I am experiencing an unexpected result when I try to run my
flask application. The movie.html page prints out nothing except those in the
<h1>. This appears on my webpage:
I want it to print out all the stuff related to the movie in my sql table, e.g.
year, runtime etc. How should I modify my code then? Also, when trying out
search.html, it prints method not allowed for the requested URL. How should I
rectify this?
Cravan
{% extends "layout.html" %} {% block title %}
ERROR 404 NOT FOUND
[1]Retry!
{% endblock %} {% block body %}
ERROR 404 NOT FOUND
{{message}} {% endblock %}
References
Visible links
1. file:///tmp/{{ url_for('login') }}
{% extends "layout.html" %} {% block title %}
ERROR 404 NOT FOUND
[1]Retry!
{% endblock %} {% block body %}
ERROR 404 NOT FOUND
[2]Logout!
{{message}} {% endblock %}
References
Visible links
1. file:///tmp/{{ url_for('movies') }}
2. file:///tmp/{{ url_for('logout') }}
{% extends "layout.html" %} {% block title %} Login/Registration {%
endblock %} {% block body %}
Hi, welcome to Movie Reviewer. This website is created by yourfavouriteguy.
Kindly Login or Register first!
Username:
[1]_____________________
Password:
[2]_____________________
[3]Confirm Registration!
If you have registered, please login!
Name:
[4]_____________________
Password:
[5]_____________________
[6]Login!
</div {% endblock %}
References
Visible links
{% block body %} {% endblock %}
{% extends "layout.html" %} {% block title %} {% endblock %} {% block body
%}
Movie Details
{% for lol in movie_title %}
Title: {{lol.title}}
Year: {{lol.year}}
Runtime: {{lol.runtime}}
ImdbID: {{lol.imdbID}}
ImdbRating: {{lol.imdbRating}}
{% endfor %}
[1]Back!
{% endblock %}
[2]Logout!
References
Visible links
1. file:///tmp/{{ url_for('movies') }}
2. file:///tmp/{{ url_for('logout') }}
{% block body %}
All Movies Related to Search:
{% for movie in movie_specific %}
* [1]Here's a movie called {{movie.title}} and lasts for
{{movie.runtime}} minutes. It was shot in the year {{movie.year}} and
has the imdbID of {{movie.imdbID}}. Its rating is
{{movie.imdbRating}}. {% endfor %}
[2]Back!
[3]Logout!
{% endblock %}
References
Visible links
1. file:///tmp/{{ url_for('movie', movie_title = movie.title) }}
2. file:///tmp/{{ url_for('movies') }}
3. file:///tmp/{{ url_for('logout') }}
{% extends "layout.html" %} {% block title %} Movies {% endblock %} {%
block body %}
All Movies
[1]Search for a movie
{% for movie in movies %}
* [2]Here's a movie called {{movie.title}} and lasts for
{{movie.runtime}} minutes. It was shot in the year {{movie.year}} and
has the imdbID of {{movie.imdbID}}. Its rating is
{{movie.imdbRating}}. {% endfor %}
[3]Logout!
{% endblock %}
References
Visible links
1. file:///tmp/search.html
2. file:///tmp/{{ url_for('movie', movie_title=movie) }}
3. file:///tmp/{{ url_for('logout') }}
{% extends "layout.html" %} {% block title %} {% endblock %} {% block body
%}
Search:
[1]_____________________
{% endblock %}
References
Visible links
_______________________________________________
Tutor maillist - [email protected]
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor