ubuntu搭建django报错uwsgi+nginx!

[pid: 5891|app: -1|req: -1/61] 171.221.140.176 () {46 vars in 872 bytes} [Mon Dec 31 01:07:57 2018] GET /favicon.ico => generated 21 bytes in 1 msecs (HTTP/1.1 500) 2 headers in 83 bytes (0 switches on core 0) Traceback (most recent call last): File "./sdstation/wsgi.py", line 16, in application = get_wsgi_application() File "/usr/local/lib/python3.6/dist-packages/django/core/wsgi.py", line 12, in get_wsgi_application django.setup(set_prefix=False) File "/usr/local/lib/python3.6/dist-packages/django/init.py", line 24, in setup apps.populate(settings.INSTALLED_APPS) File "/usr/local/lib/python3.6/dist-packages/django/apps/registry.py", line 81, in populate raise RuntimeError("populate() isn't reentrant") RuntimeError: populate() isn't reentrant unable to load app 0 (mountpoint='') (callable not found or import error) --- no python application found, check your startup logs for errors --- [pid: 5893|app: -1|req: -1/62] 171.221.140.176 () {48 vars in 925 bytes} [Mon Dec 31 01:08:28 2018] GET / => generated 21 bytes in 1 msecs (HTTP/1.1 500) 2 headers in 83 bytes (0 switches on core 0) Traceback (most recent call last): File "./sdstation/wsgi.py", line 16, in application = get_wsgi_application() File "/usr/local/lib/python3.6/dist-packages/django/core/wsgi.py", line 12, in get_wsgi_application django.setup(set_prefix=False) File "/usr/local/lib/python3.6/dist-packages/django/init.py", line 24, in setup apps.populate(settings.INSTALLED_APPS) File "/usr/local/lib/python3.6/dist-packages/django/apps/registry.py", line 81, in populate raise RuntimeError("populate() isn't reentrant") RuntimeError: populate() isn't reentrant unable to load app 0 (mountpoint='') (callable not found or import error) --- no python application found, check your startup logs for errors --- [pid: 5892|app: -1|req: -1/63] 171.221.140.176 () {46 vars in 872 bytes} [Mon Dec 31 01:08:28 2018] GET /favicon.ico => generated 21 bytes in 1 msecs (HTTP/1.1 500) 2 headers in 83 bytes (0 switches on core 0)

评论 2

  • <uwsgi>
    <socket>127.0.0.1:8000</socket> <chdir>/data/wwwroot/sdstation</chdir>
    <module>sdstation.wsgi</module> <processes>4</processes> <
    <daemonize>uwsgi.log</daemonize> </uwsgi>