https://youtu.be/BFjCalYXTrk?si=RYYId9tKVVPyuYA1
This is a full-stack web application built using the Django framework that demonstrates the seamless integration with a MongoDB database. The project allows users to add and view person data, showcasing a practical implementation of Django's ORM with a NoSQL database.
Create and save new person records (FirstName, LastName, Age, Location) to a MongoDB database via a simple web form.
Fetch and display all stored person data from the database on a dedicated template page.
Utilizes Django's built-in migration system to manage the database schema in MongoDB.
Backend Framework: Python (Django)
Database: MongoDB
Database Connector: Djongo
Frontend: HTML, CSS
Prerequisites Python 3.x
pip (Python package installer)
A running instance of MongoDB (usually on mongodb://localhost:27017/)
git clone https://github.com/harshitha-shetty11/Mongo_Django_Major_Project.git
cd Mongo_Django_Major_Project
python -m venv venv
venv\Scripts\activate
source venv/bin/activate Configure the database settings in mongo_django_project/settings.py to match your MongoDB setup.
python manage.py makemigrations data_app
python manage.py migrate
python manage.py runserver
Open your browser and navigate to http://127.0.0.1:8000/people/add/ to add new person data.
Visit http://127.0.0.1:8000/people/list/ to view all the data stored in the MongoDB database.
This project is licensed under the MIT License - see the LICENSE file for details.