Jump to content

bowiecao

Members
  • Posts

    3
  • Joined

  • Last visited

bowiecao's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hi, I followed the wiki page and try to run a flask app on Tommy. It shows 500 error. Please help me, thanks! .htaccess ( ASCII text )/home/bowiecao/public_html/flask/.htaccessRewriteEngine OnRewriteBase /RewriteRule ^(media/.*)$ - [L]RewriteRule ^(admin_media/.*)$ - [L]RewriteRule ^(flask\.wsgi/.*)$ - [L]RewriteRule ^(.*)$ flask/flask.wsgi/$1 [QSA,PT,L] flask.wsgi ( Python script, ASCII text executable )#!/usr/bin/python3.6 version 3.6.1import os, sys# edit your username belowsys.path.append("/home/bowiecao/public_html/flask");sys.path.insert(0, os.path.dirname(__file__))from myapp import app as application# make the secret code a little betterapplication.secret_key = 'secret' myapp.py ( Python script, ASCII text executable )#!/usr/bin/python3.6 version 3.6.1import sysfrom flask import Flask, __version__app = Flask(__name__)application = app@app.route("/")def hello(): return "hello world"if __name__ == "__main__": app.run()
  2. Transaction ID: 4DT57329U6844232A username: bowiecao to Tommy Thanks
×
×
  • Create New...