Questions tagged [wsgi]
Web Server Gateway Interface (WSGI) is a standard for web applications written in Python.
wsgi
2,507
questions
0
votes
1
answer
64
views
whitenoise module not found in production
Error:
I ran into this error when trying to deploy my Django app using GAE using these instructions GAE for Django: ModuleNotFoundError: No module named 'whitenoise'.
The error occurs when starting ...
0
votes
1
answer
30
views
How to launch a flask application with a domain name on a computer? [closed]
I have this simple flask application that I want to deploy. I want to use my own computer as the application's server and I want to give it a domain name. Please give me step by step instructions on ...
0
votes
0
answers
27
views
Waitress as a production WSGI server
What are the benefits of using Waitress as a WSGI server instead of running Flask directly? For instance, can it spawn multiple processes to leverage multiple CPU cores for handling incoming requests?
0
votes
1
answer
27
views
WSGI Application - To Accept JSON Payload from and process and send email
I am trying to setup a App in python and wsgi to get some payload from cloud to on-prem and send email eventually.
My Setup includes WSGI & NGINX but for testing purpose I am forming a payload ...
0
votes
1
answer
26
views
gunicorn issues with ModuleNotFoundError when deploying DRF project to Render due to
DRF project is running in development environment, expects to deploy to Render through yaml. The error message is as follows:
==> Running 'gunicorn core.wsgi:application'
Traceback (most recent ...
0
votes
1
answer
11
views
init_fs_encoding during deploying django app to apache
i'm trying for hours to deploy a django app on an apache2 and still get following error:
PYTHONHOME = '/home/rickmanns/bar/bar/djenv'
PYTHONPATH = (not set)
program name = 'python3'
isolated = ...
-1
votes
0
answers
25
views
What is the purpose of putting a web server like nginx in front of a wsgi server such as gunicorn when guincorn can serve http requests?
This question has been asked before but none of the answers really explain why you would want to put something like nginx in front of a wsgi/guincorn server*.
(*) Some answers state that nginx is ...
0
votes
2
answers
24
views
How can solve Target SWGI script '/aa/bb/wsgi.py' does not contain WSGI application 'application'?
When I change sqlite3 to postgresql, I receave error,
this error I have only then I run apache2,
if I start "manage.py runserver 0.0.0.0:8000" its work fine.
I tried so many things, but I ...
0
votes
1
answer
26
views
problem with apache server displaying index.html instead of flask endpoint
I have the following config files:
/etc/apache2/sites-available/propman.domain.com.conf:
WSGIApplicationGroup %{GLOBAL}
WSGIDaemonProcess propman_proc python-home=/var/www/propman/.venv processes=1 ...
0
votes
0
answers
44
views
hello world flask app on apache in a subdomain - getting python import errors on page access
I have a domain and subdomain registered and when accessing them, they go to the correct IP address and host. The main domain is working fine, but its a static group of pages (pretty hard to mess ...
1
vote
0
answers
60
views
can I run my python script using gunicorn and wsgi
I have a Python script which I want to run using Gunicorn. I have created a wsgi file as I am not using any framework. So I have 3 files in my folder: my Python script (app.py), Wsgi file (wsgi.py), ...
0
votes
0
answers
26
views
How to implement reload-on-rss on mod_wsgi in Django?
In uwsgi, reload-on-rss helps to prevent the Django server from running into OOM. How do you implement reload-on-rss on mod_wsgi in Django? I want the Django server to reload after the server hits a ...
0
votes
0
answers
30
views
How do I deploy Wagtail CMS to Ionos Standard Web Hosting
I have tried to deploy Wagtail CMS to Ionos Standard hosting using the instructions at How can I deploy Django App to 1and1 (ionos) but I am just getting an internal server error.
Any ideas how I can ...
0
votes
0
answers
16
views
Apache configuration to host both PHP and Python backend together not working for special Alias requirement
I am working on a web application in Ubuntu.
I have a PHP backend that I want to host in "http://localhost/myapp/".
All the application files are in the "/var/www/html/myapp/website/...
0
votes
0
answers
45
views
Flask server goes to sleep or shutdown after one day of inactivity
I have a flask server and it is deployed on digital ocean droplet with production WSGI server and it is working fine there.
But the issue is that after one day flask server goes to sleep and it gives ...