Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 601 Bytes

README.md

File metadata and controls

37 lines (27 loc) · 601 Bytes

GET API

django

create new folder on code editor

open terinal on code editor, check python version

python --version

install django

pip install django djangorestframework

create project

django-admin startproject  <your project name>

install requests

pip install requests

add file called views.py on your project (Write request function in views.py, with api from which you want Data.)

edit file called urls.py (Set URL for that view function)

add file home.html (Display from template)

run project

python manage.py runserver