在 2014年9月7日,下午4:41,Shangui Ren <renshangui@gmail.com> 写道:
os:win7 64bitdatabase:mysqlI use django mdoels to create imagefield field in a table,but when i use "python manage.py sqlall books" command it print the fllowing error:Traceback (most recent call last):File "manage.py", line 10, in <module>execute_from_command_line(sys.argv)File "C:\Python27\lib\site-packages\django\core\management\__init__.py", line399, in execute_from_command_lineutility.execute()File "C:\Python27\lib\site-packages\django\core\management\__init__.py", line392, in executeself.fetch_command(subcommand).run_from_argv(self.argv)File "C:\Python27\lib\site-packages\django\core\management\base.py", line 242,in run_from_argvself.execute(*args, **options.__dict__)File "C:\Python27\lib\site-packages\django\core\management\base.py", line 284,in executeself.validate()File "C:\Python27\lib\site-packages\django\core\management\base.py", line 310,in validatenum_errors = get_validation_errors(s, app)File "C:\Python27\lib\site-packages\django\core\management\validation.py", line 113, in get_validation_errorsfrom django.utils.image import ImageFile "C:\Python27\lib\site-packages\django\utils\image.py", line 154, in <module>Image, _imaging, ImageFile = _detect_image_library()File "C:\Python27\lib\site-packages\django\utils\image.py", line 108, in _detect_image_library_("Neither Pillow nor PIL could be imported: %s") % errdjango.core.exceptions.ImproperlyConfigured: Neither Pillow nor PIL could be imported: No module named Image--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/592ad0ea-47ed-4f8f-9514-5295d4e01238%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment