urls.py:
    ('^$', 'siteWithResources.default.default'),      
    ( r'^js/(?P<path>.*)$', 'django.views.static.serve',
            { 'document_root': 
'C:/Python25/Lib/site-packages/django/django-resources/js/' }
    ),
default.py(主程序)
   def default( request ):   
        return render_to_response( 'django-templates/default.html',
                        {"mytitle":"bbbbbb"})
default.py的下级目录templates下有一个default.html网页

我写的app.yaml
application: mrqunying
version: 1
runtime: python
api_version: 1
skip_files: |
 ^(.*/)?(
 (app\.yaml)|
 (app\.yml)|
 (index\.yaml)|
 (index\.yml)|
 (#.*#)|
 (.*~)|
 (.*\.py[co])|
 (.*/RCS/.*)|
 (\..*)|
 (.*/\.svn/.*)|
 (.*/Thumbs\.db)|
 )$

handlers:

- url: /django-templates/default\.html
  script: default.py

- url: /.*
  script: default.py
  secure: optional
请问,app.yaml 的 handlers 如何写才能发布应用程序 ? 
本地测试是正常的。 
上传后显示:
The server encountered an error and could not complete your request.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/21h2gjRgXg0J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to