自定义模块cust.py位于应用aptest目录下

1.编辑settings.py

from aptest import cust

2.编辑views.py

from cust import pc #从cust.py中导入pc类

然后在view中可以直接调用pc.property