error: can't start new thread

I have a site that runs with follow configuration: Django + mod-wsgi + apache In one of user's request, I send another HTTP request to another service, and solve this by httplib library of...

Unexpected behaviour on bookmarklet submit or related database action

[updated below] I have a bit of a problem deploying a site on apache with mod_wsgi with some javascript bookmarklet functionality. The problem is that the bookmarklet (which is a browser menu...

Django long running asynchronous tasks with threads/processing

Disclaimer: I do know that there are several similar questions on SO. I think I've read most if not all of them, but did not find an answer to my real question (see later). I also do know that...

Where do I put "WSGIPassAuthorization On"?

I'm trying to see the Authorization header in Django, using mod_wsgi. I read that Apache holds back the Authorization header by default, I've put << WSGIPassAuthorization On >> in my Apache...

Unable log in to the django admin page with a valid username and password

I can’t log in to the django admin page. When I enter a valid username and password, it just brings up the login page again, with no error messages This question is in the django FAQ, but I've...

apache2 and mod wsgi : Target WSGI script cannot be loaded as Python module

I am trying to install mod_wsgi on apache2, on ubuntu. So I install libapache2-mod-wsgi package, I activate him with a2enmod. I got a web site (languageAnalyz), that I am trying to use with...

Issues in urls when running Django in subdirectory or say suburl

I am trying to run Django inside WordPress like WordPress at main url www.wptesting.com and Django at suburl www.wptesting.com/django . Django main root url Is working fine at ...

Apache strips down "Authorization" header

I'm having a little issue with my Apache 2.2.15 Server. I'm running a Django app on top of it with mod_wsgi. I activated WSGIPassAuthorization On, which made the Basic auth working well. But I...

Django stops working with RuntimeError: populate() isn't reentrant

I've been developing a Django web application deployed on an Apache server with WSGI, and everything has been going smoothly. Today, I made some minor changes to my app's admin.py in an attempt to...

Run mod_wsgi with virtualenv or Python with version different that system default

I am trying to make my Flask application work on CentOS server. Basically the issue is that I have Python 2.6 installed in /usr/bin which is system default and Python 3.4 installed in...

Gunicorn Flask Caching

I have a Flask application that is running using gunicorn and nginx. But if I change the value in the db, the application fails to update in the browser under some conditions. I have a flask...

Name duplicates previous WSGI daemon definition

I'm changing the domain name of a site. For a period I want the old domain name and the new domain name to point to the site. I'm running a Python Django site. My original Apache2 conf works...

deploy flask on apach using mod_wsgi

I'm trying to deploy Flask web app I built to be serve on Apache server. I'm using rasbian (Jessie) OS on rasberry pi 3 . the app running perfect on the flask built-in dev web server but...

Flask with mod_wsgi - Cannot call my modules

I have changed my application running with flask and python2.7 from a standalone solution to flask with apache and mod_wsgi. My Flask app (app.py) includes some classes which are in the directory...

How to get mod_wsgi to pick up my virtualenv

I'm very new to working with Flask- according to http://flask.pocoo.org/docs/0.12/deploying/mod_wsgi/ under the heading "Working with Virtual Environments" I read: For Python 3 add the following...

Django wsgi Apache2: 'AH01630: client denied by server configuration'

I've followed this tutorial to deploy my django project : https://www.digitalocean.com/community/tutorials/how-to-serve-django-applications-with-apache-and-mod_wsgi-on-debian-8 Why the static...

How to install mod_wsgi on Windows+XAMPP in 2017

Im a trying (hard) to set up environment for Django app on Windows with XAMPP. What I have: Windows 7 64bit Apache/2.4.25 (Win32) Python 3.6.1 platform.architecture() = ('64bit',...

Running Flask with mod_Wsgi through virtualenv

On a sever at work (Apache 2.2.3), I am trying to activate my first ever Hello World in with Flask. I can't find logs for errors in any typical recommended locations. I have made a virtualenv in...

Restarting The Jobs In ApScheduler Python When the Wsgi Server is Restarted

I'm using python Apscheduler to schedule my jobs. All my jobs are stored as a cron job and use the BackgroundScheduler. I've the following codes: def letschedule(): jobstores = { ...

Apache2 command such as a2enmod and a2ensite no working its showing command not found in Ubuntu

I am deploying Flask application in Apache2 server during this i need to run a command for enabling mod_wsgi by using: sudo a2enmod wsgi but its showing: sudo: a2enmod: command not found please...

Python Flask using mod_wsgi in Apache; how to get venv to work?

I've been trying to get this to work, and have searched everywhere and read page up and page down, but doesn't seem to find an answer. I have Apache with mod_wsgi and a simple test Flask...

An issue configuring WSGIPythonHome in a Django/mod_wsgi virtual environment

I'm running Python 3.7.1 and Apache 2.4.38 on Windows 10. I've set up a virtual environment containing Django 2.2.5 and mod_wsgi 4.6.5 installed via "pip". Inside "httpd.conf" I've set...

Django Apache error: No module named 'encodings'. Windows server 2008 R2 Standard

I clone repo from git. I create venv: python -m venv myenv /myenv/scripts/activate.bat pip install -r requirements.txt pip install mod_wsgi-4.6.5+ap24vc14-cp36-cp36m-win_amd64.whl if i run from...

wsgi application name 'BASE_DIR' is not defined

I deployed django app on pythonanywhere.com. I am seeing this error. I searched a lot but didnt got anything. I am stuck with wsgi and dont know what to do with it. please help 2020-05-27...

Apache + mod_wsgi + django error on windows 10

I followed this guide exactly: https://www.codementor.io/@aswinmurugesh/deploying-a-django-application-in-windows-with-apache-and-mod_wsgi-uhl2xq09e I am trying to deploy my django application for...

Django connect mysql problem, NameError: name '_mysql' is not defined

I found MySQL database cannot start properly, so I uninstall Mysql 5.7. I installed MySQL 8.0.21, I found that my Django project has a problem. I would like makemigrations on my Django project...

(Synology) How to install apache development package using "ipkg"

I'm running Apache on a Synology (with MySQL, PHP). It has been working fine for 2 years and now I want to add flask files to the server. ipkg update ipkg install python3 wget...

Sagemaker deploy model with inference code and requirements

I trained a TensorFlow model and now I would like to deploy it. The data needs to be processed thus I have to specify one inference.py script and one requirements.txt file. When I deploy the...

ModuleNotFoundError: No module named 'phonenumbers'

I am deploying an app which works well locally to Heroku for the first time, and I have the following error: ModuleNotFoundError: No module named 'phonenumbers' 2021-08-01T05:05:10.359150+00:00...

importing numpy shows warning when running in mod_wsgi

I am running a Flask application in Apache using mod_wsgi. When I try to import numpy, I get the following warning: /usr/local/lib/python3.8/dist-packages/scipy/__init__.py:67: UserWarning: NumPy...