Movie Mania is a simple video rental application developed using Django. This project focuses on the fundamental concepts of the Django framework, providing a straightforward interface to manage a collection of movies.
- Movie Listings: View a list of movies, each with its genre, stock number, and daily rental rate.
- API Integration: Created an API using django-tastypie to expose movie data in JSON format, making it easy to share and access across multiple platforms.
Throughout this tutorial, I have learned:
- Understanding the fundamental aspects of the Django framework
- Creating and managing models, views, and templates.
- Implementing an API using django-tastypie for data sharing in JSON format.
- Focusing on functionality and logic rather than styling.
To run this project locally, follow these steps:
- Clone the repository:
git clone https://github.com/abdrrahim2002/simple-video-rental-application.git
cd simple-video-rental-application/
- Create a virtual environment:
virtualenv venv
source venv/bin/activate
- Install the required packages:
pip install -r requirements.txt
- Create the database:
python manage.py makemigrations
python manage.py migrate
- Create super user :
python manage.py createsuperuser
- Run the Django development server:
python manage.py runserver
-
Open your browser and enter to the admin section to start add you movies infos by visiting
http://127.0.0.1:8000/admin
-
to see the api response visit
http://127.0.0.1:8000/api/movies/
Special thanks ❤️ to Mosh Hamedani for the excellent tutorial that guided me through this project. His teaching has been invaluable in enhancing my understanding of Django.
Thank you for taking the time to check out Movie Mania! I hope you find it insightful and enjoyable!