自定义模块cust.py位于应用aptest目录下
1.编辑settings.py
from aptest import cust
2.编辑views.py
from cust import pc #从cust.py中导入pc类
然后在view中可以直接调用pc.property
自定义模块cust.py位于应用aptest目录下
1.编辑settings.py
from aptest import cust
2.编辑views.py
from cust import pc #从cust.py中导入pc类
然后在view中可以直接调用pc.property
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M