@login_required(login_url='/admin-panel/login/')
def profile(request):
    context = {}
    context['segment'] = 'profile'
    html_template = loader.get_template('page-user.html')
    return HttpResponse(html_template.render(context, request))
@login_required(login_url='/admin-panel/login/')
def profile(request):
    context = {}
    context['segment'] = 'profile'
    html_template = loader.get_template('page-user.html')
    return HttpResponse(html_template.render(context, request))