Search the Community
Showing results for tags 'Flask'.
-
Hi there. I just set up my flask app, but I'd like wsgi control since I'm in active development. username=ujcis, server name=ujcis.helioho.st (Johnny), and the domain name=ujcis.helioho.st/cis. Thank you!
-
Hi, I'm trying to set up a flask web app and I've followed the instructions on the forum, however it seems that I need to install additional python dependencies to make it work. My host is jpmorr.helioho.st which is on Johnny. I have my requirements.txt file but it seems there is no python console from which I can run this and that I need to get some help from the support team to do so. Thanks, JP requirements.txt
-
Hi i am requesting wgi control for User name : csargin csargin.helioho.st
-
Note: This is specific to HelioHost. There was a NameError in some code on line 87. Line 87 of my code was: return MySQLdb.connect(**kwargs) I modified it to: return mysql.connector.connect(**kwargs) mysql.connector has been imported in the file. Hence, no NameError should show up. Yet, the error still shows up in the logs. In the wiki it is mentioned that it takes several hours to purge the cache. However, in my case, the log files show the updated code but still have the same error. For example: return mysql.connector.connect(**kwargs) NameError: 'MySQLdb' is not defined What is happening here? Is it a caching issue, or something which I should do on my side? (I can share the code if required)
-
Hey admin and staff, I was wondering if some python libraries could be installed on Ricky (python 3.9.5) https://pypi.org/project/Flask-WTF/ (for the CSRF protection module) https://pypi.org/project/Flask-MySQLdb/ (database connectivity) https://pypi.org/project/requests/ Thanks for your time! Loving this hosting provider
- 2 replies
-
- ricky
- python 3.9.5
-
(and 1 more)
Tagged with:
-
Hi there, I'm in Johnny server. I followed how to start flask app in the server. I'm just wondering how to import function from the cloudapi.py to the myapp.py, for example: file: myapp.py from cloudapi import * Structure of the folder in /home/mowaseem/public_html/flask/ | |_____ .htaccess | |_____ cloudapi.py | |_____ flask.wsgi | |_____ myapp.py | |_____ settings.conf
-
I need the UUID python library for my flask app, on the Johnny server. It is not in the list of installed libraries, is there any way to get it installed?
-
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.
-
Hi all, when I try to run a flask app on the tommy server, pymongo gives me this error, how can I fix it? "cluster0-shard-00-01.fhsrc.mongodb.net:27017: [Errno 111] Connection refused,cluster0-shard-00-02.fhsrc.mongodb.net:27017: [Errno 111] Connection refused,cluster0-shard-00-00.fhsrc.mongodb.net:27017: [Errno 111] Connection refused, Timeout: 30s, Topology Description: <TopologyDescription id: ugkctamdzd6nvshm69miov4r topology_type: ReplicaSetNoPrimary, servers: [<ServerDescription ('cluster0-shard-00-00.fhsrc.mongodb.net', 27017) server_type: Unknown, rtt: None, error=AutoReconnect('cluster0-shard-00-00.fhsrc.mongodb.net:27017: [Errno 111] Connection refused')>, <ServerDescription ('cluster0-shard-00-01.fhsrc.mongodb.net', 27017) server_type: Unknown, rtt: None, error=AutoReconnect('cluster0-shard-00-01.fhsrc.mongodb.net:27017: [Errno 111] Connection refused')>, <ServerDescription ('cluster0-shard-00-02.fhsrc.mongodb.net', 27017) server_type: Unknown, rtt: None, error=AutoReconnect('cluster0-shard-00-02.fhsrc.mongodb.net:27017: [Errno 111] Connection refused')>]>" Instead if i run the app with my pc on the localhost i don't get any error.
-
Hi, I have developed a web app in Flask that uses machine learning libraries such as Tensorflow, Keras, Scipy etc that need to be installed on the server in order to work. I followed the tutorial for flask on the gitbook but it is not enough as I need to install additional libraries. I hosted on Johnny server and currently I receive http 500 error. I have attached the requirement txt file for further detail about the packages. Could someone help me install these libraries or if it is any other way to run it? Thank you in advance. requirements.txt
- 8 replies
-
- flask
- tensorflow
-
(and 2 more)
Tagged with:
-
Hello, Could you please install some python packages for my Flask backend jonny server peewee flask-jwt-extended flask_cors sentry-sdk[flask]==0.16.2 Thank you!
-
Hi, How to configure background tasks, in flask/django(Python). Am used to celery module for running these tasks. Also I understand cron is restricted to once a day max. how do you guys handle such tasks on HelioHost? Br, akp
-
Hi... please help me... I'm just have one of problem. I want to use python but i don't know to setting to flask. i did searching google, file: public-html/cgi-bin/cgi.cgi #!/usr/bin/python from wsgiref.handlers import CGIHandlerfrom views import appimport osimport cgitb; cgitb.enable() os.environ['SERVER_NAME'] = '127.0.0.1'os.environ['SERVER_PORT'] = '5000'os.environ['REQUEST_METHOD'] = 'GET'os.environ['PATH_INFO'] = ""CGIHandler().run(app) file: views.py from flask import Flaskapp = Flask(__name__) @app.route("/")def hello(): return "This is Hello World!\n" if __name__ == "__main__": app.run() file: .htaccess RewriteEngine OnRewriteCond %{REQUEST_FILENAME} !-fRewriteRule ^(.*)$ /home/USERNAME/public_html/cgi-bin/cgi.cgi/$1 [L] ... i had connect to host on web it's just show me that text '/Index' also i was uploaded files that i made to python files and html files in templates folder but it is not working. My english is so bad...sorry. please help me ã… ã… ã… ã…
-
I followed the tutorial of getting a flask app running on Heliohost. I changed the .htaccess file a bit so that public_html folder can be the source of my flask app rather than rikchan.heliohost.org/flask (that is my site btw). So all the links like rikchan.heliohost.org/meta is getting redirected to rikchan.heliohost.org/flask.wsgi/meta , which is also working but I would like my flask app to behave how it was intended to be. here is the website link https://rikchan.heliohost.org
-
Hi again, I need help connecting my flask app to the postgres database on the server. PS. I'm not trying to connect from outside although having remote access would be a bonus username: geojoe database: geojoe_flask-app database user: geojoe_admin server: Tommy Issue 2: how do I hide the flask.wsgi from urls e.g instead of flask.geoffery.ml/flask.wsgi/login, i want it to be flask.geoffery.ml/login thanks in anticipation
- 10 replies
-
- wsgi
- flask.wsgi
-
(and 4 more)
Tagged with:
-
Hi I would like you to install the psycopg2 module. postgresql wont work without it. thanks in anticipation.
-
Hi good day, I am current learning the flask micro framework and have built a relatively small app. said app runs well on my local machine but returns 500 error when uploaded to the server, attached are my details. any help will be highly appreciated. server tommy (I got lucky) username geojoe website: flask.geoffery.ml P.S. my app require some extra flask packages a list of which can be found in requirements.txt
-
Hi there, I have a flask app that using Flask-SQLAlchemy, It works fine on my local machine, but won't work on Heliohost. ​After some testing i found it property because current server python version 3.7.5 don't have sqlite3. Can someone fix it for me please. Thank you Server: Johnny Python: 3.7.5 Flask: 1.1.1
-
I am trying to deploy flask app on subdomain say testings. this is my .htaccess. RewriteEngine On RewriteBase / RewriteRule ^(media/.*)$ - [L] RewriteRule ^(admin_media/.*)$ - [L] RewriteRule ^(flask\.wsgi/.*)$ - [L] RewriteRule ^(.*)$ flask/flask.wsgi/$1 [QSA,PT,L]This is my flask.wsgi import os, sys # edit your username below sys.path.append("/home/username/public_html/flask"); sys.path.insert(0, os.path.dirname(__file__)) from myapp import app as application # make the secret code a little better application.secret_key = '<removed>'when I visit using user.heliohost.org/testings it works but when I visit using testings.user.heliohost.org it throws internal server error.
-
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()
-
[Solved] Flask-Openid - A Python Module Installation Request
cprn posted a topic in Customer Service
Hello, First of all, great job, HelioHost is a lovely service! Second, since I'm having trouble trying to load Flask-OpenID as a local script in my project, can you please install it globally? It's a small python module generating OpenID URLs and handling the nonce stuff. Should be just: $ pip install Flask-OpenIDI'm on Tommy, python 3.6.3. As far as I can tell all the other modules I would ever need are already installed. Cheers and have a nice day. -
Hi. What do I have to do to run Flask with Python3 on Ricky? I followed the "little tutorial" but it seems to be using Python 2.7.5: example (this example will stop working in the future) I searched the forums before registration to make sure it's possible and found this:
-
Really Thx in advanced . Hi i am just new in the python world , i need to execute a flaskapp for whatsapp sending messages, i followed the steps to implement the flaskapp but i can't execute any code for python native or flask worst it produces an error i followed all the steps to implement flask I really need to make it works the .htaccess looks like /home/xtremese/public_html/inteygratemyfrank-i/.htaccessRewriteEngine OnRewriteBase /RewriteRule ^(media/.*)$ - [L]RewriteRule ^(admin_media/.*)$ - [L]RewriteRule ^(inteygratemyfrank-i\.wsgi/.*)$ - [L]RewriteRule ^(.*)$ inteygratemyfrank-i/flask.wsgi/$1 [QSA,PT,L] my flask.wsgi looks like import os, sys # edit your username belowsys.path.append("/home/xtremese/public_html/inteygratemyfrank-i"); sys.path.insert(0, os.path.dirname(__file__))from myapp import app as application # make the secret code a little betterapplication.secret_key = 'secret'Create a python script named myapp.pyimport sys from flask import Flask, __version__app = Flask(__name__)application = app @app.route("/")def hello(): return """ HelioHost rules!<br><br> <a href="/flask/python/version/">Python version</a><br> <a href="/flask/flask/version/">Flask version</a> """ @app.route("/python/version/")def p_version(): return "Python version %s" % sys.version @app.route("/flask/version/")def f_version(): return "Flask version %s" % __version__ if __name__ == "__main__": app.run() and my files structure looks like :