<filename>stock163/stock163/store.py
#encoding: utf-8
import pymongo
import random
HOST = "127.0.0.1"
PORT = 27017

client = pymongo.MongoClient(HOST, PORT)

NewsDB = client.NewsDB
<filename>stock163/stock163/store.py
#encoding: utf-8
import pymongo
import random
HOST = "127.0.0.1"
PORT = 27017

client = pymongo.MongoClient(HOST, PORT)

NewsDB = client.NewsDB
#encoding: utf-8