Skip to content

Tag: flask

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: su…

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, …

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 lik…

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 s…