First clone the repo:
cd web3_task /
pip install -r requirements.txt
python manage.py runserver
this will start the Django server on http://127.0.0.1:8000/
Make sure you have metamask wallent extension in your browser: once logged in you will see like this
http://127.0.0.1:8000/api/v1/decode_swap_token/
Note : Use python >=3.9