在app engine 500服务器错误上部署django

时间:2021-06-05 20:30:32

I am trying to deploy completed web-app (runs locally) on the app engine. The app has no databases and the web page is static. My primary problem is that I try to deploy the app and I get a server error. I suspect that the issue lies with my app.yaml file but I cannot seem to fix it. Here is my yml file:

我正在尝试在应用引擎上部署完整的网络应用(在本地运行)。该应用程序没有数据库,网页是静态的。我的主要问题是我尝试部署应用程序,我收到服务器错误。我怀疑问题在于我的app.yaml文件,但我似乎无法修复它。这是我的yml文件:

runtime: python27
api_version: 1
threadsafe: yes

handlers:

- url: /static
  static_dir: personal/static/

- url: /.*
  script: mysite.wsgi.application

The directory is organized so that the 'personal' is an installed app and static, templates etc. are inside the personal folder.

该目录是有组织的,以便'个人'是一个已安装的应用程序,静态,模板等在个人文件夹内。

1 个解决方案

#1


0  

In settings file, make DEBUG=False for short time to just check what is error, then return it back to True

在设置文件中,短时间使DEBUG = False以检查错误,然后将其返回True

#1


0  

In settings file, make DEBUG=False for short time to just check what is error, then return it back to True

在设置文件中,短时间使DEBUG = False以检查错误,然后将其返回True