Latest Blog Articles on changes and additions to police beat central.en-usTue, 30 Jul 2019 16:12:01 +0000django pass data from view to template seperate business logic from presentational logic. We write business logic in views and we pass data to templates to present the data. in Django Rest Framework in Django Rest are used to give response to a request with specific media type like JSON, XML, YAML, etc. in Django Rest Framework in Django Rest are used to parse the content of incoming HTTP request. Parsers can parse different HTTP content types like "applicaion/json", etc. in Django Rest Framework are used with ViewSets in django rest framework to auto config the urls. Routers provides a simple, quick and consistent way of wiring up url config. send email using mailgun api can send email in django using mailgun api. Mailgun is one of the trusted email service providers. in Django Rest Framework allows us to combine the logic for a set of related views in a single class "ViewSet". ViewSets can speed-up the development and better maintainability. in Django Rest Framework in Django Rest Framework are used to grant or deny access for different types of users to different parts of the API. in Django Rest Framework means the process or action of verifying the identity of a user. In this article we will work on authentication in django rest framework. class based views in Django Rest Framework class based generic views allows us implement two or more functionalities(create, list, delete, put, patch, etc) in a single API endpoint. based views in Django Rest Framework supports both function and class based views but CBV is chosen over FBV because it comes with built-in generic views for repetitive functionality. exception handling exception handling is one of the concepts in python programming. Before start working with exceptional handling in python what is an exception ? working with split terminal allows multiple terminal sessions can be accessed in a single window. It allows SSH sessions to remain active without being visible. reading and writing files reading and File writing is widely used concept in python Because we always deal with information and it's storage. writing modules and packages better maintainability of code we use modules and packages. staticmethod, classmethod and instancemethod have three types of class based methods in python. They are 1.static method, 2.class method and 3.instance method. Let's get started with python methods.