import webapp2
class MainPage(webapp2.RequestHandler):
def get(self):
if self.request.url.endswith('/'):
path = '%sindex.html'%self.request.url
else:
path = '%s/index.html'%self.request.url
self.redirect(path)
app = webapp2.WSGIApplication([('/.*', MainPage)],
debug=True)
application: gtryapp
version: 1
runtime: python27
api_version: 1
threadsafe: yes
处理程序:
URL:/(..html)mime_type:text/html static_files:static/\1上载:static/(..html)
URL:.*脚本:main.app
库:
这是目录和文件的列表。那为什么我会得到404??
如果我写
>
URL:/index.html
mime_type:text/html
static_files:index.html
它显示了index.html页面,但没有图像...这很奇怪,图像的正则表达式发生了什么?
application: gtryapp
version: 1
runtime: python27
api_version: 1
threadsafe: yes
handlers:
- url: /images
static_dir: images
- url: /css
mime_type: text/css
static_dir: css
- url: /js
mime_type: text/javascript
static_dir: js
- url: /scripts/1.1
mime_type: text/javascript
static_dir: scripts/1.1
- url: /(.*\.xml)
mime_type: application/xml
static_files: static/\1
upload: static/(.*\.xml)
- url: /index.html
mime_type: text/html
static_files: index.html
upload: index.html
- url: /ydc-contacts.html
mime_type: text/html
static_files: ydc-contacts.html
upload: ydc-contacts.html
- url: /ydc-graphic.html
mime_type: text/html
static_files: ydc-graphic.html
upload: ydc-graphic.html
- url: /ydc-graphic_design-bauer_bodoni.html
mime_type: text/html
static_files: ydc-graphic_design-bauer_bodoni.html
upload: ydc-graphic_design-bauer_bodoni.html
- url: /ydc-graphic_design-humac.html
mime_type: text/html
static_files: ydc-graphic_design-humac.html
upload: ydc-graphic_design-humac.html
- url: /ydc-graphic_design-olo.html
mime_type: text/html
static_files: ydc-graphic_design-olo.html
upload: ydc-graphic_design-olo.html
- url: /ydc-graphic_design-software.html
mime_type: text/html
static_files: ydc-graphic_design-software.html
upload: ydc-graphic_design-software.html
- url: /ydc-interior-anagnina.html
mime_type: text/html
static_files: ydc-interior-anagnina.html
upload: ydc-interior-anagnina.html
- url: /ydc-interior-ied_meets_cinecitto.html
mime_type: text/html
static_files: ydc-interior-ied_meets_cinecitto.html
upload: ydc-interior-ied_meets_cinecitto.html
- url: /ydc-interior.html
mime_type: text/html
static_files: ydc-interior.html
upload: ydc-interior.html
- url: /ydc-interior_design-unofficial.html
mime_type: text/html
static_files: ydc-interior_design-unofficial.html
upload: ydc-interior_design-unofficial.html
- url: /ydc-lighting-design.html
mime_type: text/html
static_files: ydc-lighting-design.html
upload: ydc-lighting-design.html
- url: /ydc-lighting-pixelight.html
mime_type: text/html
static_files: ydc-lighting-pixelight.html
upload: ydc-lighting-pixelight.html
- url: /ydc-lighting.html
mime_type: text/html
static_files: ydc-lighting.html
upload: ydc-lighting.html
- url: /ydc-lighting_design_monochromenature.html
mime_type: text/html
static_files: ydc-lighting_design_monochromenature.html
upload: ydc-lighting_design_monochromenature.html
- url: /ydc-manifesto.html
mime_type: text/html
static_files: ydc-manifesto.html
upload: ydc-manifesto.html
- url: /ydc-members.html
mime_type: text/html
static_files: ydc-members.html
upload: ydc-members.html
- url: /ydc-news.html
mime_type: text/html
static_files: ydc-news.html
upload: ydc-news.html
- url: /ydc-page_under_construction.html
mime_type: text/html
static_files: ydc-page_under_construction.html
upload: ydc-page_under_construction.html
- url: /ydc-pictures.html
mime_type: text/html
static_files: ydc-pictures.html
upload: ydc-pictures.html
- url: /ydc-product.html
mime_type: text/html
static_files: ydc-product.html
upload: ydc-product.html
- url: /ydc-product_design-ciabattalibro.html
mime_type: text/html
static_files: ydc-product_design-ciabattalibro.html
upload: ydc-product_design-ciabattalibro.html
- url: /ydc-product_design-dog_s_tent.html
mime_type: text/html
static_files: ydc-product_design-dog_s_tent.html
upload: ydc-product_design-dog_s_tent.html
- url: /ydc-product_design-kubo.html
mime_type: text/html
static_files: ydc-product_design-kubo.html
upload: ydc-product_design-kubo.html
libraries:
- name: webapp2
version: "2.5.2"
改进性能 1.1版本的编译器速度比所有之前发布的版本快4倍。阅读这篇博客里的有关图表 更好的模块可见性规则 TypeScript现在只在使用--declaration标记时才严格强制模块里类型的可见性。这在Angular里很有用,例如: module MyControllers { interface ZooScope extends ng.IScope { animals: Anim
Qt历史 Qt4自2005年发布已为成千上万的应用程序甚至桌面操作系统、移动操作系统提供了稳定、可靠的开发框架。计算机用户的使用模式近年发生了变化,用户正在从传统PC转向笔记本电脑或智能手机。传统PC被越来越多的触摸屏设备取代,计算机的用户体验模型也在跟随改变。在这之前Windows UI占据了我们的世界,但现在我们会花更多的时间使用其它的UI语言开发便携式设备用户界面。 Qt4的设计用于满足开发
简介 Loopback 是一个高度可扩展的,开放源码的Node.js框架 通过很少编码实现端到端的REST API. 支持多种数据库: 如 Mongodb, MySql, 和支持 SOAP 和 REST API 的方式 建立模型关联,和对复杂的 api 有访问控制系统 拥有地理定位,文件,以及移动应用推送的服务 轻松创建 Android, iOS, JavaScript 端的 SDK 运行内部部署
这篇文档详细讲述了 Dubbo Admin的结构,部署方式和功能介绍
安装 从GitHub releases下载Chart.js的最新版本 或者使用 Chart.js CDN。 详细的安装说明可以在此安装页面查看。 创建一个图表 Chart.js很容易上手,只需要在页面中引用脚本文件,并创建<canvas>节点即可渲染出图表。 下面的例子创建了一个单数据集的Bar图表。完整的文档可查看使用文档 <canvas id="myChart" width="400" hei
欢迎使用 Cocos Creator 3D 用户手册!本手册包括详尽的使用说明、面向不同职能用户的工作流程和 step by step 的新手教程。能够帮您快速掌握使用 Cocos Creator 3D 开发跨平台游戏的方法。 注意:请在右上角根据您使用的 Cocos Creator 3D 版本选择相应的手册版本。 总导读 使用功能地图快速了解引擎功能 功能地图 图形渲染 材质 光照 粒子系统 U
回顾计算机科学的思想, 提高编程和解决问题的能力。 理解抽象化以及它在解决问题过程中发挥的作用 理解和实现抽象数据类型的概念 回顾 Python 编程语言
1.1.概述 Android是一个为移动设备设计的开源系统。它由Google主导的开放手持设备联盟(Open Handset Alliance)维护,该组织的口号是:“助力移动设备的变革,以更低廉的价格,为用户提供更强大的功能和更好的体验”,而Android正是其理念的核心。 现在,Android正主导着移动领域的一场革命。这是第一个真正与硬件无关的开放系统,使得同一个应用能够轻松兼容于大量不同的