Before running the software, make sure you have the following prerequisites installed:
- Django:
pip install django
- Django REST framework:
pip install djangorestframework
- Django MultiSelectField:
pip install django-multiselectfield
- FPDF:
pip install fpdf
Follow these steps to execute the software:
-
Make Migrations: Execute the following command to create migrations for the specified folder:
python manage.py makemigrations folder_name
-
Create Superuser: Create a superuser account by running the following command and following the prompts:
python manage.py createsuperuser
-
Apply Migrations: Apply the migrations to the database using the following command:
python manage.py migrate
-
Run Server: Finally, run the Django development server with the following command:
python manage.py runserver
Once the server is running, you can access the software at http://localhost:8000/
.
- Make sure to replace
folder_name
in themakemigrations
command with the actual name of your Django app folder. - Ensure that your virtual environment is activated before running the
pip
andpython
commands.