django-exalted/app/views.py

12 lines
336 B
Python
Raw Permalink Normal View History

from django.shortcuts import render
2020-04-13 00:31:12 +01:00
from django.views.generic.base import TemplateView
from django.views.generic.detail import DetailView
from .models import *
2020-04-13 00:31:12 +01:00
class HomePageView(TemplateView):
template_name = "home.html"
class CharacterDetailView(DetailView):
2020-04-16 20:12:02 +01:00
model = CharacterBase
2020-04-13 00:31:12 +01:00
template_name = "characterDetail.html"