`
zl4393753
  • 浏览: 340098 次
  • 性别: Icon_minigender_1
  • 来自: 武汉
社区版块
存档分类
最新评论

Exception occurred processing WSGI script with Django

 
阅读更多
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的解决办法。

    Eclipse运行TOMCAT出现"a java exception has occurred"的解决办法 Eclipse是一款功能强大且广泛应用的集成开发环境(IDE),它支持多种编程语言,包括Java、C++、Python等。TOMCAT则是一款流行的Java Web服务器,...

    出现报错An unhandled exception occurred while processing the request

    下载装好了,能用,立即上传,有需要自己下载 RedisConnectionException: It was not possible to connect to the redis server(s). UnableToConnect on 127.0.0.1:6379 下载装一下 看下这位博主的文章 ...

    java Exception

    - 示例:`ArithmeticException`(数学运算异常,如除以零)、`NullPointerException`(空指针异常)、`ArrayIndexOutOfBoundsException`(数组索引越界异常)、`ClassCastException`(类型转换异常)等。...

    Java反编译工具jd-gui

    JD-GUI是使用C++开发的一款Java反编译工具,它是一个独立图形界面的Java源代码“.class”文件反编译工具。 JD-GUI是使用C++开发的一款Java反编译工具,它是一个独立图形界面的Java源代码“.class”文件反编译工具。

    org.eclipse.jdt.launching_3.6.0.v20110509.jar

    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, ²ÎÊý´í ...

    PotPlayer x64 1.7.13963 美化版

    PotPlayer是世界上最好最强大的影音播放器

    SAP NWCE7.11 ERROR\"Application error occurred during the request processing.\"

    关于SAP NWCE 7.11错误"Application error occurred during the request processing."的分析与处理 标题中提到的SAP NWCE 7.11指的是SAP NetWeaver Composition Environment的7.11版本,这是一个用于企业级的业务...

    反编译工具两个版本,一个支持jdk1.7的 解决A Java Exception has occurred

    本文将深入探讨标题和描述中提到的反编译工具及其与Java JDK版本的关联,以及如何解决"Java Exception has occurred"的问题。 首先,标题提到了“反编译工具两个版本,一个支持jdk1.7的”,这暗示了Java开发工具集...

    An error occurred during local report processing: report definition has an invalid target namespace

    在开发报告过程中,可能会遇到一个令人头疼的问题,即“An error occurred during local report processing: report definition has an invalid target namespace”的异常。这个问题通常涉及到报表定义的目标命名...

    Django + jquery + json 实例实现 在此记录

    在本实例中,我们将探讨如何使用Django框架与jQuery库以及JSON数据格式来构建一个功能性的Web应用。Django是一个强大的Python Web框架,它提供了一整套解决方案来处理后端逻辑,而jQuery则是一个广泛使用的...

    exception_notification

    NULL 博文链接:https://moyuan.iteye.com/blog/263869

    访问网站提示An error occurred on the server when processing the URL的解决方法

    解决方法: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 ...

    Oracle JDBC 连接时的一个BUG

    标题中的“Oracle JDBC 连接时的一个BUG”指的是在使用Java数据库连接(JDBC)与Oracle数据库进行交互时出现的问题。Oracle JDBC驱动是Java应用程序连接到Oracle数据库的桥梁,但有时候由于各种原因,如代码错误、...

    Matlab安装Error finding installer class解决方法

    An exception occurred while looking for class。”随后安装进程会中断并退出。 #### 错误原因分析 根据提供的信息和经验总结,导致该错误的原因主要有以下几点: 1. **安装文件夹名含有非ASCII字符**:如果...

    C# web socket 客户端实现源码

    WebSocket是Web交互技术的一种,它允许在客户端和服务器之间建立持久的、双向的通信通道,为实时数据传输提供了高效解决方案。...本篇文章将深入探讨如何使用C#实现WebSocket客户端,并进行性能测试。...

    Django调用百度AI接口实现人脸注册登录代码实例

    console.log("An error occurred: " + err); }); // 发送Ajax请求到后端 function sendImageToServer(imageData) { $.ajax({ type: "POST", url: "{% url 'face_register' %}", data: { imageData: ...

    ExceptionEx

    std::cerr << "Exception occurred: " () ; std::cerr () , Line: " () , Function: " () ; } ``` 总的来说,`ExceptionEx`类是C++异常处理的一个扩展,增强了异常信息的丰富性和可读性,提高了开发人员在调试和...

    django-master-class

    - **GIS Support in Django:** Django’s GIS capabilities include handling spatial data types, performing spatial queries, and integrating with external GIS services. - **Spatial Data Types:** Supported...

    An internal error occurred during: java.lang.NullPointerException

    在使用MyEclipse进行Java开发的过程中,可能会遇到一个常见的问题:“An internal error occurred during: 'Calculating completion proposals...'”。这个错误通常伴随着`java.lang.NullPointerException`异常,...

Global site tag (gtag.js) - Google Analytics