Hi everybody I tried to deploy my django project with apache, mod_wsgi in windows. I splited my settings.py like this: source root folder project folder apps config settings init.py base.py local.py prod.py init.py asgi.py urls.py wsgi.py myenv After I splited settings.py, Mod_wsgi failed to exec python scripts file : ‘C:/user/users/desktop/source_root_folder/project_folder/wsgi.py’. Mod_wsgi also show the exception that Exception occurred processing WSGI
Tag: apache
Why am I getting PermissionError [Errno 13] when attempting to write to log in Flask hosted by Apache?
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
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? Answer Install Microsoft Visual C++ Build Tools: https://visualstudio.microsoft.com/visual-cpp-build-tools/ Point MOD_WSGI_APACHE_ROOTDIR to your installation (default is C:/Apache24). Use forward slashes: Install mod-wsgi package: Note: Make sure that the
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 django application worked fine in
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. Trying to browse to the server returns a 500 Internal Server Error I’m getting the usual no module named flaskerror. errorFGL.log __init__.py flaskapp.wsgi
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 worked perfectly well on my local system and on the CentOS server when ran using app.run(). But when i used WSGI to host the application
Invalid command WSGIDaemonProcess Deploy Django application on CentOS 6.7
I am using Django 1.8 on CentOS 6.7 with Apache Server version: Apache/2.2.15 (Unix). I have followed the steps in How To Serve Django Applications with Apache and mod_wsgi on CentOS 7. But at last step when I start the Apache server with command : service httpd start instead of systemctl start httpd beacuse I have Centos 6.7 not CentOS