# Path: web/config/conf.py
# DEBUG_MODE          = True
# LESS_DEBUG          = True
# JS_DEBUG            = True
# PRODUCTION          = False
# SITENAME            = "GREADER"#your site here
# SITE_DOMAIN         = ""#your site here
# PORT                = "5000"
# SECRET_KEY          = "secret_keyplzchangeit"
# MONGODB_DB          = "conure"#project db
# MONGODB_DB_UNITTEST = "conure_unittest"#project unittest
# MONGODB_HOST        = "localhost"
# MONGODB_PORT        = 27017
# MONGODB_USER        = ''#your mongodb username; keep it empty if no auth required
# MONGODB_PASSWD      = ''#your mongodb pwd; keep it empty if no auth required
# SENTRY_DSN          = ''#somethinf about sentry
# SITE = "http://" + SITE_DOMAIN + ":" + PORT
# 
# Path: web/app.py
# def check_user_before_request():
# def inject_user():


from datetime import datetime, timedelta
from flask.ext.script import Manager
from web.config import conf
from web.app import app
    from web.model import FeedSite
    from pymongo import MongoClient
    from web.model import BasicUser,UserInfo
    from web.model.feed import Feed,FeedSite
    from web.model.user import BasicUser

﻿# -*- coding: utf-8 -*-




manager = Manager(app)



@manager.command
def refresh_site():
    FeedSite.refresh()
    print "refresh sucessfully"

@manager.command
def clean_db():
    conn = MongoClient(conf.MONGODB_HOST, conf.MONGODB_PORT)

# Path: web/config/conf.py
# DEBUG_MODE          = True
# LESS_DEBUG          = True
# JS_DEBUG            = True
# PRODUCTION          = False
# SITENAME            = "GREADER"#your site here
# SITE_DOMAIN         = ""#your site here
# PORT                = "5000"
# SECRET_KEY          = "secret_keyplzchangeit"
# MONGODB_DB          = "conure"#project db
# MONGODB_DB_UNITTEST = "conure_unittest"#project unittest
# MONGODB_HOST        = "localhost"
# MONGODB_PORT        = 27017
# MONGODB_USER        = ''#your mongodb username; keep it empty if no auth required
# MONGODB_PASSWD      = ''#your mongodb pwd; keep it empty if no auth required
# SENTRY_DSN          = ''#somethinf about sentry
# SITE = "http://" + SITE_DOMAIN + ":" + PORT
# 
# Path: web/app.py
# def check_user_before_request():
# def inject_user():


# Path: manager.py
from datetime import datetime, timedelta
from flask.ext.script import Manager
from web.config import conf
from web.app import app
    from web.model import FeedSite
    from pymongo import MongoClient
    from web.model import BasicUser,UserInfo
    from web.model.feed import Feed,FeedSite
    from web.model.user import BasicUser

﻿# -*- coding: utf-8 -*-




manager = Manager(app)



@manager.command
def refresh_site():
    FeedSite.refresh()
    print "refresh sucessfully"

@manager.command
def clean_db():
    conn = MongoClient(conf.MONGODB_HOST, conf.MONGODB_PORT)

    conn.drop_database(conf.MONGODB_DB)
