我正在尝试将CSS样式添加到我要发送的html电子邮件中,所以我使用了django-inlinecss 0.3.0,但我一直收到这个错误: The joined path (C:\css\bootstrap.css) is located outside of the base path component (C:\Users\User\Desktop\static_root) 在我的模板中,我使用了以下内容:(VENV_PATH, 'static_root')
MEDIA_URL = '/media/
最初,我的源图像在我的静态目录中,由于缩略图包希望将它们生成到我的媒体目录中,我认为这就是我收到的SuspiciousFileOperation错误的原因。没问题,我只是把我的图片拷贝到我的媒体目录中,我以为这会解决这个问题,但是问题仍然存在。 据我所知,相对路径和完整路径似乎存在问题?of the base path component (/home/username/django/first
class Meta: ('survey', 'identifier'),我还有一个上传图像文件的表单然而,将InMemoryUploadedFile保存到模型的操作在SuspiciousFileOperation中失败,并向我展示了:连接路径(C:/</identifierimages/%Y/%m/>)位于</e