# -*- coding: utf-8 -*- 

from django.shortcuts import render
from django.http.response import HttpResponse

from .models import Candidate

# Create your views here.
def index(request):
    candidates = Candidate.objects.all()
    context = {'candidates':candidates}
    return render(request,'elections/index.html', context)

def areas(request, area):
    return HttpResponse(area)
36c6f865856bd5d3c25e84e9c04c8d2d24d72ac9
<mask token>

<mask token>


def areas(request, area):
    return HttpResponse(area)

<mask token>


def index(request):
    candidates = Candidate.objects.all()
    context = {'candidates': candidates}
    return render(request, 'elections/index.html', context)


def areas(request, area):
    return HttpResponse(area)

from django.shortcuts import render
from django.http.response import HttpResponse
from .models import Candidate


def index(request):
    candidates = Candidate.objects.all()
    context = {'candidates': candidates}
    return render(request, 'elections/index.html', context)


def areas(request, area):
    return HttpResponse(area)

# -*- coding: utf-8 -*- 

from django.shortcuts import render
from django.http.response import HttpResponse

from .models import Candidate

# Create your views here.
def index(request):
    candidates = Candidate.objects.all()
    context = {'candidates':candidates}
    return render(request,'elections/index.html', context)

def areas(request, area):
    return HttpResponse(area)