stoeffn
stoeffn

Reputation: 556

Django: Extremely slow page loading using mod_wsgi

For testing purposes, I tried to host my current Django project on my Raspberry Pi (Model B) using apache and mod_wsgi. After some struggling I managed to get it to work. Unfortunately, page loading is extremely slow (from 30 seconds up to a few minutes, even on the stock admin site) although it worked quite well on the Django development server.

Here is the corresponding extract of my etc/apache2/apache2.conf, as I'm sure this is just a problem with my configuration (I used the official Django documentation):

WSGIScriptAlias / /var/Vplan/Vertretungsplan/wsgi.py
WSGIPythonPath /var/Vplan

<Directory /var/Vplan/Vertretungsplan>
<Files wsgi.py>
Allow from all
</Files>
</Directory>

Does/Did anybody experience similar problems or knows how to solve this issue?

Upvotes: 0

Views: 4449

Answers (1)

dpleshakov
dpleshakov

Reputation: 106

You should use mod_wsgi daemon mode.

Upvotes: 3

Related Questions