Let’s Be Lazy-Productive: Class-Based Generic Views

We, programmers, are lazy. We despise repetitive tasks and are bored by monotonous project requirements. As much as possible, we automate processes and use abstractions for patterns that we always use in our work. And yet, despite being lazy, we also want to be efficient and productive. Can we really …

How to setup automatic deletion of files referenced by a filefield after record is deleted. Django 1.3

In Django 1.3 deleting a record of a filefield will not automatically delete the file associated with the record. This is done to prevent data loss scenarios such as roll back transactions and different models representing the same file. So to clean up unrepresented files in the database, you have to …

Reducing page load size with Django Compressor

Reducing css and javascript page load size is integral to web development. Minimization will reduce web page size as well as the overhead cost of requesting files from the server resulting to reduced web page latency. Listed below are some of the Django static file compressors

django-fiber: Dynamic menu, content and user-friendly CMS.

Django Fiber is a very useful app.  If your site requires dynamic content, menus and front end editing Fiber would come in handy.  Using fiber is as easy as pip install, changing settings.py and urls.py, and adding the base template. This tutorial will demonstrate how to use Fiber on an …

django-static-files

Note: Django Static Files (django-staticfiles) has been included as a contrib app in django 1.3. However, for the most cutting edge features, and also compatibility with earlier Django versions, users can install the ‘django-staticfiles’ app. django-staticfiles is a handy tool for managing and transitioning static media between development environments (which …