djangoシェルで画像ファイルを保存しようとしています。djangoシェルで画像/ファイルを保存する
マイmodel.py
は次のとおりです。
class user(models.Model):
name=models.CharField(max_length=20)
pic=models.ImageField()
Everyhingは、管理者とフォームと罰金ですが、私はシェルを使用して画像を保存したい:
あなたは終了します>>>user1=User(name='abc', pic="what to write here")
http://stackoverflow.com/questions/1232434/upload-a-file-from-django-shell – catherine