This project is a Django-based web application designed to update credit scores based on user responses to dynamically generated questions. The system includes an algorithm that calculates a credit score based on predefined factors and a pop-up interface that presents questions one by one for user input.
-
Dynamic Question Pop-up: Displays questions one by one in a modal interface.
-
Credit Scoring Algorithm: Computes a user's credit score based on their responses.
-
Configurable Questions: Each question has 4 options to choose from, and you can add as many questions as needed.
- Django 4.2
- bootstrap
- crispy-bootstrap4
- django-crispy-forms
- django-formtools
- Clone the repository
git clone https://github.com/abdrrahim2002/Dynamic-Question-Pop-up.git
- Create and activate a virtual environment
virtualenv env
source env/bin/activate
- Enter to the project folder and install dependencies
cd Dynamic-Question-Pop-up
pip install -r requirements.txt
Note
No need to run migrations as they are already configured.
- Create super user
python manage.py createsuperuser
- Start the development server
python manage.py runserver
- Access the application
Open http://127.0.0.1:8000/ in your web browser.
- Setup the questions
- Go to the admin dashboard at
http://127.0.0.1:8000/admin. - Navigate to Questions to configure your questions.
Note
By default
Option 1 = 10 points
Option 2 = 7 points
Option 3 = 4 points
Option 4 = 0 points
You can change these values by modifying the numbers in the get_score_by_select and calculate_result functions in the views.py file located in the Credit_Bereau_Score folder.
- Track user responses
- In the User responses section of the admin dashboard, you can track user responses.
- In the User profiles section of the admin dashboard, you can view the total score of each user.
Thank you for checking out this project! Your feedback and contributions are greatly appreciated. Happy coding! 🚀







