Skip to content Skip to sidebar Skip to footer

Understanding Django/rest/js Code Functionality

I have the following code in my website: editUsers: function editUsers(id) { loadUsers(false, id, showUsers, true); } loadUsers:

Solution 1:

I figured this out when I dug deep into the code. Turns out I had a syntax error which I completely missed when writting the code.

When copy pasting the code from a different page, I copied the variable name as well. My HTML looked like this:

<divclass="row"><divclass="col-xs-6">{% render_field foo_form.one bar_style %}</div><divclass="col-xs-6">{% render_field foo_form.two bar_style %}</div></div>

When it should have looked like this:

<divclass="row"><divclass="col-xs-6">{% render_field foo_form.one foo_style %}</div><divclass="col-xs-6">{% render_field foo_form.two foo_style %}</div></div>

I didn't see the style of importance, since it was defined as an empty list, so I completely missed the error.

Post a Comment for "Understanding Django/rest/js Code Functionality"