python - 如何重命名 Sahana Eden 中的模块?
问题描述
我有这个请求模块。我希望将其重命名为申请。有人可以确认如何更改模块的名称吗?
在 views/index.html 文件中,标题来自 =T("title") 但我不确定这个标题来自哪里。
这是html文件的代码。
<!DOCTYPE html PUBLIC "-//W4C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="{{=T.accepted_language or "en"}}">{{# class="no-js" needed for modernizr }}
<head>{{theme=response.s3.theme}}
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
{{# Always force latest IE rendering engine (even in intranet) & Chrome Frame }}
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
**<title>{{try:}}{{=title}}{{except:}}{{=response.title or settings.get_system_name_short()}}{{pass}}</title>**
{{if response.refresh:}}{{=XML(response.refresh)}}{{pass}}
{{# http://dev.w3.org/html5/markup/meta.name.html }}
<meta name="application-name" content="{{=appname}}" />
{{# Set your site up with Google: http://google.com/webmasters }}
{{# <meta name="google-site-verification" content="" /> }}
{{a="""<!-- Mobile Viewport Fix
j.mp/mobileviewport & davidbcalhoun.com/2010/viewport-metatag
device-width: Occupy full width of the screen in its current orientation
initial-scale = 1.0 retains dimensions instead of zooming out if page height > device height
maximum-scale = 1.0 retains dimensions instead of zooming in if page width < device width
--> """}}
解决方案
推荐阅读
- typescript - 如何使用电子锻造和电子打包器缩小电子应用程序中的打字稿源代码?
- java - 访问嵌套 JSON 对象以存储在 AWS Dynamo 数据库表中
- python - SQLAlchemy:在 JSON 字段中按日期时间过滤
- python - 在实用程序函数中使用 Django request.session
- video-streaming - HTML5 视频无法在 IE11 或 Edge 中播放
- angular - 为 web 和 ionic 应用程序设置不同的“click_action”
- css - 如何在xamarin导航栏顶部制作两个按钮
- html - 在浏览器中将页面缩放到最小时出现文本问题
- entity-framework - Azure 移动应用和 Xamarin 尝试将 1:1 相关实体插入数据库
- javascript - 如何使用 JavaScript 上传到 CatBox?