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
When we create a superuser, and use the Django admin functionality, and from there try to go to the homepage, we will encounter an issue. This issue tries to address that problem. If anyone is interested, I can give more explanation on this one.
Steps to reproduce:
Create a superuser and login to admin from /admin.
Then go to /.
You'll see an error saying UserProfile object does not exist.
The text was updated successfully, but these errors were encountered:
pls elaborate the issue...
and
context['current_user'] = UserProfile.objects.filter(
user=self.request.user
).first()
this solves the UserProfile object does not exist error
When we create a superuser, and use the Django admin functionality, and from there try to go to the homepage, we will encounter an issue. This issue tries to address that problem. If anyone is interested, I can give more explanation on this one.
Steps to reproduce:
/admin
./
.UserProfile object does not exist
.The text was updated successfully, but these errors were encountered: