在我将django版本更新为2.0并在运行命令后开始使用虚拟环境:
python manage.py runserver
我的日志有很多行,其中包含与导入xxx_ImagePlugin相关的信息。一切正常 但我不明白为什么每次出现它以及如何从日志中删除它?
日志:
2017-12-27 09:05:49, Importing BmpImagePlugin
2017-12-27 09:05:49, Importing BufrStubImagePlugin
2017-12-27 09:05:49, Importing CurImagePlugin
2017-12-27 09:05:49, Importing DcxImagePlugin
2017-12-27 09:05:49, Importing DdsImagePlugin
2017-12-27 09:05:49, Importing EpsImagePlugin
2017-12-27 09:05:49, Importing FitsStubImagePlugin
2017-12-27 09:05:49, Importing FliImagePlugin
2017-12-27 09:05:49, Importing FpxImagePlugin
2017-12-27 09:05:49, Importing FtexImagePlugin
2017-12-27 09:05:49, Importing GbrImagePlugin
2017-12-27 09:05:49, Importing GifImagePlugin
2017-12-27 09:05:49, Importing GribStubImagePlugin
2017-12-27 09:05:49, Importing Hdf5StubImagePlugin
2017-12-27 09:05:49, Importing IcnsImagePlugin
2017-12-27 09:05:49, Importing IcoImagePlugin
2017-12-27 09:05:49, Importing ImImagePlugin
2017-12-27 09:05:49, Importing ImtImagePlugin
2017-12-27 09:05:49, Importing IptcImagePlugin
2017-12-27 09:05:49, Importing JpegImagePlugin
2017-12-27 09:05:49, Importing Jpeg2KImagePlugin
2017-12-27 09:05:49, Importing McIdasImagePlugin
2017-12-27 09:05:49, Importing MicImagePlugin
2017-12-27 09:05:49, Importing MpegImagePlugin
2017-12-27 09:05:49, Importing MpoImagePlugin
2017-12-27 09:05:49, Importing MspImagePlugin
2017-12-27 09:05:49, Importing PalmImagePlugin
2017-12-27 09:05:49, Importing PcdImagePlugin
2017-12-27 09:05:49, Importing PcxImagePlugin
2017-12-27 09:05:49, Importing PdfImagePlugin
2017-12-27 09:05:49, Importing PixarImagePlugin
2017-12-27 09:05:49, Importing PngImagePlugin
2017-12-27 09:05:49, Importing PpmImagePlugin
2017-12-27 09:05:49, Importing PsdImagePlugin
2017-12-27 09:05:49, Importing SgiImagePlugin
2017-12-27 09:05:49, Importing SpiderImagePlugin
2017-12-27 09:05:49, Importing SunImagePlugin
2017-12-27 09:05:49, Importing TgaImagePlugin
2017-12-27 09:05:49, Importing TiffImagePlugin
2017-12-27 09:05:49, Importing WebPImagePlugin
2017-12-27 09:05:49, Importing WmfImagePlugin
2017-12-27 09:05:49, Importing XbmImagePlugin
2017-12-27 09:05:49, Importing XpmImagePlugin
2017-12-27 09:05:49, Importing XVThumbImagePlugin
2017-12-27 09:05:51, Importing BmpImagePlugin
2017-12-27 09:05:51, Importing BufrStubImagePlugin
2017-12-27 09:05:51, Importing CurImagePlugin
2017-12-27 09:05:51, Importing DcxImagePlugin
2017-12-27 09:05:51, Importing DdsImagePlugin
2017-12-27 09:05:51, Importing EpsImagePlugin
2017-12-27 09:05:51, Importing FitsStubImagePlugin
2017-12-27 09:05:51, Importing FliImagePlugin
2017-12-27 09:05:51, Importing FpxImagePlugin
2017-12-27 09:05:51, Importing FtexImagePlugin
2017-12-27 09:05:51, Importing GbrImagePlugin
2017-12-27 09:05:51, Importing GifImagePlugin
2017-12-27 09:05:51, Importing GribStubImagePlugin
2017-12-27 09:05:51, Importing Hdf5StubImagePlugin
2017-12-27 09:05:51, Importing IcnsImagePlugin
2017-12-27 09:05:51, Importing IcoImagePlugin
2017-12-27 09:05:51, Importing ImImagePlugin
2017-12-27 09:05:51, Importing ImtImagePlugin
2017-12-27 09:05:51, Importing IptcImagePlugin
2017-12-27 09:05:51, Importing JpegImagePlugin
2017-12-27 09:05:51, Importing Jpeg2KImagePlugin
2017-12-27 09:05:51, Importing McIdasImagePlugin
2017-12-27 09:05:51, Importing MicImagePlugin
2017-12-27 09:05:51, Importing MpegImagePlugin
2017-12-27 09:05:51, Importing MpoImagePlugin
2017-12-27 09:05:51, Importing MspImagePlugin
2017-12-27 09:05:51, Importing PalmImagePlugin
2017-12-27 09:05:51, Importing PcdImagePlugin
2017-12-27 09:05:51, Importing PcxImagePlugin
2017-12-27 09:05:51, Importing PdfImagePlugin
2017-12-27 09:05:51, Importing PixarImagePlugin
2017-12-27 09:05:51, Importing PngImagePlugin
2017-12-27 09:05:51, Importing PpmImagePlugin
2017-12-27 09:05:51, Importing PsdImagePlugin
2017-12-27 09:05:51, Importing SgiImagePlugin
2017-12-27 09:05:51, Importing SpiderImagePlugin
2017-12-27 09:05:51, Importing SunImagePlugin
2017-12-27 09:05:51, Importing TgaImagePlugin
2017-12-27 09:05:51, Importing TiffImagePlugin
2017-12-27 09:05:51, Importing WebPImagePlugin
2017-12-27 09:05:51, Importing WmfImagePlugin
2017-12-27 09:05:51, Importing XbmImagePlugin
2017-12-27 09:05:51, Importing XpmImagePlugin
2017-12-27 09:05:51, Importing XVThumbImagePlugin
答案 0 :(得分:1)
我在model.ImageField(需求枕头包)中找到了用途。 枕头包是运行runserver时我得到的所有loggin.debug相关图像的原因。