Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 04/18/2020 in all areas

  1. print "Content-type: text/html\n\n" This is python2 syntax. For python3 you need parenthesis. Change it to: print("Content-type: text/html\n\n")
    1 point
  2. UPDATE: I've solved the url problem and here's how class ScriptNameStripper(Flask): def __call__(self, environ, start_response): environ['SCRIPT_NAME'] = '' return (super(ScriptNameStripper, self) .__call__(environ, start_response)) app = ScriptNameStripper(__name__)
    1 point
×
×
  • Create New...