Django community: RSS
This page, updated regularly, aggregates Community blog posts from the Django community.
-
How to Add a Custom Managers in Django
Django Custom Managers - A Manager is the interface through which database query operations are provided to Django models. At least one Manager exists for every model in a Django application. You can use a custom Manager in a particular model by extending the base Manager class and instantiating your custom Manager in your model. There are two reasons you might want to customize a Manager: to add extra Manager methods, and/or to modify the initial QuerySet the Manager returns. -
How to Use Nested Formsets in Django
Django Formsets manage the complexity of multiple copies of a form in a view. By using formsets, you can know how many forms were their initially, which ones have been changed, and which ones should be deleted. In this blog post, we'll explain how nested formsets are used in django -
How to Convert XML Content into Json Using XMLtodict
We need to process large amounts of data to get the desired results from XML file. xmltodict will help you to process, give JSON formatted data within a less span of time. In this blog post, we'll explain to you how to use in a django project. -
Django Webpacker - A Compression Tool to Bundles CSS, Js Files
django-webpacker is a django compressor tool which bundles css, js files to a single css, js file with webpack and updates your html files with respective css, js file path with a single management command. It also supports django-storages to load compressed css, js files from AWS S3. -
Export HTML Web Page to PDF Using JsPDF
jsPDF is used to generate pdf files in client-side Javascript. You can find the links for jsPDF here and also you can find the link to project homepage. You've to include the scripting files/links in head section to work properly.Tip: We have to download the newest version of the library and include it in the HEAD or at the end of the BODY section. -
How to Document API Requests using Django Rest Swagger
Django Rest Swagger is used to Document your API for eg., Listing all Your project Rest API's in the browser with brief description about the API. In Developing an application, we will write our required API's. To Document these API's we use Django Rest Swagger. -
Working with Django Plugins
This blog describes about how to work with django-plugins. Django Plugin is a Simple Plugin Framework for Django. By using django-plugins, you can make your app more reusable. By using it, you can define plugin points and plugins. It comes with many features like synchronization with database, plugins management from django admin and many more. -
How to Create Custom User Model or Extend User Model in Django
Django provides built in authentication which is good for most of the cases, but you may have needs that are being served with the existing system. For Ex: You want 'email' for authentication purpose rather than Django's username field and you want an extra field called 'display_name' as full name for the logged in User. To meet the above requirements, we need to customize Django's built-in user model or substitute a completely customized model. -
Django Single Sign On(SSO) to Multiple Applications
Single sign on is a way for users to issue a security token for the first time login, login into multiple applications using one set of credentials i.e security token.Adding sso to an application will make things easier for users because they don't need to remember login credentials for multiple applications. User just needs to enter their login credentials for the first time instead of re-entering their credentials for every application login. -
Understanding Routers in Django-Rest-Framework
By using routers in django-rest-framework we can avoid writing of url patterns for different views. Routers will save a lot of time for developing the API for larger projects. Routers generates standardized url patterns for better maintenance of url structure. We can expect consistent behaviour from viewsets and routers. We can also avoid repetitive code in views. -
Preserve File Names with Sorl for Better SEO
We use sorl-thumbnail for scaling images by keeping the original one intact. Sorl proven to be great tool for generating different sized images throughout website. I presume that you know how to use sorl-thumbnail. Here we see how to preserve filename. Search Engines will give importance to image alt tag content but it definately have some impact on relevant image file name too. -
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. -
Custom Password Less Authentication in Django
Authentication backends allow the ability to change what method checks your users credentials.For web services, ie Facebook authentication, you don't have access to user data like a password. Without password(not like random string) we can't create a user in django. Facebook connect provides you details of the currently authenticated user. -
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 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. -
Django Acceptance Testing Automation with Robot Framework
Acceptance testing automation for django web and REST applications using a robot testing framework. -
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. -
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. -
Customizing Django REST API Serializers
Customizing Django REST API Serializers -
Implementation of Single Sign on Using Auth0 in Django Application
As the no of applications increases, users need to create username & passwords, need to remember for each application. Users can't remember these details and, sometimes users use single username/password for all applications, then there may be a chance of hacking your accounts easily. To provide more flexibility for the users, we should provide sso login, which makes seamless authentication experience. -
What is Django CRM and it’s Advantages
Here in this blog you can find about CRM, Importance of CRM in sales, Types of CRM, How django crm helps for business and it’s advantages -
Is Django Best Framework for your Web Application Development
Is Django best framework for your web application development -
Live Chat with SalesForce Live Agent
Live chat with SalesForce Live Agent -
How to Share Data Across Salesforce Organizations using Salesforce to Salesforce Integration
Customers have their own organizations in a shared platform. Sometimes, one organization may require to fetch data from the other one. To share data between two organizations, there are some methods in salesforce, one of them is establishing Salesforce to Salesforce connection in both organizations. -
How to Backup and Restore Mysql, Postgresql and Mongodb Databases
Data loss can happen when we accidentally delete the files, or when server crashes or system fails, or when we applied migrations to the data that didn't work so we don't get previous data with the schema. In the production environment, it's mandatory to do database backup when we do changes in the code.