from django.shortcuts import render, get_object_or_404
from django.http import HttpResponse
from django.template import RequestContext, loader
from django.utils import timezone

from .models import Conf

# Create your views here.

def index(request):
    template = loader.get_template('confs/index.html')
    conf_list = Conf.objects.all()
    future_confs = conf_list.exclude(conf_date__lt=timezone.now())
    conf_list = conf_list.exclude(conf_date__gt=timezone.now())
    context = RequestContext(request, {'conf_list': conf_list, 'future_confs':
        future_confs})
    return HttpResponse(template.render(context))

def details(request, conf_id):
    template = loader.get_template('confs/details.html')
    conf = get_object_or_404(Conf, pk=conf_id)
    context = RequestContext(request, {'conf': conf})
    return HttpResponse(template.render(context))

92cd2a5bca6ee4399bbf412cf08e83f111a4acdb
<mask token>

<mask token>


def details(request, conf_id):
    template = loader.get_template('confs/details.html')
    conf = get_object_or_404(Conf, pk=conf_id)
    context = RequestContext(request, {'conf': conf})
    return HttpResponse(template.render(context))

<mask token>


def index(request):
    template = loader.get_template('confs/index.html')
    conf_list = Conf.objects.all()
    future_confs = conf_list.exclude(conf_date__lt=timezone.now())
    conf_list = conf_list.exclude(conf_date__gt=timezone.now())
    context = RequestContext(request, {'conf_list': conf_list,
        'future_confs': future_confs})
    return HttpResponse(template.render(context))


def details(request, conf_id):
    template = loader.get_template('confs/details.html')
    conf = get_object_or_404(Conf, pk=conf_id)
    context = RequestContext(request, {'conf': conf})
    return HttpResponse(template.render(context))

from django.shortcuts import render, get_object_or_404
from django.http import HttpResponse
from django.template import RequestContext, loader
from django.utils import timezone
from .models import Conf


def index(request):
    template = loader.get_template('confs/index.html')
    conf_list = Conf.objects.all()
    future_confs = conf_list.exclude(conf_date__lt=timezone.now())
    conf_list = conf_list.exclude(conf_date__gt=timezone.now())
    context = RequestContext(request, {'conf_list': conf_list,
        'future_confs': future_confs})
    return HttpResponse(template.render(context))


def details(request, conf_id):
    template = loader.get_template('confs/details.html')
    conf = get_object_or_404(Conf, pk=conf_id)
    context = RequestContext(request, {'conf': conf})
    return HttpResponse(template.render(context))

from django.shortcuts import render, get_object_or_404
from django.http import HttpResponse
from django.template import RequestContext, loader
from django.utils import timezone

from .models import Conf

# Create your views here.

def index(request):
    template = loader.get_template('confs/index.html')
    conf_list = Conf.objects.all()
    future_confs = conf_list.exclude(conf_date__lt=timezone.now())
    conf_list = conf_list.exclude(conf_date__gt=timezone.now())
    context = RequestContext(request, {'conf_list': conf_list, 'future_confs':
        future_confs})
    return HttpResponse(template.render(context))

def details(request, conf_id):
    template = loader.get_template('confs/details.html')
    conf = get_object_or_404(Conf, pk=conf_id)
    context = RequestContext(request, {'conf': conf})
    return HttpResponse(template.render(context))
