django fetch files

19 views
Skip to first unread message

Hind Djebbar

unread,
Aug 28, 2022, 1:46:54 PM8/28/22
to Django users
can anyone helps me please it does not work 
Capture 1.PNG
Capture2.PNG

Lakshyaraj Dash

unread,
Aug 28, 2022, 1:54:46 PM8/28/22
to django...@googlegroups.com
See if the file field's name in your model matches with f.file.name.
Ex
The name is myfile, so it's f.myfile.name

On Sun, Aug 28, 2022, 23:17 Hind Djebbar <hind.dje...@gmail.com> wrote:
can anyone helps me please it does not work 

--
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/0e99a673-0e5a-4539-ba9b-1b8e55a15544n%40googlegroups.com.

Lakshyaraj Dash

unread,
Aug 28, 2022, 1:55:52 PM8/28/22
to django...@googlegroups.com
If you don't get it you can share the code with met at dashlaksh...@gmail.com .

Thanks and regards
Lakshyaraj Dash

On Sun, Aug 28, 2022, 23:17 Hind Djebbar <hind.dje...@gmail.com> wrote:
can anyone helps me please it does not work 

--

Hind Djebbar

unread,
Aug 28, 2022, 1:59:33 PM8/28/22
to Django users
yeah it's file image_2022-08-28_195920212.png

Lakshyaraj Dash

unread,
Aug 28, 2022, 2:10:11 PM8/28/22
to django...@googlegroups.com
Can you share your code ? at dashlaksh...@gmail.com please.

Hind Djebbar

unread,
Aug 28, 2022, 2:16:46 PM8/28/22
to Django users
here is my code , i'm beginner in django and python so i found difficulties 
thank you 

models.py
Espace_user.html
main.html
views.py
Reply all
Reply to author
Forward
0 new messages