Questions tagged [mod-wsgi]

The mod_wsgi module is a python WSGI adapter module for Apache.

The mod_wsgi module is a python WSGI adapter module for Apache. For details on the official channel for getting mod_wsgi help, see http://modwsgi.readthedocs.io/en/develop/finding-help.html.

3241 questions
1
vote
1 answer

Django imagekit cumulus - ResponseError: 401: Unauthorized

This is driving me crazy. Is there someone out there that can help? Traceback (most recent call last): File "/opt/python2.6/lib/python2.6/site-packages/django/core/handlers/base.py", line 92, in get_response response = callback(request,…
ApPeL
  • 4,801
  • 9
  • 47
  • 84
1
vote
1 answer

flask app fails when loaded with wsgi, but works fine with dev server

I have my flask app working just great with the dev server when I run it like this: python manage.py runserver But when I try to run it with wsgi I get all kinds of "module not installed" errors, and even syntax errors. Strangely, it shows a…
tarponjargon
  • 1,002
  • 10
  • 28
1
vote
2 answers

getting an error when trying to run uwsgi: error while loading shared libraries: libpython3.4m.so.1.0

I've been runing uwsgi like so: uwsgi --ini CMS_uwsgi.ini and it used to work. However, I tried running uwsgi again after a couple weeks and I get this error now: uwsgi: error while loading shared libraries: libpython3.4m.so.1.0: cannot open shared…
SilentDev
  • 20,997
  • 28
  • 111
  • 214
1
vote
0 answers

Django two projects, same database

I try to set up two projects, The first is a management project - it involves auth_user, sessions, writing to db. The second project is a "serve content" project, it only read from the db, uses no sessions, users.. It rely on db data created in the…
user3599803
  • 6,435
  • 17
  • 69
  • 130
1
vote
0 answers

How can I run django using apache2?

I'm trying to run django on apache2 using mod_wsgi, but when I'm trying to connect "locatoka.ru" I get "Forbidden You don't have permission to access / on this server." My actions: I added to httpd.conf LoadModule wsgi_module…
LOGA
  • 51
  • 1
  • 6
1
vote
1 answer

Script timed out before returning headers: application.py

I have been trying to deploy my flask app on aws using their elastic beanstalk service but I havnt had any luck. I have tried renaming app to application or import as application. I have tried adding different things to httpf.conf. But, no luck. Any…
1
vote
0 answers

django rest framework https authentication - 403 forbidden

I am developing REST api with django rest framework. In my view, I have set permission classes as permission.IsAuthenticated. It is working with HTTP but I get 403 forbidden with HTTPS. I am testing with Chrome Advance Rest Client, using the Basic…
chrizonline
  • 4,779
  • 17
  • 62
  • 102
1
vote
0 answers

Deploying django on apache: No module named Portfolio.settings

I've got my project in /var/Django/Portfolio while having a virtualenv in /var/Django/env. It's just a new project without any changes except that I've set the DEBUG = False in the settings.py. Virtualenv has Django 1.9.15 and Python2.7 installed.…
Philip Feldmann
  • 7,887
  • 6
  • 41
  • 65
1
vote
1 answer

Permission Denied error for "geckodriver.log" when trying to run wsgi selenium script on apache

I created a flask application which runs a selenium script. Within flask it works just fine, however when I transfer it to apache using wsgi I get this error from the apache.log. The templates load but the selenium script doesn't run. I will attach…
Jack Gruber
  • 47
  • 1
  • 7
1
vote
0 answers

embedded mode of mod_wsgi with virtualenv

conclusion of this question 1.what I wanted to do in the first place. i wanted to allow only some user in Django can upload file. I could do write codes to do that in Django web framework. But if you set upload folder as r__ permssions, you can't…
Jayground
  • 1,797
  • 1
  • 17
  • 32
1
vote
1 answer

Python-Django-WSGI-Apache on windows - “ImportError: No module named site”

I'm trying to connect django with apache on windows server with the wsgi mod. when I'm running httpd.exe , it shutdown immediately. in the error.log I got this : [Thu Nov 17 00:44:19.918823 2016] [wsgi:warn] [pid 520:tid 452] mod_wsgi: Compiled…
Ariel Livshits
  • 591
  • 1
  • 7
  • 23
1
vote
0 answers

lxml tostring() returns blank string in Flask running on mod-wsgi

I have a Python 2.7.6 Flask application that is trying to parse a SAML XML document using the lxml library. I'm running into an issue where etree.tostring(...) returns an empty string. etree_string =…
Nate
  • 321
  • 3
  • 6
1
vote
0 answers

Hosting a Django CMS project at the root of a domain, and a second one at a path under the root

I used the same method for hosting multiple django cms sites under one domain for example 'example.com' .example.com is my my main project and example.com/blog is my sub project. Both are independent projects.But when I login to example.com/blog its…
nidhin
  • 359
  • 1
  • 3
  • 13
1
vote
1 answer

Django mod_wsgi: ImportError: No module named '$myproject'

So I've been scratching my head for a while trying to figure this one out. I am on Ubuntu 16.04, with 2 different django projects. The intention here is to run both of the side by side on two separate domains on the same server, using two different…
arlyon
  • 135
  • 1
  • 15
1
vote
0 answers

Unable to configure Python Flask App with Apache

I am trying to run a flask based REST api through Apache mod wsgi. I am developing the project in virtual environment. So the project structure looks like the following: home user python_projects project_name venv …
coderx
  • 509
  • 6
  • 22