Several errors in Python

Source: Internet
Author: User

"System error" has been prompted today at the time of the Django run, as follows

Except Exception, ex:
Logger.error (Printexception ())
Return render_string ("System error! ")

Then take it for granted.

Except Exception, ex:
Logger.error (Printexception ())
Print EX
Return render_string ("System error! ")

But there has been no output error reason, repeated several times, unexpectedly appeared Apache error, really, five miscellaneous Chen Ah!

As a result, children's shoes tell me that the echo in Python is completely different from the one in PHP, not output to standard output, and HttpResponse output

As for the above problem, after removing all. pyc files and restarting the server , there is a python alignment problem, and no alignment will still be an error .

After I change the Django code, it will only take effect if you restart the server

http://www.zhihu.com/question/21016845

Http://www.cnblogs.com/sky20081816/p/3309925.html

Several errors in Python

Related Article

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.