首页 > 解决方案 > Pass value to uWSGI from Django application

问题描述

How can I pass the request.user.username to the uWSGI logger from Django?

I want to generate the below log:

[pid: 1|app: 0|req: 2/38] **REQUEST.USER.USERNAME**

Also, I'm using Nginx as the webserver.

标签: pythonpython-3.xdjangonginxuwsgi

解决方案


推荐阅读