Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Profile.html isn't added to views #4

Open
rosiecakes opened this issue Apr 9, 2016 · 1 comment
Open

Profile.html isn't added to views #4

rosiecakes opened this issue Apr 9, 2016 · 1 comment

Comments

@rosiecakes
Copy link

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 [], {})

@aphid308
Copy link

aphid308 commented Oct 9, 2017

Bumping this as it still isn't fixed. I corrected in the same way, but a beginner would have no clue how to render to the appropriate template.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants