B
B
Bastax132016-12-21 22:53:54
Tornado
Bastax13, 2016-12-21 22:53:54

Why doesn't Tornadoweb include styles?

There is a website - /var/www (example.com)
A tornadoweb server is running on port 8888

class Index(RequestHandler):
  def get(self):
    template=Loader("/var/www")
    self.write(template.load("index.html"))
    
application = Application([
  (r"/", Index),
])

When visiting example.com:8888, a purely HTML page opens, without styles. The site is opened from the same folder - locally and via port 80 styles are loaded, via 8888 and tornado - no.
What to do?
*import tornado.web, IOLoop, etc. written, just did not want to paste all the code here

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question