Re: Read Text file in django

2020-05-27 Thread Mujahid Abbas
; The FileField Must have a function for that >>> Use help(django.models.FileField) >>> It must have some sort of FileField.read() or something like that. >>> Am also a beginner but I think this should work with you . >>> On May 26, 2020 23:34, "Lansana Sangare"

Re: Read Text file in django

2020-05-27 Thread Ammar M. Adam
me sort of FileField.read() or something like that. >> Am also a beginner but I think this should work with you . >> On May 26, 2020 23:34, "Lansana Sangare" wrote: >> >>> Good evening people, >>> i'm a beginner at django, i try to read a text file i

Re: Read Text file in django

2020-05-27 Thread Lansana Sangare
ork with you . > On May 26, 2020 23:34, "Lansana Sangare" wrote: > >> Good evening people, >> i'm a beginner at django, i try to read a text file in django template >> but i only get the data.txt in template. how can i open and read the >> content of the text file

Re: Read Text file in django

2020-05-26 Thread Ammar M. Adam
; i'm a beginner at django, i try to read a text file in django template but > i only get the data.txt in template. how can i open and read the content of > the text file in templates. Below you can see the html section and the > output. Thanks in advance > > Django model: > > clas

Read Text file in django

2020-05-26 Thread Lansana Sangare
Good evening people, i'm a beginner at django, i try to read a text file in django template but i only get the data.txt in template. how can i open and read the content of the text file in templates. Below you can see the html section and the output. Thanks in advance Django model: class