8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-12-26 00:43:46 +00:00
re2o/re2o/views.py
2016-07-19 03:12:48 +02:00

14 lines
511 B
Python

from django.shortcuts import render
from django.shortcuts import render_to_response, get_object_or_404
from django.core.context_processors import csrf
from django.template import Context, RequestContext, loader
from re2o.settings import services_urls
def form(ctx, template, request):
c = ctx
c.update(csrf(request))
return render_to_response(template, c, context_instance=RequestContext(request))
def index(request):
return form({'services_urls': services_urls}, 're2o/index.html', request)