The Django app is divided into four modules:
- moviereviews : This is the root module. It contains the settings.py and init.py file. Also, contains the base template for all other templates. The base.html shows whether a user is currently logged in or not.
- movie : Defines the Models for storing movies and reviews with the admin; views for processing search request for a specific movie, sigining up user, routing to the movie details page, creating, editing and updating reviews made by that user once they are logged in. Contains the templates for displaying the movies at home page, showing movie details, and review form.
- accounts : Handles POST request to create new users, checks if a username has already been taken and implements log-in/log-out functionality.
- news : Defines the news Model for storing news articles; the view for retrieving news objects from the database and then passing them to the news.html template for display.
Pillow (Python Imaging Library) has been used for image processing.
Log-in/sing-up page:
Home page:
Movie-details page:
News page: