How Upload Image Html File To save DataBase

조회수 16회
읽지 않은 첫 메시지로 건너뛰기

kkwaq...@gmail.com

읽지 않음,
2020. 9. 15. 오후 3:50:0020. 9. 15.
받는사람 Django users
Problem :- I have Create table and add ImageField , i wanna upload_image Front-end  and save database..


html file: But Image Not save 
I am upload using database


u.JPG
models.py

i.JPG

Html Coding file
j.JPG

urls.py

g.JPG




waqar khan

읽지 않음,
2020. 9. 16. 오전 4:08:3820. 9. 16.
받는사람 django...@googlegroups.com
I am Using dataBase Sql

--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/7bcbd386-354a-40fd-87dc-2e9d83b11fa6n%40googlegroups.com.

waqar khan

읽지 않음,
2020. 9. 16. 오전 4:13:1120. 9. 16.
받는사람 django...@googlegroups.com
s.JPG

Please Guys Reply Me .....

RANGA BHARATH JINKA

읽지 않음,
2020. 9. 16. 오전 4:22:0520. 9. 16.
받는사람 django...@googlegroups.com
Hi,

Store the images in a folder.
Store the images folder path in the database.
Don't store the images directly in db.
It is not a good practice.
Instead use aws for storing images.

Follow this tutorial series.


All the best



--
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

RANGA BHARATH JINKA

읽지 않음,
2020. 9. 16. 오전 4:24:4020. 9. 16.
받는사람 django...@googlegroups.com
Check django documentation to store images to the folder.

Use upload_to in models.py

You have to update your models.

All the best
전체답장
작성자에게 답글
전달
새 메시지 0개