You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
878 B
27 lines
878 B
# -*- coding: utf-8 -*-
|
|
from django.core.context_processors import csrf
|
|
from django.shortcuts import render_to_response
|
|
from django.template import RequestContext
|
|
|
|
from exposition.models import Exposition
|
|
def home(request):
|
|
#reg_form = RegistrationFormUniqueEmail()
|
|
#login_form = LoginForm()
|
|
#args = {'reg_form': reg_form, 'login_form': login_form}
|
|
events = Exposition.objects.all()[:3]
|
|
args = {'events': events}
|
|
args.update(csrf(request))
|
|
|
|
return render_to_response('index.html', args, context_instance=RequestContext(request))
|
|
|
|
from django.views.generic import View, ListView, DetailView
|
|
from django.http import HttpResponse
|
|
from exposition.models import Exposition
|
|
from country.models import Country
|
|
from functions.views_help import split_params
|
|
from functions.custom_views import ExpoListView
|
|
|
|
|
|
|
|
class Test(ExpoListView):
|
|
model = Exposition
|
|
|