django静态预编译器的编译问题

Compilation problems with django static precompiler

我正在尝试编译我的 scss 文件,这是我遇到的错误:

Exception Value: relation "static_precompiler_dependency" does not exist

这是我的 html 头脑中的内容:

<link rel="stylesheet" type="text/css" href="{% static "css/main.scss"|compile %}">

在我的 setting.py 中:

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

我可以看到 COMPILED 文件夹。但是仍然有那个异常错误

安装后好像还没有迁移

https://github.com/andreyfedoseev/django-static-precompiler/blob/master/static_precompiler/models.py

它有一个名为 Dependency 的模型。该模型用于导入的 scss 个文件。