Drop Database

def mongodb_drop_database(database_name):
    """Drop Database"""

    try:
        mongodb_client_url = getattr(settings, 'MONGODB_CLIENT',
                                 'mongodb://localhost:27017/')
        mc = MongoClient(mongodb_client_url,document_class=OrderedDict)
        mc.drop_database(database_name)
        # print "success"
        return ""

    except:
        # error connecting to mongodb
        # print str(sys.exc_info())
        return str(sys.exc_info())