You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for taking the time to write this tutorial! We created the template, then this:
With this new template in hand, let’s reload our profile page:
But we never told the view to render the new template. I got it working by replacing return HttpResponse(parsedData) with return render(request, 'app/profile.html', {'data': parsedData}) but if this was my very first tutorial I wouldn't know where to begin to try and figure it out.
On that same note it would be cool if you could explain the view further (like why we have a parsedData and userData with [], {})
The text was updated successfully, but these errors were encountered:
Thanks for taking the time to write this tutorial! We created the template, then this:
But we never told the view to render the new template. I got it working by replacing
return HttpResponse(parsedData)
withreturn render(request, 'app/profile.html', {'data': parsedData})
but if this was my very first tutorial I wouldn't know where to begin to try and figure it out.On that same note it would be cool if you could explain the view further (like why we have a parsedData and userData with [], {})
The text was updated successfully, but these errors were encountered: