Latest Blog Articleshttps://learnbatta.com/Updates on changes and additions to police beat central.en-usTue, 01 Oct 2019 02:07:35 +0000django create table from modelhttps://learnbatta.com/blog/django-create-table-from-model-104/To create table in the database with django is to create a django model with all required fields and then create migrations and apply them.https://learnbatta.com/blog/django-create-table-from-model-104/django database connectivityhttps://learnbatta.com/blog/django-database-connectivity-102/Django supports various relational databases like SQLite, mySQL, PostgreSQL, Oracle. Django is completely designed for Relational Databaseshttps://learnbatta.com/blog/django-database-connectivity-102/django template using if...elif...elsehttps://learnbatta.com/blog/django-template-using-if-elif-else-101/We can use if...elif..else conditionals in django template. The only difference between python code and django template code is it's syntax.https://learnbatta.com/blog/django-template-using-if-elif-else-101/Django template for loophttps://learnbatta.com/blog/django-template-for-loop-100/Django provides a template tag "for" to provide the for loop functionality in django templates.https://learnbatta.com/blog/django-template-for-loop-100/django pass data from view to templatehttps://learnbatta.com/blog/django-pass-data-from-view-to-template-99/we seperate business logic from presentational logic. We write business logic in views and we pass data to templates to present the data.https://learnbatta.com/blog/django-pass-data-from-view-to-template-99/renderers in Django Rest Frameworkhttps://learnbatta.com/blog/renderers-in-django-rest-framework-86/renderers in Django Rest are used to give response to a request with specific media type like JSON, XML, YAML, etc.https://learnbatta.com/blog/renderers-in-django-rest-framework-86/parsers in Django Rest Frameworkhttps://learnbatta.com/blog/parsers-in-django-rest-framework-85/parsers in Django Rest are used to parse the content of incoming HTTP request. Parsers can parse different HTTP content types like "applicaion/json", etc.https://learnbatta.com/blog/parsers-in-django-rest-framework-85/mysql basics in ubuntuhttps://learnbatta.com/blog/mysql-basics-in-ubuntu-98/MySQL is a opensource database software it helps users to store, organise and retrieve data.https://learnbatta.com/blog/mysql-basics-in-ubuntu-98/routers in Django Rest Frameworkhttps://learnbatta.com/blog/routers-in-django-rest-framework-84/Routers 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.https://learnbatta.com/blog/routers-in-django-rest-framework-84/django send email using mailgun apihttps://learnbatta.com/blog/django-send-email-using-mailgun-api-94/We can send email in django using mailgun api. Mailgun is one of the trusted email service providers.https://learnbatta.com/blog/django-send-email-using-mailgun-api-94/viewsets in Django Rest Frameworkhttps://learnbatta.com/blog/viewsets-in-django-rest-framework-83/DRF 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.https://learnbatta.com/blog/viewsets-in-django-rest-framework-83/permissions in Django Rest Frameworkhttps://learnbatta.com/blog/permissions-in-django-rest-framework-82/permissions in Django Rest Framework are used to grant or deny access for different types of users to different parts of the API.https://learnbatta.com/blog/permissions-in-django-rest-framework-82/authentication in Django Rest Frameworkhttps://learnbatta.com/blog/authentication-in-django-rest-framework-81/Authentication means the process or action of verifying the identity of a user. In this article we will work on authentication in django rest framework.https://learnbatta.com/blog/authentication-in-django-rest-framework-81/advanced class based views in Django Rest Frameworkhttps://learnbatta.com/blog/advanced-class-based-views-django-rest-framework-80/Advanced class based generic views allows us implement two or more functionalities(create, list, delete, put, patch, etc) in a single API endpoint.https://learnbatta.com/blog/advanced-class-based-views-django-rest-framework-80/class based views in Django Rest Frameworkhttps://learnbatta.com/blog/class-based-views-in-django-rest-framework-79/DRF supports both function and class based views but CBV is chosen over FBV because it comes with built-in generic views for repetitive functionality.https://learnbatta.com/blog/class-based-views-in-django-rest-framework-79/