The flask.ext namespace is a transistion namespace, see the Extension Import Transition section of the Flask Extension Development docs:
For a while we recommended using namespace packages for Flask extensions. This turned out to be problematic in practice because many different competing namespace package systems exist and pip would automatically switch between different systems and this caused a lot of problems for users.
and
Flask extensions should urge users to import from flask.ext.foo instead of flask_foo or flaskext_foo so that extensions can transition to the new package name without affecting users.
So to transition between versions, the flask.ext alias was added, which will automatically try to import flask_[name] packages when importing flask.ext.[name]. But that transition is now moot; you no longer will find packages that still rely solely on flask.ext.
As such, it is perfectly fine to use the actual module name and have PyCharm autocomplete the module contents.
You only really have to use flask.ext if you are still using an older version of the extension and need to be future compatible. That future is already here.
flask_sqlalchemyis real package that make aliasflask.ext.sqlalchemy- so it will work fine as just package. For me it work fine: PyCharm 3.4.1. Build #PY-135.1057, built on June 10, 2014 JRE: 1.7.0_65-b32 amd64 JVM: OpenJDK 64-Bit Server VM by Oracle Corporation. Probably you have local bug with environment. - tbicrfrom flask_sqlalchemy import ..is the correct form; theflask.extalias scheme is deprecated: flask.pocoo.org/docs/0.10/extensiondev/#ext-import-transition - Martijn Pieters♦flaskextis, not.ext- maligree