MicroPyramid Blog

  • blog-category-djagno
  • blog-category-python
  • blog-category-mongodb
  • blog-categorya-ws
  • blog-categorya-ws

How to implement TokenBasedAuthentication in DjangoRestFramework?

This blog explains you how to use Token Authentication to authenticate users within a Django Application. Token Authentication is a way to authorize users by using an Auth Token.

Understanding middleware functionality in django2.0

Understanding new style of middleware in Django2.0, the difference between old-style & new-style. How to write custom middlewares in new-style and upgrading from old-style middleware.

Django acceptance testing automation with robot framework

Acceptance testing automation for django web and REST applications using a robot testing framework.

How to filter a Django Queryset using Extra

Using SQL Queries in Django ORM - Filtering extra objects within in a single query, to reduce the number of queries.

Overriding Django Model behaviour with Proxy Model

The main Usage of a proxy model is to override the main functionality of existing Model. It is a type of model inheritance without creating a new table in Database. It always queries on original model with overridden methods or managers.

how to pass extra context data to serializers in django-rest-framework ?

Django rest-framework passes extra context data to serializers for the best design of rest applications. we can use "context" parameter in serializers to pass extra context. In viewsets, generic view simply override or overload the method get_serializer_context.

Need any Help in your Project?Let's Talk