0

django_wsgi.py

import os
os.environ['DJANGO_SETTINGS_MODULE'] = 'umka.settings'
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()  

uwsgi.xml

<uwsgi>
    <plugins>python</plugins>
    <pythonpath>/var/www/</pythonpath>
    <workers>2</workers>
    <module>umka.django_wsgi</module>
    <app mountpoint="/">
        <script>django_wsgi</script>
    </app>
    <prio>-4</prio>
    <threads>2</threads>
    <harakiri>65</harakiri>
</uwsgi>  

我可以登录 cherokee-admin。它说服务器正在运行。但它总是提供 500 错误。

4

0 回答 0