After activating the Admin admin page of the Django server with this tutorial, try opening http://127.0.0.1:8000/admin/as described in the tutorial, and discover that your browser appears as follows
It is obvious that, although the business logic is normal expression, but this has lost the CSS, the standard white background black Word interactive environment, always makes people feel uncomfortable.
I check the command line error message, found the following error message:
Well, it seems that we have found the problem, originally in the Lib directory mimetypes.py file encoding problem, now we open this file, add at the end of the file:
reload(sys)sys.setdefaultencoding(‘gbk‘)
After saving the exit, refresh the http://127.0.0.1:8000/admin/page and you will find:
Is it more comfortable than before?!! __(: 3"∠)
Resolve the Django Site Admin Admin page style sheet (CSS style) is missing