确保urlpatterns是path()和/或re_path()实例的列表

时间:2019-11-02 05:12:48

标签: python django python-3.x

我的网址模式有什么问题?

TypeError: 'str' object cannot be interpreted as an integer

错误:

if settings.DEBUG:
    urlpatterns +=  static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT),

0 个答案:

没有答案