django-rest-project

TODO App

Build simple ToDo web application using django-rest framework and javascript frontend using CRUD functionality.

Screenshot

img

Steps

  1. pip install django
  2. pip install djangorestframework
  3. python manage.py startproject project_name
  4. python manage.py startapp api
  5. Add newely created app(api) to INSTALLED_APPS
INSTALLED_APPS = [
    .....
    'api',

    ....
    'frontend',
]
  1. create searializers.py file and create serializers for models
  2. create api views in views.py using CRUD and add urls to /api/ path
  3. create frontend
    python manage.py startapp frontend
  4. create template for frontend and add frontend code
  5. finally create database and runserver
python manage.py makemigrations
python manage.py migrate
python manage.py runserver

Author

Kumar Shanu