Ensure the following are installed on your system:
- Python 3.10+
- Django
- SQLAlchemy (or any other database of your choice)
- SQLite (or another database, if preferred)
-
Clone the repository:
git clone https://github.com/Bragadeesh16/Quizapp.git cd Quizapp -
Set up a virtual environment:
python3 -m venv env source env/bin/activate # For Linux/MacOS env\Scripts\activate # For Windows
-
Install the required dependencies:
pip install -r pip-requirements.txt
-
Run database migrations (if you're using Django's default database setup with SQLite or any other database):
python manage.py makemigrations
python manage.py migrate
-
Create a superuser:
Run the following command to create a superuser account:
python manage.py createsuperuser
Follow the prompts to set a email, username, and password.
-
Run the Django development server:
python manage.py runserver
The application will be accessible at http://127.0.0.1:8000.
-
Login to the Django Admin Panel:
- Visit http://127.0.0.1:8000/admin in your browser.
- Login using the superuser credentials you created earlier.
-
Add a Question Bank:
- After logging in, you will be directed to the admin dashboard.
- In the admin panel, look for the "Question Bank" section.
- Click on the "Question Bank" model to view existing question banks (if any) or to create a new one.
- Click on the "Add Question Bank" button to create a new question bank, and fill in the necessary fields.
-
Add Questions to the Question Bank:
- Once the question bank is created, go to the "Questions" section.
- Click on the "Add Question" button to add a new question.
- For each question, fill in the fields such as:
- The text of the question.
- The four possible options (A, B, C, D).
- The correct answer.
- The question should belong to the question bank you created earlier (select it from the dropdown list).
-
Save and Repeat:
- After adding the question, click "Save."
- You can repeat the process to add more questions to your question bank. """