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

Closed
plucury opened this Issue Jul 21, 2012 · 2 comments

Projects

None yet

2 participants

@plucury
plucury commented Jul 21, 2012

Here is my code:

init.py:

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

view.py:

@app.route('/')                                                                 
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
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