N
N
neodekvat092015-06-08 23:47:52
Flask
neodekvat09, 2015-06-08 23:47:52

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()

The error itself
3518c76ee65c49a48aefd7fac04b9ebb.png:

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
aardvarkx1, 2015-06-09
@neodekvat09

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 question

Ask a Question

731 491 924 answers to any question