Changing urls.py to be compatible with django v 1.4+