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
We recently removed some features from the user Profile view and now want to reimplement them using only Django.
This task will be to add a "Following" tab to the user profile view. The tab should link to a sub-path of the user profile, so it is clear to the viewer that they are viewing users that a particular user is following.
Task
All of these tasks should be done in the accounts app.
create a Django view called UserFollowing (in accounts/views.py)
create a URL definition profile/<str:username>/following that renders the UserFollowing view ( in accounts/urls.py)
ensure the UserFollowing view context contains a list of users that the relevant user is following (given via the username in the URL)
note, it should be possible to get profiles that the user follower via user.profile.following or just profile.following
create a template to render the followed usernames - for now, extending base.html so we have consistent branding (in accounts/templates/accounts/user_civis.html)
The text was updated successfully, but these errors were encountered:
Hello, @brylie. I think this issue has been solved already. There is a ProfileFollowing class that renders the users that a specific user is following.
We recently removed some features from the user Profile view and now want to reimplement them using only Django.
This task will be to add a "Following" tab to the user profile view. The tab should link to a sub-path of the user profile, so it is clear to the viewer that they are viewing users that a particular user is following.
Task
All of these tasks should be done in the
accounts
app.UserFollowing
(inaccounts/views.py
)profile/<str:username>/following
that renders theUserFollowing
view ( inaccounts/urls.py
)UserFollowing
view context contains a list of users that the relevant user is following (given via theusername
in the URL)user.profile.following
or justprofile.following
base.html
so we have consistent branding (inaccounts/templates/accounts/user_civis.html
)The text was updated successfully, but these errors were encountered: