A problem when use `app.config.from_object()` #561

plucury opened this Issue Jul 21, 2012 · 2 comments


None yet

2 participants

plucury commented Jul 21, 2012

Here is my code:


app = Flask(__name__)
app.config.from_object(_config.DevConfig)#Without this line, It works well.
import model_name.view


def index():                                                                                                                                    
    return render_template('index.html')

Problem:When I use method from_object. The index page can't be found. But when I deleted it, It works very well.

I guess you shoud provide contents of _config.DevConfig object.

@plucury plucury closed this Nov 20, 2012
ghost commented Nov 20, 2012

Have you solved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment