mirror of
https://github.com/jazzband/django-admin2.git
synced 2026-03-17 06:30:25 +00:00
14 lines
295 B
Python
14 lines
295 B
Python
#from django.shortcuts import render
|
|
from django.views.generic import ListView, DetailView
|
|
|
|
from .models import Post
|
|
|
|
|
|
class BlogListView(ListView):
|
|
model = Post
|
|
template_name = 'blog_list.html'
|
|
|
|
|
|
class BlogDetailView(DetailView):
|
|
model = Post
|
|
template_name = 'blog_detail.html'
|