Test Driven Development in Python

By : Anoop Thomas Mathew

We can either prevent bad things from happening or fix it, once it is detected.

It is your choice to select any of these methodology, while developing a software. You can either develop based on a test driven process or the recover from a fiasco with tests.

Test driven development, as the name suggests, is development based on tests. Tests for core features are written prior to the implementation for the expected output, and then necessary modules are written to satisfy the needs define the


Advantages of Test Driven Development

  • application is determined by using it
  • written minimal amount of ...

more info..

Project Management Tools for Start-Ups

By : Anoop Thomas Mathew

An integral part in the success or failure, of any company is the management and communication between peers within the company as well as a well formed communication with the clients itself. 1990s was marked with the rise of tools like bugzilla, trac and a few other, which allowed developers to develop collaboratively, and more over, a bit more organized with the ticketing system. One thing to be noted is that, they did what they were supposed to do, and they still do.

As the time pass by, we got a huge number of code hosting, along with project management ...

more info..

Dynamically attaching SITE_ID to Django Caching

By : Anoop Thomas Mathew

It would be useful and convenient, if you have an automatic way to add the SITE_ID, especially, when you have multiple sites running on the same deployment. Django provides a cache prefix function KEY_FUNCTION in settings which can be used to achieve this.

Just follow the following steps, and your cache, automatically prepends SITE_ID to the cache key, making it unique across multiple sites.

  1. Put the following into the settings file.

         CACHES = {
    
         'default': {
    
          'BACKEND': 'django.core.cache.backends.db.DatabaseCache',
    
           'LOCATION': 'cache_table',
    
           KEY_FUNCTION = projectname.appname.modulename.functionname,
    
                    }
    
             }
    
  2. Write a function to get current site id, say, get_current_site(), which returns current ...

more info..
© Agiliq, 2009-2012