{% extends "movies-base.html" %} {% block main_content %}

Logged in as User {{uid}}

This form stands in for a "real" login form that would have both a userID and a password, and would check the password against encrypted passwords in the database. But we're not doing that. Any UID should work: try your own, or any small integer.

Your back-end will support both old-fashioned non-Ajax logins and Ajax logins. The two buttons submit to different back-end routes.

This application is rating movies in the {{database}} database.

This button turns on/off all the JavaScript:

List of Movies

{% for mv in movies %} {% endfor %}
(tt) Title Director Release My Rating Average
({{mv.tt}}) {{mv.title}} {{mv.name}} {{mv.release}}
{% for stars in range(1,6) %} {% endfor %}
{{mv.avgrating}}
{% endblock %} {% block tail %} {% endblock %}