Django community: RSS
This page, updated regularly, aggregates Community blog posts from the Django community.
-
Deploying Wordpress Blog with Django using Docker Containers
Containers run services in an isolated environment, if we deploy our applications using containers then the host system on which these containers are running will not be affected even though the applications running within containers are being hacked. -
How to Send Email to a Public Group in Salesforce
In Salesforce it is quite difficult to send email to users individually when there are many. So, upon creating public groups with required users working on a particular project or something else. We can send emails to required particular users using public groups. -
How to Create Master-detail Relationship in Salesforce?
In Salesforce, relationships are used to create a link between objects. Whenever user clicks on particular object they can view its data and related data of that object. There are many relationships in salesforce, one among them is Master(parent)-detail(child) relationship. -
How to Use Data Loader in Salesforce
In any business importing and exporting of data is very important. Only to some extent, we can enter the data manually in the fields of any organization, So when there is a requirement for bulk upload of data, there are many tools available. In Salesforce, we use Data loader to export or import bulk data into the organization. -
How to Set Up Outbound Messaging in Salesforce
When you want to send information from Salesforce organization to any third party external service, Outbound messaging is used in Salesforce. It is a part of workflow rule, like whenever an action is triggered and an Outbound message is defined for that particular action, then the information will be delivered to external service as specified. -
Introduction to Django's Class Based Views - Understanding How a Class Based View Works
Django has MVT architecture. A view in django is just a callable that takes a request and returns a response. But this can be more than just a function, that contains the actual business logic of an URL. In addition to normal funcation based views Django provides of some classes which can be used as views. These allow you to structure your views and reuse code by inheriting them. -
Approval Process in Salesforce
As we know there will be role hierarchy in many organizations and permissions are assigned according to their roles. So, When a record or data is updated or inserted then automatically it should be approved by some assigned user. To do this In salesforce, we use Approval process method to automate the functionality. -
Understanding Django Serializers with Examples
Serializers are used for “translating” Django models into other formats like xmi,json,yaml(YAML Ain’t a Markup Language) -
Packages in Salesforce
In the salesforce organization, when you are building a component or application, it's important to know how the component or application should be distributed to other organizations or customers. So for this, we have packages in salesforce in which developed components and applications can be combined and distributed to other salesforce organizations. In this, we have defined different types of packages and their usage. -
How to Index Binary Files in Django Haystack
Now we are going to index text content which is stored in structured files such as PDFs, Microsoft Office documents, images, etc using haystack and sorl'sIn order to read and store the data, we can use SearchBackend.extract_file_contents(self, file_obj) method. It takes the file object, returns a dictionary containing two keys: metadata and contents. The contents value will be a string containing all of the text which the backend managed to extract from the file contents -
Inbound Email Service for Creating Records in Salesforce
For any type of CRM, we will receive various emails from different external systems. To create or save the information received via emails in Salesforce, we have Email Services known as Inbound Email Service -
How to Use List Methods in Salesforce
Apex provides collections such as List, Set, Map. These are similar to arrays, but these collections have advanced features and easier methods than an array. We will see about List, which is used widely in salesforce. -
Implement Search with Django-haystack and Elasticsearch Part-1
Haystack works as a search plugin for Django. You can use different backends Elastic-search, Whose, Sorl, Xapian to search objects. All backends work with the same code. In this post, I am using elastic search as backend. -
Custom Decorators To Check User Roles And Permissions In Django
A decorator is a function that takes another function and returns a newer,prettier version of that function.To know more about decorators in python see here https://micropyramid.com/blog/programming-with-python-decorators/The most common use of a decorator is the login_required. This decorator is used in conjunctionwith a view that restricts access to authenticated users only. -
Best Practices of Using Django Celery in Django Social Auth
Best Practices of Using Django Celery in Django Social Auth. -
How to Create Periodic Tasks with Django Celery?
Celery provides asynchronous job queues, which allows you to run Python functions in the background. Celery is on the Python Package Index (PyPi), and can be easily installed with pip or easy_install and its dependencies. -
Autocomplete with Django-Haystack and Elasticsearch with Single Letter Querying
Django's haystack provides autocomplete functionality. To do autocomplete effectively, the search backend(elasticsearch in this case) uses n-grams (essentially a small window passed over the string). Because this alters the way your data needs to be stored. We had two choices: NgramField and EdgeNgramField used as n-grams in search backend. The major drawback of the n-grams is that they take minimum of 3 letters in the search query. -
Handling Custom Error Pages(404, 500) In Django
404 Page not found and 500 Internal server errors generally occur in every website. When these errors occurs, generally for Django application it will load page showing the application settings. So to avoid settings open, we'll keep DEBUG=False in production mode. But keeping DEBUG=False by default the pages will be served by webservers like nginx or apache which won't look good for an end user point of view. -
How to Customize the Admin Actions in List Pages of Django Admin?
Django by default provides automatic admin interface, that reads metadata from your models to provide a beautiful model interface where trusted users can manage content on your site. With this interface we can perform actions like delete, filter and other. In this blog post we learn to add new actions to the admin dashboard and how to disable built in actions of the admin dashboard. -
Sendgrid Inbound Email Parsing with Django
Using the Inbound parse web hook, we can parse the contents, attachments of an incoming email. -
Setting Up Coveralls for Django Project
Coveraslls will check the code coverage for your test cases. To use coveralls.io your code must be hosted on GitHub or BitBucket. -
Programming with python Descriptors (_get_, _set_, _delete_) - MicroPyramid
Python descriptors are object attributes that are only invoked for new style of classes. Python descriptors comes under the category of meta programming(code that manipulates code). The descriptors are accessed with special classes that allows to: -- manage properties of another class and -- implement an interface for get, set and delete We can also say that the descriptors are object attributes and the attribute access is overridden by one of the methods in descriptor protocol. -
Understanding Audio Quality: Bit Rate, Sample Rate
Audio Quality is the accuracy and enjoyability of the audio which the user can listen from an electronic device. Audio quality depends upon the bit rate, sample rate, file format and encoded method. It also depends on the ability of the encoder to get the important bits right. -
QRCode Generation in Python
A Quick Response code(QRCode) is a two-dimensional pictographic code used for its fast readability and comparatively large storage capacity. The code consists of black modules arranged in a square pattern on a white background. The information encoded can be made up of any kind of data (e.g., binary, alphanumeric, or Kanji symbols). -
Understanding Python Properties
Python Properties is a class for managing class attributes in Python. Property( ) is a built-in function that creates and returns a property objectSyntax:attribute_name = property(get_Attribute, set_Attribute,del_Attribute(Optional), doc_Attribue(Optional))where, get_Attritube is function to get value of the attribute,