我是django的初学者。我想要一个imageField,我的ModelForm可以将上传到upload_to路径的图像保存在我的磁盘中,但是当我通过管理站点时,我看到该图像保存在一个url中,而不是我磁盘上的目录。upload_to imageField中的属性无法保存磁盘上的图像
user_image = models.ImageField(upload_to= '/images/', null=True , blank=True)
setting.py
MEDIA_ROOT = 'C:\...\static'
当我在管理网站的图片点击它会去像这样的网址:
http://127.0.0.1:8000/admin/time_save/userprofile/6/16.png/
我搜索了很多问题,但我没有找到明确的解决方案。 由于提前,