If you are running Django under mod_wsgi on apache you might see errors like "IOError: failed to write data" followed by "Exception occurred processing WSGI script" in your logs, this is because your code is actually throwing an exception but Django likes to hide any errors from your users (for obvious reasons).
Usually Django would send you an e-mail with the full callstack of the error to ADMINS defined in your settings.py but if you don't have your e-mail settings or ADMINS properties configured it will not be able to send you your e-mail report.
Also, if you have your e-mail host server defined wrong (i.e gmail.com instead of smtp.gmail.com) your server will just keep churning and never load your 404 or 500 server errors.
If you don't have an SMTP server to use and need to see the exception your site is throwing you could always set Debug=True but then anyone who accesses your site in that time will also see the information of the exception.
To use g-mail with django click here
http://sontek.net/blog/detail/using-gmail-to-send-e-mails-from-django
For Django documentation on email settings click here
https://docs.djangoproject.com/en/dev/ref/settings/#email-host
分享到:
相关推荐
Eclipse运行TOMCAT 出现在a java exception has occurred的解决办法。
exception基础,异常的基本用法。
JD-GUI是使用C++开发的一款Java反编译工具,它是一个独立图形界面的Java源代码“.class”文件反编译工具。 JD-GUI是使用C++开发的一款Java反编译工具,它是一个独立图形界面的Java源代码“.class”文件反编译工具。
PotPlayer是世界上最好最强大的影音播放器
Exception occurred executing command line. Cannot run program “D:\soft\Java\jdk1.6.0_12\bin\javaw.exe” (in directory “E:\DevCode\Ali\20121008_ordercenter”): CreateProcess error=87, ²ÎÊý´í ...
反编译工具两个版本,一个支持jdk1.7的 如果打开弹出这个提示 A Java Exception has occurred 可以使用另外一个1.7版本的试试看
NULL 博文链接:https://zhongrf.iteye.com/blog/1964274
NULL 博文链接:https://moyuan.iteye.com/blog/263869
解决方法:An error occurred on the server when processing the URL. Please contact the system administrator 在WINDOWS7或SERVER2008上安装了IIS7.5,调试ASP程序时出现以下错误: An error occurred on the ...
NULL 博文链接:https://cuisuqiang.iteye.com/blog/1769413
使用C#编写,web socket客户端连接源码,可用于性能测试。
主要用于解决matlab在安装时出现“灾难性故障”。
异常A generic error occurred in GDI+的解决办法
在使用eclipse的时候,有时候会弹出一个方框,里面的内容是Unhandled event loop exception No more handles,当你点击OK的时候,又会出来一个方框,里面第一句话是 An SWT error has occurred,并且诱导你关闭...
How to user ARM's data-abort exception. A data-abort exception is a ... The data-abort exception handler is a program that can inform the programmer where in his or her code this exception has occurred
在下载好Matlab安装文件(R2009b,R2010b等版本的installer)后,双击安装. 在出现一个对话框显示... An exception occurredwhile looking for class.”然后安装中断退出. 这里给出了解决这种Installer Error的具体步骤.
万恶的An error occurred during local report processing异常 出现这个异常有很多原因,下面介绍一下由于VS版本问题造成这样的异常: The report definition has an invalid target namespace ...
实用开发工具Myeclipse,在启动tomcat时,不间断的会弹出 An internal error occurred during: "Calculating completion proposals...". java.lang.NullPointerException的错误对话框!
psychtoolbox教程
EDatabaseError exception occurred on executing the TCustomSQLDataSet.GetRecordCount method. Fixed now. 10. Custom values for ThousandSeparator property were not saved in the configuration file. ...