from django.shortcuts import render
from django.views.generic import ListView, DetailView
from .models import Post, Author

# Create your views here.
def index(request):
    return render(request, 'blog/index.html')

def contact(request):
    return render(request, 'blog/contact.html')

class PostList(ListView):
    model = Post

class PostDetail(DetailView):
    model = Post

class AuthorList(ListView):
    model = Author

class AuthorDetail(DetailView):
    model = Author

f8f9f7be7f643133bd09f8a4ff42b817fb610cea
<mask token>


class AuthorList(ListView):
    model = Author


class AuthorDetail(DetailView):
    model = Author

<mask token>


class PostList(ListView):
    <mask token>


class PostDetail(DetailView):
    model = Post


class AuthorList(ListView):
    model = Author


class AuthorDetail(DetailView):
    model = Author

<mask token>


class PostList(ListView):
    model = Post


class PostDetail(DetailView):
    model = Post


class AuthorList(ListView):
    model = Author


class AuthorDetail(DetailView):
    model = Author

<mask token>


def index(request):
    return render(request, 'blog/index.html')


<mask token>


class PostList(ListView):
    model = Post


class PostDetail(DetailView):
    model = Post


class AuthorList(ListView):
    model = Author


class AuthorDetail(DetailView):
    model = Author

from django.shortcuts import render
from django.views.generic import ListView, DetailView
from .models import Post, Author

# Create your views here.
def index(request):
    return render(request, 'blog/index.html')

def contact(request):
    return render(request, 'blog/contact.html')

class PostList(ListView):
    model = Post

class PostDetail(DetailView):
    model = Post

class AuthorList(ListView):
    model = Author

class AuthorDetail(DetailView):
    model = Author
