[Django] The Django site admin supports Chinese display and input settings, djangoadmin
Body:
The Django site admin supports Chinese Input settings as follows:
1 need to determine your database client and server encoding set to UTF-8, if not, please set it to UTF-8 encoding, I use mysql, detailed settings see the article: http://www.cnblogs.com/CQ-LQJ/p/4934168.html
2. If it is not appropriate to create a databaseUTF-8, Please re-establish the database;
3 over. If you have any questions, check the error message. Generally, it is related to the encoding of the database.
The Django site admin supports Chinese display as follows:
1. Find the setting. py file in the project path you created.
2. ModifyExport age_code = 'zh-cn' indicates that django displays Chinese characters,In the settings. py file, the default values of these two items are:
Export age_code = 'en-us' TIME_ZONE = 'utc'