摘要: from django.contrib import admin from django.urls import path, include urlpatterns = [ path('admin/', admin.site.urls), # 错误代码演示 # path('axf/', includ 阅读全文
posted @ 2021-06-30 15:37 胸怀丶若谷 阅读(548) 评论(0) 推荐(0)
摘要: 必须是数组或者列表类型 如下所示: # 错误# STATICFILES_DIRS = { # os.path.join(BASE_DIR, 'static'), # }# 正确 STATICFILES_DIRS = [ os.path.join(BASE_DIR, 'static'), ] 阅读全文
posted @ 2021-06-30 15:06 胸怀丶若谷 阅读(281) 评论(0) 推荐(0)