[Django] The Django site admin supports Chinese display and input settings, djangoadmin

Source: Internet
Author: User

[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'

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.