简体   繁体   English

Django:使用mod_wsgi加载页面极慢

[英]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. 为了进行测试,我尝试使用apache和mod_wsgi在Raspberry Pi(模型B)上托管当前的Django项目。 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. 不幸的是,尽管页面加载在Django开发服务器上工作得很好,但页面加载却极其缓慢(从30秒到几分钟,甚至在股票管理网站上)。

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 ): 这是我的etc/apache2/apache2.conf的对应摘录,因为我确定这只是我的配置问题(我使用了Django官方文档 ):

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? 是否有人遇到过类似的问题或知道如何解决此问题?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM