Jump to content

Recommended Posts

Posted (edited)

i get an internal server error. i need help setting up flask :(
i need to run server.py that has the following test:

@app.route('/')
def index():
    return send_file(os.path.join(BASE_DIR, "html", 'index.html'))


below are my wsgi and htaccess. i also need to install a few python libraries. thank you for your attention.

flask.wsgi .htaccess

Edited by gdjkhp
Posted

There is a Flask tutorial here which also explains how to request any additional Python modules you may need: https://wiki.helionet.org/Flask

I notice you also posted this in Discord an hour later. All helpers are volunteers so asking the same question in 2 places risks duplicate volunteer effort if 2 people give you the same details: https://wiki.helionet.org/FAQ#Where_do_I_ask_for_help?

Please check out the above links and let us know if you're still having trouble. 🙂

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...