from django.views.generic import DetailView from models import Country class CountryView(DetailView): model = Country slug_field = 'url' template_name = 'country/country.html'