This is a Django web application that displays a list of latest movies using the TMDb API (The Movie Database). Users can view details of each movie.
- Display a paginated list of latest movies.
- Show detailed information for each movie.
- Responsive design for a better user experience on various devices.
Make sure you have the following installed:
- Python (version 3.10)
- Django (version 4.2)
-
Clone the repository:
git clone https://github.com/davy254/movie_project
-
Navigate to the project directory:
cd movie_project
-
Install the required dependencies:
pip install -r requirements.txt
-
Apply database migrations:
python manage.py migrate
-
Run the development server:
python manage.py runserver
-
Access the application in your web browser at
http://localhost:8000
.
-
Obtain a TMDb API key from TMDb API.
-
Replace the placeholder API key in the
latest_movies
view inviews.py
with your actual TMDb API key.headers = { "accept": "application/json", "Authorization": "Bearer YOUR_TMDB_API_KEY" }
- Visit the homepage to see the list of latest movies.
- Click on a movie to view its details.