handlers:
- url: /stylesheets
static_dir: stylesheets
- url: /.*
script: myapp.application
class DeleteRecord(BaseHandler):
def get(self, record_id):
# do something
application = webapp2.WSGIApplication([
('/', MainPage),
('/home', HomePage),
('/error_message', ErrorMessage),
webapp2.Route(r'/delete_record/<record_id>', DeleteRecord),
('/sign_out', SignOut),
当&#34; / delete_record / record_id&#34;被称为,代码执行良好,但它无法读取保存在&#34; / stylesheets&#34; (=网页上的css图像损坏)。
需要修复什么?谢谢:))