Jump to content


Flask Setup

  • Please log in to reply
1 reply to this topic

#1 kbraj



  • Members
  • 1 posts

Posted 20 November 2020 - 08:34 AM

hii @Krydos

i am trying to deploy flask application on webroot. but i am getting 500 server error can you guide me on this. i have done changes in .htaccess and flask.wsgi file.


original   https://flazepe.gitb...tutorials/flask




RewriteEngine On

RewriteBase /
RewriteRule ^(media/.*)$ - [L]
RewriteRule ^(admin_media/.*)$ - [L]
RewriteRule ^(wsgi/.*)$ - [L]
RewriteRule ^(.*)$ flask.wsgi/$1 [QSA,PT,L]



import os, sys
# edit your username below
sys.path.insert(0, os.path.dirname(__file__))
from myapp import app as application
# make the secret code a little better
application.secret_key = 'secret'




import sys
from flask import Flask, __version__
app = Flask(__name__)
application = app
def hello():
  return """
    HelioHost rules!<br><br>
    <a href="/flask/python/version/">Python version</a><br>
    <a href="/flask/flask/version/">Flask version</a>
def p_version():
  return "Python version %s" % sys.version
def f_version():
  return "Flask version %s" % __version__
if __name__ == "__main__":

#2 Krydos


    Rank X Member

  • Root Admin
  • 21,403 posts
  • Gender:Male

Posted 21 November 2020 - 12:02 AM

You were actually violating two of our terms of service. You have more than one account, and your second account was created using a temporary email address. Don't worry. I suspended the second account so you don't appear to be violating our terms anymore.


It looks like your site is working though. Do you still need help?

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users