from django.shortcuts import render
from .models import Counties
from django.core.serializers import serialize
from django.http import HttpResponse
from django.views.generic import TemplateView
# Create your views here.
class HomePageView(TemplateView):
    template_name='report/index.html'


def county_datasets(request):
    counties = serialize('geojson', Counties.objects.all())
    return HttpResponse(counties,content_type='json')
11b5824032f131d08139c424c8a1ede0886c485e
<mask token>


class HomePageView(TemplateView):
    <mask token>


<mask token>

<mask token>


class HomePageView(TemplateView):
    template_name = 'report/index.html'


<mask token>

<mask token>


class HomePageView(TemplateView):
    template_name = 'report/index.html'


def county_datasets(request):
    counties = serialize('geojson', Counties.objects.all())
    return HttpResponse(counties, content_type='json')

from django.shortcuts import render
from .models import Counties
from django.core.serializers import serialize
from django.http import HttpResponse
from django.views.generic import TemplateView


class HomePageView(TemplateView):
    template_name = 'report/index.html'


def county_datasets(request):
    counties = serialize('geojson', Counties.objects.all())
    return HttpResponse(counties, content_type='json')

from django.shortcuts import render
from .models import Counties
from django.core.serializers import serialize
from django.http import HttpResponse
from django.views.generic import TemplateView
# Create your views here.
class HomePageView(TemplateView):
    template_name='report/index.html'


def county_datasets(request):
    counties = serialize('geojson', Counties.objects.all())
    return HttpResponse(counties,content_type='json')