Questions tagged [flask]

Flask is a web application framework for Python.

Filter by
Sorted by
Tagged with
0
votes
0answers
6 views

SQL SELECT AVG in Flask returns a 2D array [migrated]

(*) I am learning both Flask and SQL. I am cloning existing, working code. I am running my Flask code in the PythonAnywhere environment. The code I have modified starts @app.route('/print_my_dogs') ...
0
votes
1answer
20 views

How can I setup headers directives on my app engine?

So I was scanning my website for vulnerabilities and I found this one but I don't know how can I fixed it in the google cloud app engine: I really don't know where I should include the header ...
0
votes
1answer
37 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 myuser@123.456.789, but if I execute curl 123.456.789:8000 I get an operation timeout, even though the server is ...
1
vote
1answer
2k 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 ...
0
votes
0answers
5 views

Is there a behavior of a default-configured AWS server that would cause a deployed uwsgi server to stop responding after some period of time?

I'm in the early stages of deploying a machine learning model on port 5000 using Flask and uwsgi, and I had a uwsgi server running inside a GNU screen session on an AWS server overnight. The server is ...
1
vote
0answers
228 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 ...
0
votes
0answers
17 views

How can I direct a chat from a flask based chat app to a live agent

I have a flask based chat app. I want to add a feature to it so that the chat can be transferred to a live person in the middle of the textual chat (say if the app can't answer a question). The live ...
-1
votes
1answer
53 views

Save complex object during flask session

I need advice. My flask application has no database. I have a custom authorization system. I connect to the API service and during the user session, I make requests to it. Tell me where to save the ...
0
votes
0answers
23 views

How to see flask application hosted on aws ec2 working on public ip?

I have a deep learning model that is trained in Keras, it is saved with JSON and h5 in a git repo. Along with a flask application. This flask applications loads model, asks for image upload and ...
0
votes
1answer
282 views

Flask app inside a docker container is not served to localhost when using docker-compose

I'm learning how to use docker and got stuck on the following. I have my flask app in /var/www/Skills The app tree is (I left out files under static/, templates/, tests/ and some pycache dirs): . ├──...
0
votes
1answer
54 views

Images requested by Flask are not shown at once

When applying the image showcase function named "twentytwenty", the following problem occurs. Problem: When I call render_template() with the resulting image as an argument, the image is not visible....
0
votes
2answers
828 views

Heroku deployment - requirements.txt rejection (failed to compile python app)

Sorry if i am asking wrong questions / not providing enough info, but its a first post for me... i am getting the rejected push to heroku as shown here, i think that its an issue with the requirements....
0
votes
1answer
198 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?
0
votes
0answers
460 views

Nginx + Flask “No 'Access-Control-Allow-Origin' header is present on the requested resource.”

I have a VueJS application running on port 8000 and hosted by nginx that tries to make API request to my Flask API server running on port 29222, hosted with nginx and a gunicorn proxy. I use Flask-...
2
votes
0answers
433 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 ...
0
votes
0answers
328 views

Not able to intall mysql in pycharm

Collecting MySQL Using cached https://files.pythonhosted.org/packages/bf/5f/b574ac9f70811df0540e403309f349a8b9fa1a25d3653824c32e52cc1f28/mysql-0.0.2.tar.gz Collecting mysqlclient (from MySQL) ...
0
votes
1answer
398 views

Multiple XAMPP and apache instance running on the same computer at the same time

Is there any possibility to have three versions/instances of XAMPP or Apache running at the same time? I have a server which mainly includes a release, a release candidate, and a development website. ...
0
votes
1answer
20 views

Why do web development frameworks and tutorials for them never show how to do temporal data? [closed]

I would like to create my own payroll engine as a website. In Oracle ERP applications it is a very common thing to have a start and an end date on tables, so that you can have varying values over time....
0
votes
0answers
127 views

Why doesn't uWSGI work properly when dealing with multiple Python Flask APIs

I have created 3 Python Flask APIs recently that are served by nginx and utilize uWSGI on an Ubuntu 18.04 server. For each and every one of them I have followed a known article on Blue Ocean. ( ...
1
vote
0answers
84 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 ...
0
votes
0answers
90 views

I have red sentences and warning in terminal of visual studio code.How can I solve that?

I have been learning python from udemy.And I will start to make something with flask.I am using visual studio code program. from flask import Flask app=Flask(__name__) if __name__=="__main__": ...
1
vote
1answer
187 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 |-...
0
votes
0answers
62 views

Newbie with Conda ,Celery ,Python

I need to do a setup of below softwares on Windows: Anaconda-mini Celery Flask Mongo RabbitMQ I was able to download all of them, but when I try to run below command I get an error. conda env ...
0
votes
0answers
64 views

how to append a new language (i18n ) in Flask-appbuilder?

I tried to append a new language option , taiwan, based on design of flask-appbuilder-skeleton. According to flask app-builder instruction, I append an entry in config.py : "tw": {"flag": "tw", "...
0
votes
0answers
110 views

Flask-Migrate won't install within my virtual environment

I have been trying to install Flask-Migrate into my virtual environment and it just refuses to work. Running pip3 install Flask-Migrate==2.5.2 gives me this error: ERROR: Could not install packages ...
0
votes
2answers
227 views

CentOS pgAdmin page is naked HTML, without CSS and JavaScript due to ERROR flask.app

I'm running pgAdmin v4.8 on CentOS 7. After last 'yum update', pgAdmin doesn't work. The logfile /var/log/pgadmin/pgadmin4.log has the following error messages: ERROR flask.app: make_conditional() ...
1
vote
0answers
33 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....
0
votes
1answer
1k views

error: Command cl.exe failed: No such file or directory

The above command shows up whenever I try to install the following - pip install flask-mysqldb pip install mysqlclient
1
vote
0answers
506 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 ...
0
votes
1answer
57 views

not sure about port forwarding on my buffalo router to my python program

I have a simple python flask api running on my local computer.The api runs on my local ip address 192.168.X.X and port 5000. My local computer is connected to a Buffalo Router. I am able to access ...
0
votes
1answer
104 views

Heroku PostgreSQL: Warning: addons: is not a heroku command

I have found the same questions here, but the answer did not solve my problem. Problem: I have a local flask app running with working PostgreSQL database. In this article I found a good description ...
0
votes
0answers
21 views

Unsure of Issue with venv

Reaching out to ask a question. I tried creating a venv file in atom. When I tried to use the command prompt to accomplish this, I did not succeed: C:\Users\username> cd Desktop\my-sample-project>py -...
1
vote
0answers
207 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?
2
votes
1answer
2k 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
0answers
841 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
votes
1answer
225 views

Unable to deploy Flask application in EC2 (“Site does not exist”)

I have my php based apps running on my server on AWS EC2 (Apache2, Ubuntu 14.04). I'm trying to deploy a Flask application on a sub domain. Since I don't have any experience in deploying Flask ...