A Django-based web application that predicts diabetes using machine learning. The application provides user authentication and a simple interface for users to input their health metrics and receive predictions.
- User Authentication (Register, Login, Logout)
- Diabetes Prediction using Machine Learning
- Responsive Web Interface
- About and Contact Pages
- Form-based Data Input
- Python 3.x
- Django
- Scikit-learn (Machine Learning Model)
- SQLite Database
- HTML/CSS
- Bootstrap (for styling)
secondproject/
├── app2/ # Main application directory
│ ├── migrations/ # Database migrations
│ ├── templates/ # HTML templates
│ ├── forms.py # User registration forms
│ ├── models.py # Database models
│ ├── urls.py # URL configurations
│ ├── views.py # View functions
│ └── training.py # ML model training script
├── static/ # Static files (CSS, JS, Images)
├── templates/ # Global templates
├── manage.py # Django management script
├── model.joblinb # Trained ML model
└── db.sqlite3 # SQLite database
- Clone the repository:
git clone <repository-url>
- Create a virtual environment and activate it:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
- Install required packages:
pip install django scikit-learn joblib pandas numpy
- Run migrations:
python manage.py migrate
- Start the development server:
python manage.py runserver
- Register a new account or login with existing credentials
- Navigate to the prediction form
- Enter the required health metrics:
- Glucose Level
- Blood Pressure
- Skin Thickness
- Insulin
- BMI (Body Mass Index)
- Diabetes Pedigree Function
- Age
- Submit the form to get the prediction result
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
Your Name - your.email@example.com Project Link: https://github.com/yourusername/secondproject