BillBie

导航

2019年7月5日 #

【转载】django 对于外部文件调用model 对象

摘要: 1.对于外部文件直接调用 model 对象的话,会直接报如下错误: django.core.exceptions.ImproperlyConfigured: Requested setting INSTALLED_APPS, but settings are not configured. You 阅读全文

posted @ 2019-07-05 21:36 BillBie 阅读(39) 评论(0) 推荐(0)

Django-模板语言中 {% elif %} 的使用

摘要: 想在django 模板中使用 类似 python 的elif 的作用 直接看示例 {% if record.type == 0 %} 用例层 {% elif record.type == 1%} 接口层 {% elif record.type == 2%} 模块层 {% elif record.ty 阅读全文

posted @ 2019-07-05 10:29 BillBie 阅读(23) 评论(0) 推荐(0)