How to save a table in a cell in django models.

24 views
Skip to first unread message

Billu

unread,
Dec 2, 2015, 3:01:31 AM12/2/15
to Django users
What I want to do is generate a HTML table (alongwith other data viz. images, text) when somebody opens a page.

So how would I save a table, i.e, what would be the keyword for it eg. CharField, IntegerField. 

I've googled and people have written that you need to save XML data in the database cell. If so how to do that? 

Or should I just save comma separated text and work with that, although I guess that may be a little difficult as there are bullets and sub-bullets in one of the columns. 

Timothy W. Cook

unread,
Dec 2, 2015, 3:29:16 AM12/2/15
to django...@googlegroups.com
​If you are just generating a table to be included later in a web page, I would store them in a  TextField.  If you are generating complete web pages that you want to serve statically then you can use a ​FileField. 


--

============================================
Timothy Cook
LinkedIn Profile:http://www.linkedin.com/in/timothywaynecook

Reply all
Reply to author
Forward
0 new messages