Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- success: function(data) {
- $.each(data, function() {
- $.each(this, function(k, v) {
- //do something with v
- });
- });
- }
- lst1 = [1, 2, 3, 4, 5]
- lst2 = ['a', 'b', 'c', 'd', 'e']
- context = {
- 'labels' : lst1,
- 'sk_labels': lst2
- }
- return HttpResponse(json.dumps(context), content_type='application/json')
Add Comment
Please, Sign In to add comment