Django community: RSS
This page, updated regularly, aggregates Community blog posts from the Django community.
-
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, -
Vim for Python Web Development
Having a good environment setup is important for effective, fast and easy coding. We have different IDE's like eclipse, pycharm, sublime etc.. which are powerful and easy to use.IDE's like eclipse, pycharm, sublime etc.. are resource intensive as they run many features, this is not a problem if you have really great system with powerfull resources. -
Programming with Python: Decorators
Python decorators supports aspect-oriented programming. It is used to add or modify code in functions or classes. Using decorators will provide security, tracing, looking ..etc Let see an example:@fundecoratordef myfunc():print "This is my function" -
Publishing Python Modules with PIP via PyPi
We'll install so many packages in our day to day python development. Now in this blog post, we'll try to know how to create our own python module installable with PIP. PyPI is the default Package Index for the Python community. In this post will explain about how to develop and publish python packages to make those available to every one with develop pip install python packages. -
Python Web Scraping with Beautiful Soup
Download all One Piece animation series episodes by scraping site using BeautifulSoup python library. -
Converting Audio and Video Files Using FFMPEG Tool
FFMPEG is a command-line tool that converts audio or video to required formats, which handle multimedia data. It can also capture and encode in real-time. -
How to Generate PDF Files from HTML In Python Using PDFKIT
There are many approches for generating PDF in python. pdfkit is one of the better approache as, it renders HTML into PDF with various image formats, html forms and other complex printable documents. -
How to Access Development Server Publicly Using Localtunnel
We do need to expose our local server to hit call-back URLs while programming with other APIs. There is a tool called local tunnel from http://localtunnel.me/ and that does it for you for free with https. Now, what local tunnel is? Local tunnel allows us to easily share a web service on our local development machine without any server modifications. It will assign a unique URL which can be publicly accessible that will proxy all requests to our locally running webserver. -
Using Python Xlwt Generating CSV Writer and Excel Files
In most of the cases, you need to export the data from your database to different formats. In this post I will show you how to create functions in your Django applications which export data as files. Here I will be covering the mostly used formats: CSV and Excel. -
How to Create your Own E-Commerce Shop Using Django-Oscar
Oscar is an open-source eCommerce framework for Django. Django Oscar provides a base platform to build an online shop. Oscar is built as a highly customisable and extendable framework. It supports Plug-gable tax calculations, Per-customer pricing, Multi-currency etc. -
Generating PDF Files in Python Using Xhtml2pdf
There are many ways for generating PDF in python. In this post I will be presenting PDF files generation with xhtml2pdf.xhtml2pdf: xhtml2pdf is a HTML/CSS to PDF converter written in Python and therefore platform independent. xhtml2pdf supports for frameworks like Django and simple integration into Python programs. It is also usable as stand alone command line tool.pisa: pisa is a html2pdf converter using the ReportLab Toolkit, the HTML5lib and pyPdf. -
Running Django with PyPy to Boost Performance
Running Django with PyPy to boost performance -
Django PayU Payment Gateway Integration
In this blog, we will see how to integrate Django and PayU Payment Gateway. To integrate with PayU, we have package called "django-payu" - a pluggable Django application.GitHub Repository: django-payuDocumentaion: django-payu.readthedocs.org -
Extract Data from PDF and all Microsoft Office Files in Python
The quick way to get/extract text from PDFs in Python is with the Python library "slate". Slate is a Python package that simplifies the process of extracting text. In this post, we will see how to get/extract from pdf's. -
Google Plus API Integration with Django
Using GPlus integration by Django, we can get the user verified email id, general information, friends in a less span of time, and user can also share articles. -
Integrate Django-Oscar-Accounts with Django-Oscar
This package uses double-entry bookkeeping where every transaction is recorded twice (once for the source and once for the destination). This ensures the books always balance and there is full audit trail of all transactional activity.