Questions tagged [flask]
Flask is a web application framework for Python.
36
questions
2
votes
1
answer
6k
views
How to connect to MySQL running on XAMPP through WSL terminal
MySQL is running on XAMPP and working fine. I am trying to connect to it through the Windows Subsystem for Linux running a Flask app using flask-msqldb.
But when I run the Flask app and try to make a ...
2
votes
1
answer
11k
views
Sending HTTP request to another localhost only Docker container?
I am building a new microservice which is a Python Flask app that is fronted by gunicorn and can take and respond to HTTP get requests. It's kinda like a local proxy service to an external API. I ...
2
votes
0
answers
934
views
uWSGI: No python application found
When I run my app with the command python sorteerhoed.py && uwsgi --socket 0.0.0.0:5000 --protocol=http -w wsgi:app It runs fine and when I goto the server ip:5000 I get to see my page. But ...
2
votes
0
answers
514
views
google cloud appengine deploy: exited with error [Errno 12] Cannot allocate memory
I am trying to deploy a toy fastai model on google cloud platform.
Step #1 - "builder": INFO tar_runtime_package took 23 seconds
Step #1 - "builder": INFO starting: gzip_tar_runtime_package
Step #1 ...
2
votes
0
answers
1k
views
serving files with flask and nginx/gunicorn
I have a basic website set up and I am running into some confusion on how to handle serving static files. I noticed the only thing I have to do to serve static files is set up the proxy to gunicorn in ...
1
vote
1
answer
13k
views
how to revert the execution policy to restricted after unrestricting
I had changed my execution policy in Windows powershell but would like to change it back to default
i.e unrestricted to restricted.
Can it be done?
1
vote
1
answer
1k
views
is TCP handshake handled by web application flask or web servers like nginx?
if I run a simple flask application in development mode(so web server and web application is the flask library) on port 5000. is there a way to see SYN, SYN-ack, ack requests that are exchanged ...
1
vote
2
answers
151
views
How are databases stored for I website that I create and host [closed]
I am learning web development and I am using python (flask) along with HTML and CSS with bits of JavaScript. I want to know how I can connect a database (MySQL) to my website and where and how it will ...
1
vote
1
answer
587
views
Mask_RCNN inside a flask server
Hello I'm trying to build a simple api to receive an image and return some inference values.
My filesystem is the following:
Mask_RCNN
|-MaskDetector.py
|-FireDetector(class)
fire_app
|-...
1
vote
0
answers
58
views
What is the proper way to host multiple websites from the same machine and same ip address? [closed]
I have two Flask websites running on an ubuntu machine running on my home server. Both of them are running as a service with Gunicorn, one is on port 9000, the other is on 9001. I have registered a ...
1
vote
1
answer
769
views
Not able to curl to my VM when ssh is working
I'm trying to run a simple flask server on an Ubuntu VM.
I can ssh into it,with [email protected], but if I execute curl 123.456.789:8000 I get an operation timeout, even though the server is ...
1
vote
0
answers
471
views
Apache/Flask: app hangs at certain points [closed]
I've got a Flask app served by Apache that hangs at certain points when answering a request from a client. This happens at various points in the code, though it appears to be deterministic when it ...
1
vote
0
answers
93
views
Can I generate non clustered index for one or more columns using flask- sqlalchemy declarations alone
I am using Flask-sqlalchemy with pyodbc on a remote mssql database, I want to implement full text search, I dont have much control over the database other than seeing that Full text search is enabled....
1
vote
0
answers
581
views
Troubles importing Python modules [closed]
please, I need some help with the following.
I'm using Windows 10, Python 3.7, VSCode 1.32 and I also have installed the current version of Anaconda (and its package).
When I want to import a module ...
1
vote
0
answers
430
views
Flask disable JSON response escaping
I am trying to pass a url in a json response for a REST API using flask and when I try to send a url it goes from "https://www.google.com/" to /\ on the slashes. How can I prevent this from happening?