-
- # -*- coding: utf-8 -*-
- from __future__ import unicode_literals
-
- from django.shortcuts import render
-
- # Create your views here.
-
- from django.http import HttpResponse
-
- #def index(requests):
- # return HttpResponse("<h2>HEY!</h2>")
-
- def index(requests):
- return render(requests, 'webapp/header.html')
-
- def header(requests):
- return render(requests, 'webapp/home.html')
-
-
-
- import csv
-
- from django.shortcuts import render
-
-
- def display_csv(request):
- with open('personal/E0.csv') as fin:
- data = list(csv.reader(fin))
- return render(request, 'webapp/Home.html', {'records': data})
-