I am running Flask 1.1.4 via Python 3.5.3, hosted via an Apache 2 server on Debian Stretch. I am attempting to log various messages from the program, using the python logging module. This works normally. However, if I restart the Apache server using sudo service apache2 restart, the Flask application errors out with PermissionError: [Errno 13] Permission denied: (log file
Tag: apache
Flask login page keeps loading and does not take to a new /main page where it is supposed to go?
So, I have this flask application and I have used flask_login and flask forms to set up an authentication for my webpage. When I run it on a local development server, it works completely fine and upon putting right username and password, I am able to go to the main page which resides on /main route. Now, I had to
Django websites not loading
I have two Django websites on one server using Apache with mod_wsgi on Windows 10. For some reason the Django websites don’t load, however, I have a normal website that does. I’ve had it work in the past when I was using one, but I had to change some stuff to make two work. Here are my urls.py 1 2
Only the first Django site to be loaded works
I recently submitted a problem to stackoverflow titled Django infinite loading after multiple requests on apache using mod_wsgi. Anyways, I have recently changed a lot of that code and now I have a new problem. The first Django website I request works, however, the second one points to the first one I loaded and gives the response DisallowedHost because obviously
How to install mod_wsgi into Apache on Windows?
Other similar answers are out of date or focus on a particular error and not the whole process. What is the full installation process of mod_wsgi into an Apache installation on Windows 10?
Django stops with “generator raised StopIteration” when html form allows for file upload
My setup is Windows 10, Python 3.7, Apache 2.4/mod_wsgi. When I add this enctype=”multipart/form-data” in my form (just by adding this attribute, only — no files are attached to the form) I get this error when submitting: My Django code is this: And this is full traceback: Any ideas what is going wrong? PS: Same […]
Flask – WSGI – No module named ‘flask’
I’ve been following Sentdex’ Flask tutorial. He’s using a Venv to set up his Flask, but didn’t set his Python up to work with a Venv. I’ve tried installing Flask globally – yet it still doesn’t work. …
python sqlite3 OperationalError: attempt to write a readonly database
I am trying to run a Flask REST service on CentOS Apache2 using WSGI. The REST service requires a very small storage. So i decided to use SQLite with sqlite3 python package. The whole application …