Skip to content
Advertisement

Tag: flask

Azure + gunicorn + flask + Azure Web App Linux: ModuleNotFoundError: No module named ‘flaskr’

the use case I have followed the flask tutorial on those pages: https://flask.palletsprojects.com/en/1.1.x/tutorial/ The project directory is the following : run the web app The web app works by running the script ‘run_app_prod.sh’. the code works on my local machine (ubuntu 20.04) but not on azure web app for linux run_app_prod.sh the flaskr/init.py files the error message Answer I had

Running flask app automatically after boot does not work correctly

I am setting up Flask project in Raspberry Pi (python 2.7). It runs perfectly when the python script is called manually. However, I am trying to run the script automatically after boot, it cannot run properly. I have tried modifying /etc/profile to run the script after boot; /etc/profile start_script.py I expect running the server without any problem but after boot,

Cannot install Flask with pip on my Raspberry Pi

I am trying to install Flask on my Raspberry Pi, but it seems that this is not possible anymore with the command: sudo pip install flask . I always return this message: Does anybody have an idea what’s going wrong? Answer This problem is described here. In short, the fix is to set date correctly, eg: sudo date +%Y%m%d -s

Nginx returns 404 not found when access file on server

I have a server(Ubuntu 16.04) and a user called coxier. I configure Nginx to Proxy Requests. I create a file etc/nginx/sites-available/myproject. In this flask project, server receive request and then generate a .gif file for this request. At first I directly I use flask#send_file to send gif file about 1MB, however speed is very slow. So I decide to optimize

Reload Flask app when template file changes under Linux

I am developing a flask application under Linux, and i’m suffering when i make any changes to template files. Actually i well configured my app to reload on template changes using PS: when i develop under Windows templates are reloading normally. EDIT I am using the built in server, and i run my app like this : Here is my

Unable to start a Python app using Supervisord

I have a small app that I want to start using supervisord. I’ve tried the following Installed supervisord and controlled a small script Read Introduction, Running Supervisord and Configuration File sections from the documentation Setting up groups in supervisord My initial shell script could start and stop celery and Flask as daemons by saving the PID in a text file.

Advertisement