views.py 260 Bytes
Newer Older
1
from django.shortcuts import render
2 3 4 5 6 7 8 9 10 11 12
from django.views.generic import TemplateView, ListView

from .models import Job

class Index(TemplateView):
    template_name = 'jobs/index.html'


class JobList(ListView):
    context_object_name = 'jobs'
    model = Job
13