Jump to content

[Answered] Flask extensions support


vjetname

Recommended Posts

Hi,

is there possible support for Flask extensions such as Flask-Login or Flask-SQLAlchemy on Johnny server?

 

Btw, does the Flask app have to be located exactly in .../public_html/flask folder, or can I put it in my own folder and occasionally run multiple applications?

 

Thanks in advance.

 

Link to comment
Share on other sites

Flask-login and flask-sqlalchemy are both already installed on Johnny's python 3.7. You can check the current list of installed modules and their versions at https://krydos2.heliohost.org/cgi-bin/modules37.py

 

No, the flask directory doesn't have to be named flask, and you can have as many flask apps as you want each in its own directory. You can even have a flask app as your webroot, but it makes it fairly impossible to have anything in any subdirectories if you do that. If you change the directory from flask to something else you'll need to update the contents of the files to reflect the change.

Link to comment
Share on other sites

Hi Krydos,

thank you very much for your prompt response.

 

Seems like I used obsolete Flask API so I was getting error. Now I am able to import those libraries.

 

Similarly, I was getting errors when I tried to setup a new folder for Flask, however, with your information I tried again and it works now :)

 

Thank you once more.

Link to comment
Share on other sites

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...