关于django项目静态文件的使用

先看我的目录:
图片说明

首先我不是想把static文件用于html等,只有我的faceIdentify.py文件需要导入2个静态文件:

 redictor = dlib.shape_predictor("shape_predictor_68_face_landmarks.dat")
face_rec_model = dlib.face_recognition_model_v1("dlib_face_recognition_resnet_model_v1.dat")

我再setting里配置了:

 STATIC_URL = '/static/'
STATICFILES_DIRS = os.path.join(BASE_DIR, 'static')

结果是一运行项目就会报错说找不到文件。
RuntimeError: Unable to open shape_predictor_68_face_landmarks.dat
网上教程大都是把静态文件用于html等,我只是加载一下,但不会怎么弄,求大神指点,万分感谢!!!

https://code.ziqiangxuetang.com/django/django-static-files.html