Sith/core/views/site.py

11 lines
335 B
Python
Raw Normal View History

2015-11-24 15:09:46 +00:00
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.html", {'title': 'Bienvenue!'})
else:
return render(request, "core/index.html", context)