Why can't I use flask extensions? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Why can't I use flask extensions?

Whenever I try "from flask.ext import Moment, an error is raised saying "ImportError: No module named ext". I looked into site-package/flask in the Lib directory and there was no ext module. I thought it's weird giving the fact that I used pip to download flask and it was successful! P.S. I am using py2.7 as it's required by the employer.

13th Jan 2019, 8:01 PM
Osamah Mohammed Al-Haddad
Osamah Mohammed Al-Haddad - avatar
3 Answers
+ 2
Oh, good to know that the ext module is no longer supported! I kinda used a direct import and it worked. But I wanted to make sure. Thanks a whole lot Burey , your links are quite helpful.
14th Jan 2019, 12:00 AM
Osamah Mohammed Al-Haddad
Osamah Mohammed Al-Haddad - avatar
+ 1
Bonsoir
16th Jan 2019, 8:26 PM
Cyrille Bogninou
Cyrille Bogninou - avatar