Questions tagged [flask]

Flask is a microframework for Python based on Werkzeug, Jinja 2 and good intentions.

Flask is a microframework for Python based on Werkzeug and Jinja2. It's intended for getting started very quickly and was developed with best intentions in mind.

It's still not 1.0 but it's shaping up nicely and is already widely used. Consider the API to slightly improve over time but we don't plan on breaking it.

Source: github

37 questions
5
votes
2 answers

Running a Flask app on startup with systemd

I have the following systemd service to run my flask app: [Unit] Description=My Flask…
k26dr
  • 191
4
votes
2 answers

Nginx: unknown directive "uwsgi_param" in /etc/nginx/uwsgi_params:1

Using this deployment tutorial, I'm trying to get an Ubuntu 12.04 server up and running with Flask, uWSGI and Nginx. I now have trouble getting Nginx to run. When I try to (re)start nginx it simply says ...fail!, and when I run a test (using sudo…
kramer65
  • 2,193
3
votes
1 answer

Running as a host user within a Docker container

In my team we use Docker containers to locally run our website applications while we do development on them. Assuming I'm working on a Flask app at app.py with dependencies in requirements.txt, a working flow would look roughly like this: # I am…
Robin Winslow
  • 2,646
  • 3
  • 21
  • 26
3
votes
1 answer

nginx uwsgi internal server error 500 - http uwsgi header: "Connection: close"

I am using a small server with nginx and a python flask app on aws, and uwsgi. It has already happened twice that the server went down with error 500, and no logs on behalf of nginx. I am not expert, could you please help in figuring why the…
3
votes
1 answer

Command 'uwsgi' not found

I have installed "uwsgi" using pip method. But when I run uwsgi, I'm getting "Command 'uwsgi' not found, but can be installed with" error. If I again try to install using pip, I'm getting Collecting uwsgi Installing collected packages:…
learner
  • 591
3
votes
0 answers

How can I get the web server Gunicorn to use 0.0.0.0:443 (for HTTPS) without running as root?

I'm trying to run a Flask application via HTTPS on Gunicorn. Up to now I have been running it successfully via HTTP using a command like the following: gunicorn --workers=4 "program.__main__:WSGI()" --bind=0.0.0.0:8080 Now I am trying to run it via…
2
votes
0 answers

Attempting to deploy flask site to ubuntu server, ip address not loading

I have built a flask application on my ubuntu desktop, within virtual environment. However now I am attempting to upload it to a live ubuntu server 16.04. I have installed all the dependencies and my enable site apache file looks like…
mp252
  • 151
2
votes
1 answer

install Flask as a virtual environment whith virtualenv.py in 12.10

I am trying to follow this Tutorial to learn flask. I have never used python before and a relatively new to linux too so sorry if I am asking a very basic question. I have installed python version 2.7.5 and am now trying to create the virtual…
ook
  • 123
2
votes
1 answer

Installation issues for Virtualenv and VirtualenvWrapper in 13.04

Ubuntu Server in VirtualBox. I am trying to install VirtualEnv to start learning Flask and bottle. Some details of my setup. vks@UbSrVb:~$ cat /etc/os-release NAME="Ubuntu" VERSION="12.04.2 LTS, Precise…
Vivek Sharma
  • 1,220
2
votes
3 answers

sh: 1: program not found occurs when running a Terminal command via Python, but directly entering the command in the Terminal works fine

I am experiencing a very strange problem. I made a website and I am having a problem with the backend. It's running on an Ubuntu 18.04 server. The backend is written in Python and Flask (a micro web framework). I have set up Nginx and Gunicorn as it…
2
votes
1 answer

All routes except "/" return 404 from Nginx running Flask WSGI

I have a flaskapp, deployed using nginx as proxy server and gunicorn. I have several routes defined in the Flask python script, except they aren't accessible. When using development server, however, they work just fine. All routes except the base…
RishbhSharma
  • 365
  • 3
  • 9
2
votes
1 answer

Apache2 Config variables not defined

I'm new to Apache2, so bear with me. I followed this tutorial to get HTTPS working with a Flask server. I keep getting the same output when I run the apache2 command: [Wed Nov 28 01:42:32.210442 2018] [core:warn] [pid 1184] AH00111: Config variable…
1
vote
1 answer

Errors when trying to install Flask in Ubuntu 16.04

I got the following error message screen when trying to install Flask in Ubuntu 16.04.
1
vote
0 answers

Is there a way to reset ubuntu 16.04 server

My fried bought me an ubuntu server 16.04 so that I could upload my flask app on to it. However he bought it from China and only gave me the login details; ssh Fonzi@52.232.108.191 and the password. I have been having difficulties uploading the…
mp252
  • 151
1
vote
1 answer

curl: (7) Failed to connect to 127.0.0.1 port 5000: Connection refused when using Flask

I am following the Udacity course here: https://classroom.udacity.com/courses/ud388/lessons/4628431284/concepts/53174719510923 I am trying to run their python program using Flask. I started vagrant with vagrant ssh I then tried to run that python…
1
2 3