# Template of uWSGI configuration
# This configuration is updated by scripts. So DONOT edit it!
#
# Copyright 2014 Li Yun <leven.cn@gmail.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# uWSGI configuration
# For more details, see https://uwsgi.readthedocs.org/en/latest/index.html
[uwsgi]
# channel
http = :8000
socket = socket

# app
wsgi-file = /path/to/wsgi-app
module = django-app.wsgi
daemonize = /var/log/uwsgi/app.log

master = true
processes = 2
max-requests = 5000

# clear environment on exit
vacuum          = true

# Template of uWSGI configuration
# This configuration is updated by scripts. So DONOT edit it!
#
# Copyright 2014 Li Yun <leven.cn@gmail.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# uWSGI configuration
# For more details, see https://uwsgi.readthedocs.org/en/latest/index.html
[uwsgi]
# channel
http = :8000
socket = socket

# app
wsgi-file = /path/to/wsgi-app
module = django-app.wsgi
daemonize = /var/log/uwsgi/app.log

master = true
processes = 2
max-requests = 5000
enable-threads = true

# clear environment on exit
vacuum          = true

Add enable-threads option for uwsgi ini
Add enable-threads option for uwsgi ini
