I have a weird problem. In production I can't see the user permissions list in Django admin and after opening the group edit page it shows nothing and page language transforms to another language.
I have some custom permission defined in app models.
What I have done:
I'm using Django version 1.7.
Update: It looks like the problem is from gunicorn or supervisord because it's working in direct runserver.
Problem was from os default encoding , I had some unicode permission names in my records and it's wont load and error happened .
so I just add this three line in my wsgi.py
import sys
reload(sys)
sys.setdefaultencoding('utf8')
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.