Python django.contrib.staticfiles.urls 模块,staticfiles_urlpatterns() 实例源码

我们从Python开源项目中,提取了以下1个代码示例,用于说明如何使用django.contrib.staticfiles.urls.staticfiles_urlpatterns()

项目:django-returnfields    作者:podhmo    | 项目源码 | 文件源码
def setup_urlconf(self, router):
        # url
        from django.conf.urls import url, include
        from django.contrib.staticfiles.urls import staticfiles_urlpatterns

        urlpatterns = [
            url(r'^', include(router.urls))
        ]
        urlpatterns += staticfiles_urlpatterns()
        return urlpatterns