Questions tagged [flask]
Flask is a web application framework for Python.
36
questions
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 ...
0
votes
1
answer
147
views
I can't reach a web server of my guest OS (Debian server) from my MacOS host via Parallels
I set up a Debian server VM in Parallels Desktop. I configured it to use the Bridge network. DHCP is enabled, however I configured the VM to use a static IP.
On Debian within my VM the web server ...
0
votes
1
answer
65
views
IIS Flask: /Discovery/HTTPsvc/IISXferWanServer.DLL calling application several times a second
Saw a 404 being generated several times a second, after some debugging I found something is trying to call /Discovery/HTTPsvc/IISXferWanServer.DLL
Can you suggest what it is and how I'd go about ...
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 ...
0
votes
2
answers
84
views
Run this line by line, or as a whole
I am trying to install flask. Docs say to make an environment:
Create an environment
Create a project folder and a venv folder within:
Windows
mkdir myproject
cd myproject
py -3 -m venv venv
How ...
0
votes
1
answer
500
views
How to install intel/amd64 OpenCL on tiangolo/uwsgi-nginx-flask:python3.10 (debian 10) docker container?
I am trying to make opencl work within a tiangolo/uwsgi-nginx-flask container.
FROM tiangolo/uwsgi-nginx-flask:python3.10
RUN apt-get update
#RUN apt-get install -y -f libcrypt-dev libssl-dev openssl ...
0
votes
1
answer
2k
views
Trying to run app in another directory
We have a app that is run out of a specific directory, it uses flask (never worked with it before) and it is called from /home/automation_admin/rest-auto/production/TestLauncherApp
Once in that ...
0
votes
1
answer
5k
views
Systemd service cannot find user files even though with correct absolute path
I have a flask app that has the following app.py file that includes a flask_apscheduler:
from flask_apscheduler import APScheduler
app = Flask(__name__)
scheduler = APScheduler()
app.config['...
0
votes
0
answers
37
views
How to see a local running webserver from a remote location
I would appreciate some pointers or help for my particular situation: (apologies if I mistake any terminology)
The situation
I have a desktop computer on location A running linux where I am doing ...
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 ...
0
votes
1
answer
721
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 ...
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 ...
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 ...
-1
votes
1
answer
1k
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
1
answer
1k
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
1
answer
94
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
2
answers
2k
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....
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?
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 ...
0
votes
1
answer
2k
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
1
answer
25
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....
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 ...
0
votes
0
answers
207
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
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
|-...
0
votes
0
answers
124
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
2
answers
279
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
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....
0
votes
1
answer
3k
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
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 ...