
# -*- coding: utf-8 -*-
from django.shortcuts import render
# import datetime
# import string
# import random
# import base64
# import hashlib
# import hmac
# import json as simplejson
# import time

from django.views.generic import View, FormView, UpdateView, CreateView, DetailView, ListView, TemplateView
# from django.contrib.auth import authenticate, login, logout
# from django.http import HttpResponseRedirect, HttpResponse
# from django.contrib.auth.decorators import login_required
# from django.core.urlresolvers import reverse
# from django.contrib import auth
# from django.contrib.auth.forms import AuthenticationForm
# from django.contrib.auth import REDIRECT_FIELD_NAME, login as auth_login, logout as auth_logout
# from django.utils.decorators import method_decorator
# from django.views.decorators.debug import sensitive_post_parameters
# from django.views.decorators.csrf import csrf_protect
# from django.utils.http import is_safe_url
# from django.views.decorators.cache import never_cache
#
# from django.dispatch import receiver
# from django.shortcuts import redirect
# from django.http import Http404
#
# from django.template import defaultfilters
# from django.template.defaultfilters import slugify

from models import Apunte, Notificacion

def post_list(request):
    print(str("_catasdasdas"))
    return render(request, 'temporio/index.html', {})

# Create your views here.
class Home(TemplateView):
    template_name = 'temporio/index.html'
    def get_context_data(self, **kwargs):
        context = super(Home, self).get_context_data(**kwargs)
        context["aaa"]="asdasasdasd";
        print(str("HOMEEEEEEEEEEEEEEEE"))
        return context

class TableroProfesor(TemplateView):
    template_name = 'temporio/profesor.html'
    model=Notificacion;
    def get_context_data(self, **kwargs):
        context = super(TableroProfesor, self).get_context_data(**kwargs);
        return context
