有时候Ctrl+s保存,html代码哥格式会紊乱. 造成这个原因一般是我们基本都在用的一个插件:  解决办法 [方法一]:不用普通保存,用save without format 代码编辑页面---->按F1---->输入save without formatting---->回车 该操作可以用快捷键 **
图片上传首先要是设置settings.py文件(与静态文件设置类似) MEDIA_ROOT = os.path.join(BASE_DIR,'media')MEDIA_URL = '/media/' 1.需要用到imagekit软件安装使用imagekit需要以下三步:1)Install PIL or Pillow. (If you’re using an ImageField in Django, you should have already done this.)2)pip install