app.py 文件源码

python
阅读 23 收藏 0 点赞 0 评论 0

项目:oscar-wagtail-demo 作者: LUKKIEN 项目源码 文件源码
def get_urls(self):
        """
        Override the default get_urls() method to move default Oscar promotions
        from location r'' to r'^promotions/' to free up space for Wagtail's
        wagtailcore serving mechanism.
        """
        urls = super(OscarApplication, self).get_urls()[:-1]
        urls.append(url(r'^promotions/', include(self.promotions_app.urls)),)
        return urls
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号