upgrade from django1.5 to 1.7b4: use json to replace simplejson;update TEMPLATE_DIR