2,486 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
83
views
How to load environment variables in PythonAnywhere?
I have just finished working on a Flask web application that is using openai SDK.
Locally everything works smoothly, but after uploading the project on PythonAnywhere, the environment variables from ....
4
votes
1
answer
156
views
Low RPS when perfomance testings django website
I have a code like this that caches a page for 60 minutes:
import os
import time
from django.conf import settings
from django.core.cache import cache
from django.core.mail import send_mail
from django....
1
vote
1
answer
36
views
mod_wsgi doesn't output exception traceback to the httpd error log
Platform:
httpd-2.4.62-1.el9_5.2.x86_64
python3-mod_wsgi-4.7.1-11.el9.x86_64
python3-3.9.21-1.el9_5.x86_64
httpd settings:
WSGIDaemonProcess server.example.com \
processes=2 \
...
0
votes
1
answer
75
views
WeasyPrint in Flask server not generating PDF with images
I have a Flask server running in localhost python 3.9 and conda, with a route for pdf creation with WeasyPrint's python driver, the pdf's are generated correctly but I just cant put any images on it (...
0
votes
0
answers
57
views
running two Flask apps through WSGI on Apache Ubuntu Server?
I have 2 apps made in Flask, an API which gets and sends data from an sqlite database. And a Flask web app with a jinja template in a template folder. i want to run both the api and web app on an ...
0
votes
1
answer
70
views
Python Flask WSGI failure with deprecated imp module
When I attempt to deploy a Flask app on a shared hosting site, using cPanel, the deployment fails with this message: "ModuleNotFoundError: No module named 'imp'."
As other posts have ...
0
votes
0
answers
19
views
Apache removing spaces before slashes in the PATH of an URI
I cannot find it anywhere, nor in the source code of Apache nor on any page references for this happening, but somehow Apache normalizes URIs
from
http://example.com/my/page /with/space
into
http://...
1
vote
2
answers
58
views
Executing & accessing python module code with __all__ in __init__.py
So I'm trying to write a simple wsgi python module where I use __init__.py to bring in variables & functions from another file but I can't seem to get the module to load. I keep getting the "...
0
votes
1
answer
510
views
Django WSGI and ASGI
How can I run the ASGI and WSGI protocols separately in my Django project?
This is my project structure.
.
├── chat # <== my app name
│ ├── apps.py
│ ├── consumers.py
│ ├── __init__.py
│ ├─...
0
votes
0
answers
112
views
FastAPI app not detected by Passenger on cPanel-managed server (Phusion Passenger + Apache)
I am trying to deploy a FastAPI application on a cPanel-managed server using Phusion Passenger with Apache. However, Passenger is not detecting my app even after following the standard setup.
What I ...
0
votes
0
answers
64
views
Running python app 'changedetection' on PythonAnywhere
Has anyone ever used PythonAnywhere to host opensource python program called changedetection?
I'm having trouble with the web app WSGI file, which is the file telling the web app where to find the app ...
0
votes
1
answer
60
views
Configuration of Django+WSGI+Apache
I have a Debian 11 system with Apache2 2.4.6.2, mod_wsgi 4.7.1 and Python 3.9. I want to run two different Django projects under the same Apache2 server, and in the same virtual host as outlined e.g. ...
1
vote
0
answers
51
views
503 error when running a python application on planet hoster / N0C
I'm trying to create a simple python application on planet hoster which use the N0C interface (instead of cpanel), I didn't add any code (run.py contains only the template for the 200 ok message)
I ...
1
vote
1
answer
39
views
Setting up Django in a subdirectory
I am trying to set up Django in a subdirectory (running under Apache2 through wsgi), but Django stops recognizing the static URLs.
This is an example url, that gives me a 404: https:/<domain>/&...
0
votes
1
answer
48
views
Apache: WSGI not routing
I am trying to use WSGI with a URL that I need to be able to POST to under Apache 2 (using flask). I am able to run my .wsgi independently of Apache (python cfg.wsgi) and it handles GET and POST ...