Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Closed
plucury opened this Issue · 2 comments

2 participants

plucury John Smith
plucury

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.

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.