Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


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

plucury opened this Issue · 2 comments

2 participants

plucury John Smith

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.

John Smith

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

plucury plucury closed this
Deleted user

Have you solved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.