Python 2.7.3 Flask ImportError: No module named -


I have a flask application with this error:

  importError: someone called annotated The module is not, Referer: http://ltw1413.web.cs.unibo.it/  

Therefore, my root in the web server is:

/ home / Web / ltw1413 / html

I have the HTML folder inside:

  • One named folder "annotated"
  • named a file .wsgi "wsgi.wsgi"

My file is .wsgi:

  Import Sys.path.insert (0, '/ home / web / ltw1413 / html') annotatia import Application form  

I have "annotated" inside my folder:

  • "Fixed" folder: stylesheet and JS
  • "Template "Folder: Inside html"
  • "run.py": file python where my application is

run.py is:

  Flask Import Flask, Render_Timetal, Redirect, Import Import, Import Jason Import, Import urlib2 Import import from urlparse import Import import import from SPARQLW Rapper Import SPARQLWrapper, RDflib import JSON Graph, BNode, Literal , Urlib2 import from Time Space import name BeautifulSoup app = flask (__name__) @ app.route ('/') Def index (): return render_template ('index.html') @App.route ('/ index.html' ) Def reloader (): return render_template ('index.html') # other app.route () ... if __name__ == '__main__': app.run (debug = true)  
< P> How can I get a solution? Where's my fault

There are many errors here ... Anotaria is not found on the path ( That's why it says ... well ... that's fine.)

You also redefine app in your code: you import it from annotated and then redefine it to app = flask (.. .


Comments

Popular posts from this blog

gnuplot how to create an output that does not have a chart -

html - jQuery - Change form action based on resolution -