I suppose these ones are the most probable
E - package or module path not included in sys.path;
E - duplicated package or module name taking precedence in sys.path;
So the first thing I'd try is to rename config file to something like config_default.py
.
Then you can try to use the real object instead of string eg. importing config yourself:
from flask import Flask
import config
# Setup app
app = Flask(__name__)
app.config.from_object(config)
But most likely you'll face the same error: ImportError: No module named config
Also you can use app.config.from_pyfile()
and specify full path to your config file:
app.config.from_pyfile('config.py')
from_pyfile()
uses a different technique to create the object (it uses [exc
](https://github.com/mitsuhiko/flask/blob/master/flask/config.py#L129)).
I myself prefer to use from_envvar()
and specify which config file to use in launcher (supervisord nowadays).