I am trying to set up some sample code with flask+python on my machine, I am following the website as below
http://blog.miguelgrinberg.com/post/flask-pagedown-markdown-editor-extension-for-flask-wtf
However I have a problem as below.
from flask.ext.pagedown import PageDown
Traceback (most recent call last):
File "/Users/iMacBin/Documents/projects/flask/flasky/manage.py", line 3, in <module>
from app import create_app, db
File "/Users/iMacBin/Documents/projects/flask/flasky/app/__init__.py", line 7, in <module>
from flask.ext.pagedown import PageDown
File "/Library/Python/2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/exthook.py", line 87, in load_module
raise ImportError('No module named %s' % fullname)
ImportError: No module named flask.ext.pagedown
I did install flask-pagedown, markdown and bleach using pip on my machine.
(venv) $ pip install flask-pagedown markdown bleach
I did search online and noticed that flask.ext might be stale, so I also tried
from flask_pagedown import PageDown
but it has the same issue, 'No module named flask_pagedown'
FYI, my python version is 2.7.6. The IDE I am using is PyCharm.
Could anybody advise anything else I can check?