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 azur…
Tag: flask
How to modify my flask application once i put it on to the linux server? [closed]
Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 2 years ago. Improve this question Original question: I just deployed my first Flask application on an U…
Is it safe to remove SQLAlchemy-generated extensionless file from my PyCharm project?
I am making a Flask web app in PyCharm on Linux virtual machine. I recently noticed a strange file named ”$’a0406′ directly in the project’s directory. Any clues what it might be and if it’s safe to remove? Here’s the output of pip freeze in case you need it: Edit: I moved …
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 exp…
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…
Creating Apache web server on Ubuntu with Connexion/Flask and public IP address
I am trying to run a simple python server with REST API and Connexion/Flask built in on a remote Linux server (binding to the server public IP address) using Apache. (Server is running Ubuntu 16.04.5 LTS, python code was written in Python 3.7) Here are some files for the server implementation: server.py: swag…
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…
Python flask wont render multiple templates, possibly HTML issue
Updated question: my flask web page is working well, however i am currently editing my 3rd page and its doing something i cant understand. when i click on the third tab of my web app, the URL goes localhost/DC2/DC5, whereas i need it to go localhost/DC5. Im not sure why its jumping through the first page. Her…