-
[Django] string 혹은 bytes 를 content file로 managing 해주자Python/Django 2021. 12. 18. 14:31
https://docs.djangoproject.com/en/4.0/ref/files/file/
The File object | Django documentation | Django
Django The web framework for perfectionists with deadlines. Overview Download Documentation News Community Code Issues About ♥ Donate
docs.djangoproject.com
ContentFile의 source code Bytes를 가지고 ConentFile을 이용해서 ImagField를 저장하는 코드 ImageField.save()의 arguments는 name, content, save=True이다 admin panel에서 본 file 성공! 'Python > Django' 카테고리의 다른 글
[Django]드디어 모양 나오는 중! (0) 2021.12.19 [Django] 쉽게 User을 Create 해보자 UserCreationForm (0) 2021.12.18 [Python] IntegrityError: NOT NULL constraint failed: users_user.username (0) 2021.12.18 [Python] Django 비밀번호 암호화해서 저장하기 set_password (0) 2021.12.16 [Python] Django FormView 와 View를 상속받아 로그인 로그아웃 구현하기 (0) 2021.12.16