python Django错误解决:A server error occurred. Please contact the administrator.

原创 2016年06月01日 20:33:55


   ###########################       六一儿童节,撒花  ヽ(✿゚▽゚)ノ       ###########################

   

问题:A server error occurred. Please contact the administrator.

这是django加载网页时出现的,网页加载不出来,界面显示为这一句话


 

解决方法:

在 settings.py 文件中有一个

MIDDLEWARE_CLASSES = [
    'django.middleware.security.SecurityMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.middleware.common.CommonMiddleware',
    'django.middleware.csrf.CsrfViewMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
    'django.contrib.messages.middleware.MessageMiddleware',
    'django.middleware.clickjacking.XFrameOptionsMiddleware',
]

这里面不能添加其他东西,我是将 app 文件误放进去了。




版权声明:本文为博主原创文章,未经博主允许不得转载。

相关文章推荐

Hue安装

Table of Contents 1. Introduction2. Hue Installation Instructions 2.1. Install Hue2.2. Install H...

解决IIS7运行ASP提示错误:An error occurred on the server when processing the URL. Please contact the system administrator

解决IIS7运行ASP提示错误:An error occurred on the server when processing the URL. Please contact the system a...

sonarqube 汉化 An error has occurred. Please contact your administrator

sonar最新版本汉化

500错误解决 调试ASP程序错误An error occurred on the server when processing the URL

在浏览器本地打开asp网页http://localhost/出现这个情况: An error occurred on the server when processing the URL. Pleas...

解决nginx的An error occurred. The page you are looking for is temporarily unavailable错误办法

这篇文章写得超级棒 完美解决了问题   今天访问WordPress程序做的网站,突然出现The page you are looking for is temporarily unavailab...

Eclipse安装WindowBuilder提示错误:An error occurred while collecting items to be installed,解决方法

Eclipse安装WindowBuilder提示错误,具体信息如下所示: An error occurred while collecting items to be installed sess...

linux系统中:an error occurred during the file system check 错误解决方法

错误内容: ***an error occurred during the file system check***dropping you to a shell;the system will re...

linux挂载硬盘重启后出现an error occurred during the file system check错误最有效的解决办法

由于最近在学习QT的应用与开发,所以第一步必须要搭建开发环境。然而如今发现当初给虚拟机分配的硬盘空间明显不足,导致QT_SDK的安装失败。 于是在网上搜索关于扩展硬盘空间的办法,浏览网站无数,但基本...
  • ajioy
  • ajioy
  • 2011-09-10 17:08
  • 9009

Linux系统:an error occurred during the file system check 错误解决方法

Linux系统:an error occurred during the file system check 错误解决方法 原文地址:http://blog.csdn.net/menglongfc/a...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:深度学习:神经网络中的前向传播和反向传播算法推导
举报原因:
原因补充:

(最多只允许输入30个字)