search

Home  >  Q&A  >  body text

python - flask web开发第17章push完成后启动出现问题?

PHP中文网PHP中文网2786 days ago755

reply all(1)I'll reply

  • 高洛峰

    高洛峰2017-04-17 17:19:58

    I haven’t read that book, so I don’t know the specific code;
    Is your config_name ‘heroku’?
    Usually KeyError is that the key does not exist in the dict; that is, there is no value for the key ‘heroku’ in your config.
    You can use config.get(config_name) to check if it is None.

    reply
    0
  • Cancelreply