项目作者: ombharatiya

项目描述 :
E-Commerce site RESTful back-end APIs using Django & Django REST Framework (drf). Uses Coding Best Practices to make API views for CRUD operations, Serializers, django filters, DRF template customizations, search etc.
高级语言: Python
项目地址: git://github.com/ombharatiya/django-RESTful-web-apis.git
创建时间: 2020-05-30T01:59:23Z
项目社区:https://github.com/ombharatiya/django-RESTful-web-apis

开源协议:

下载


django-RESTful-web-apis

In this project we have created e-commercial site’s RESTful back-end APIs using Django REST framework.

We have used following concepts of Django & DRF to complete this project:

  • Serializer
  • API views
  • Django filters - filtering back ends
  • Pagination, search, listing & custom query etc.
  • Routers with viewsets
  • Executing CRUD operations
  • Managing serializer fields
  • Testing API views
  • data-driven web experiences

To setup the project:

  1. $ git clone https://github.com/ombharatiya/django-RESTful-web-apis.git
  2. $ cd django-RESTful-web-apis
  3. $ vrtualenv -p python3.6 .venv
  4. $ source .venv/bin/activate
  5. <.venv>$ pip install -r requirements.txt
  6. <.venv>$ python manage.py runserver

Now you can check various apis on http://localhost:8000

To run it on ‘127.0.0.1’, you might be required to add this host in settings.py file ALLOWED_HOSTS = [‘127.0.0.1’] or do ALLOWED_HOSTS = [‘*‘] .