Jump to content

Recommended Posts

Posted

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.

 

Posted

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.

Posted

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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...