views.py 470 Bytes
Newer Older
Gabriel Detraz's avatar
Gabriel Detraz committed
1 2
from django.shortcuts import render
from django.shortcuts import render_to_response, get_object_or_404
Amap's avatar
Amap committed
3
from django.template.context_processors import csrf
Gabriel Detraz's avatar
Gabriel Detraz committed
4 5 6 7 8 9
from django.template import Context, RequestContext, loader
from amap.settings import services_urls

def form(ctx, template, request):
    c = ctx
    c.update(csrf(request))
Amap's avatar
Amap committed
10
    return render(request, template, c)
Gabriel Detraz's avatar
Gabriel Detraz committed
11 12 13 14


def index(request):
    return form({'services_urls': services_urls}, 'amap/index.html', request)