0👍
Summarize
If you want to serialize into json each row from table
example:
arr = [ [col1, col2, col3], [col1, col2, col3], [col1, col2, col3] ]
use
Entry.objects.values_list()
and
json.dumps(list(entries))
- [Answer]-Lettuce django integration
- [Answer]-Accessing Foreign Key values from a foreign key referenced model in django
- [Answer]-How to use the parameter passed through url in validation of form
- [Answer]-How to start a django app
- [Answer]-Django acces the setting given in –settings argument on runserver in program
Source:stackexchange.com