DrkSephy / DrkSephy/django-tutorial

Profile.html isn't added to views

Open
#4 1 comment 3 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
70
Forks
17
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.