basics for profile page

This commit is contained in:
vabene1111
2022-07-12 20:57:13 +02:00
parent bf16e61a1f
commit c50efac00e
5 changed files with 103 additions and 2 deletions

View File

@@ -59,6 +59,7 @@ def search(request):
else:
return HttpResponseRedirect(reverse('account_login') + '?next=' + request.path)
def no_groups(request):
return render(request, 'no_groups_info.html')
@@ -158,7 +159,7 @@ def recipe_view(request, pk, share=None):
ViewLog.objects.create(recipe=recipe, created_by=request.user, space=request.space)
return render(request, 'recipe_view.html',
{'recipe': recipe, 'comments': comments, 'comment_form': comment_form, 'share': share,})
{'recipe': recipe, 'comments': comments, 'comment_form': comment_form, 'share': share, })
@group_required('user')
@@ -175,9 +176,10 @@ def meal_plan(request):
def supermarket(request):
return render(request, 'supermarket.html', {})
@group_required('user')
def view_profile(request, user_id):
return render(request, 'supermarket.html', {})
return render(request, 'profile.html', {})
@group_required('user')