diff options
Diffstat (limited to 'api.py')
-rw-r--r-- | api.py | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -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. |