Python GAE上的Django:找不到资源

Python GAE上的Django:找不到资源,python,django,google-app-engine,Python,Django,Google App Engine,我有一个Django应用程序,它可以呈现一些网页,让人们向我的数据库提交一些信息。项目结构如下: --wun/ --manage.py --templates/uploader/ --some_html_files.html --static/uploader/ --css_files.css --wun/ --settings.py --urls.py --wsgi.py --uploader/ --app_files.p

我有一个Django应用程序,它可以呈现一些网页,让人们向我的数据库提交一些信息。项目结构如下:

--wun/
  --manage.py
  --templates/uploader/
     --some_html_files.html
  --static/uploader/
     --css_files.css
  --wun/
    --settings.py
    --urls.py
    --wsgi.py
  --uploader/
    --app_files.py
所以这个项目叫做
'wun'
,我的应用叫做
'uploader'
。该结构是典型的Django

在Django的本地开发服务器上运行它没有问题,但是当将它部署到GAE时,我在我访问的每个url端点上都发现了
404 Not Found
。我在Django设置中打开了
DBUG
,但没有其他信息。我可以在GAE的日志上看到访问过的端点

我想可能GAE找不到静态文件和模板?我在Django中有以下设置:

BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))

TEMPLATES = [
    {
        'BACKEND': 'django.template.backends.django.DjangoTemplates',
        'DIRS': [BASE_DIR,os.path.join(BASE_DIR, 'templates')],
        'APP_DIRS': True,
        'OPTIONS': {
            'context_processors': [
                'django.template.context_processors.debug',
                'django.template.context_processors.request',
                'django.contrib.auth.context_processors.auth',
                'django.contrib.messages.context_processors.messages',
            ],
        },
    },
]

STATIC_URL = '/static/'
在应用程序引擎上:

handlers:
- url: /static
  static_dir: static
- url: /static/uploader
   static_dir: /static/uploader
- url: .*
  script: wun.wsgi.application

但我不认为这里使用前两个URL,因为我不直接为页面提供服务。所有页面都由Django视图从模板中呈现。

结果是GoogleAppEngineLauncher在我的项目文件夹下自动创建了另一个文件夹,并且它使用的应用程序设置没有任何内容。因此,当服务器被访问时,实际上没有Django应用程序在运行,它只是一个空服务器。

结果是GoogleAppEngineLauncher在我的项目文件夹下自动创建了另一个文件夹,并且它正在使用没有任何内容的应用程序设置。因此,当访问服务器时,实际上没有Django应用程序在运行,它只是一个空服务器