Answer the question
In order to leave comments, you need to log in
Python, Flask can't see the module error, what should I do?
Hello, for the third day I can not understand, tell me where the error is.
Did everything according to this tutorial .
Googled enough, it turns out, there is enough problem with this flask.ext.script
Where can I get an immort error...
The code is in the tutorial itself. More precisely, during the launch of the shell, it gives an error in the console. The code is identical to the one in the tutorial (although initially I didn’t do it exactly according to it).
manage.py code:
# Set the path
import os, sys
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
from flask.ext.script import Manager, Server
from tumblelog import app
manager = Manager(app)
# Turn on debugger by default and reloader
manager.add_command("runserver", Server(
use_debugger = True,
use_reloader = True,
host = '0.0.0.0')
)
if __name__ == "__main__":
manager.run()
Answer the question
In order to leave comments, you need to log in
By your mistake, this is not an import error. It cannot connect to the database.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question