Sith/core/views/site.py
2016-08-10 05:48:06 +02:00

12 lines
311 B
Python

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