(request)
return render(request, 'admin_index.html', context=context)
Administrative view. Lists the admin project and job.
Administrative view. Lists the admin project and job.
Administrative view . Lists the admin project and job .
def site_admin(request):
    '''
    Administrative view. Lists the admin project and job.
    '''
    jobs = Job.objects.order_by('-pk')[:200]
    context = dict(jobs=jobs, active="admin")

    return render(request, 'admin_index.html', context=context)
def site_admin ( request ) : jobs = Job . objects . order_by ( '-pk' ) [ : 200 ] context = dict ( jobs = jobs , active = "admin" ) return render ( request , 'admin_index.html' , context = context )