【问题标题】:Pythonanywhere, point default app to my app instead of welcome--web2pyPythonanywhere,将默认应用程序指向我的应用程序而不是 Welcome--web2py
【发布时间】:2015-01-05 20:34:09
【问题描述】:

我想这是一个简单的问题,如何将默认应用程序指向我的应用程序而不是 pythonanywhere 中的欢迎应用程序?使用 Web2py 应用程序。

【问题讨论】:

    标签: web2py pythonanywhere


    【解决方案1】:

    如here 所述,有多种选择。对于 URL 重写选项,在您的 routes.py 文件中包含以下内容:

    routers = dict(
        BASE = dict(
            default_application = 'myapp'
        )
    )
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-08-23
      • 1970-01-01
      • 2019-12-25
      • 1970-01-01
      • 1970-01-01
      • 2012-09-21
      • 2020-04-05
      • 2015-11-24
      相关资源
      最近更新 更多