Re: Storing HTML in DB using DJANGO

2019-04-21 Thread Sipum Mishra
thank you all guys for suggesting. can I plz get any tutorial for these so that I can learn that properly. On Sun, 21 Apr 2019 at 21:34, Joel Mathew wrote: > I fail to see the purpose of that. Serialisation is sufficient. Big > projects like wordpress store even big blog posts, which is html li

Re: Storing HTML in DB using DJANGO

2019-04-21 Thread Joel Mathew
I fail to see the purpose of that. Serialisation is sufficient. Big projects like wordpress store even big blog posts, which is html like this. Sincerely yours, Joel G Mathew On Sun, 21 Apr 2019 at 20:20, Brian M wrote: > What if you convert the html to an array of bytes before storing? > >

Re: Storing HTML in DB using DJANGO

2019-04-21 Thread Brian M
What if you convert the html to an array of bytes before storing? Then you’d convert from bytes array back to string when you retrieve. This way you’d store raw data. > On Apr 21, 2019, at 8:41 AM, Jani Tiainen wrote: > > Well after all, HTML is just plain text... Though you probably want to

Re: Storing HTML in DB using DJANGO

2019-04-21 Thread Jani Tiainen
Well after all, HTML is just plain text... Though you probably want to think to do some sanitization so you won't get nasty injections via html. On Sat, Apr 20, 2019 at 9:09 PM Sipum Mishra wrote: > Hi friends, > > I want to store a html in database using python and need to retrieve that > html

Storing HTML in DB using DJANGO

2019-04-20 Thread Sipum Mishra
Hi friends, I want to store a html in database using python and need to retrieve that html and convert that in to PDF. can u plz suggest me how to store that HTML in DB ? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this