From 0de692b3489435ae78187f69627865a860a281a6 Mon Sep 17 00:00:00 2001 From: Aamir Khan Date: Sat, 14 Apr 2012 07:15:26 +0530 Subject: Code cleaning for api.py --- api.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'api.py') diff --git a/api.py b/api.py index 1f934c5..dbfa4b9 100644 --- a/api.py +++ b/api.py @@ -1,16 +1,12 @@ -# mongodb/api.py -from djangorestframework.views import View +#-*- coding: utf-8 -*- +from djangorestframework.views import View from django.conf.urls.defaults import url from django.http import HttpResponseNotModified, HttpResponse from lib import mongo -import pymongo import json import re -connection = pymongo.Connection('localhost', 27017) - - class EmailResource(View): """ Resource used to retrieve emails from the archives using the REST API. -- cgit