def profile(request, object_id=None, template_name='youraliss/profile.html'): object = get_one_or_404(Account, local_id=str(request.user.id)) return accounts_detail(request, object.id, template_name)
def user_detail(request, object_id, template_name='enginecab/user_detail.html'): object = get_one_or_404(Account, id=ObjectId(object_id)) return accounts_detail(request, object.id, template_name)