def index_view(request): if request.method == 'GET': page = request.GET.get('page', 1) obj = ClientObject(request.user) context = { 'user': obj.get_user(), 'profile': obj.get_user_profile(), 'client': obj.get_user_client(), 'counts': obj.get_counts(), 'balance': obj.get_client_balance(), 'projects': Pagination(obj.get_client_projects(), 10).get_page(page), 'messages': [ get_status_message(get_message_info(request), obj.language), { 'message': obj.get_error_message(), 'code': 'danger' } ], 'dictionary': get_language_dictionary(obj.language), } return render(request, 'project/index.html', context) raise Http404
def index_view(request): if request.method == 'GET': obj = ClientObject(request.user) context = { 'user': obj.get_user(), 'profile': obj.get_user_profile(), 'client': obj.get_user_client(), 'counts': obj.get_counts(), 'balance': obj.get_client_balance(), 'projects': obj.get_notified_projects(), 'hosting': obj.get_notified_hosting(), 'consults': obj.get_notified_consults(), 'messages': [ get_status_message(get_message_info(request), obj.language), { 'message': obj.get_error_message(), 'code': 'danger' } ], 'dictionary': get_language_dictionary(obj.language), } return render(request, 'home/index.html', context) raise Http404