Sith/core/views/site.py
2016-02-01 17:35:55 +01:00

11 lines
337 B
Python

from django.shortcuts import render, redirect, get_object_or_404
from django.http import HttpResponse
from django.db import models
def index(request, context=None):
if context == None:
return render(request, "core/index.jinja", {'title': 'Bienvenue!'})
else:
return render(request, "core/index.jinja", context)