# -*- coding: utf-8 -*-
from django.shortcuts import render
from django.utils.timezone import now
from django.views.generic.edit import FormView
from django.views.generic.base import TemplateView
from django.http import HttpResponseRedirect
from . import models
from django.contrib.auth.decorators import login_required
from django.shortcuts import redirect
import os
import sys
import csv
import datetime
from django.http import HttpResponse


def home(request):
	if request.user.is_authenticated():
	    return render(request, "dummypage.html", {'name': request.user.username})
	else:
		return render(request, "dummypage.html", {'name': "None"})