Sith/core/views/site.py

12 lines
311 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.db import models
2016-08-10 03:48:06 +00:00
import os
2015-11-24 15:09:46 +00:00
def index(request, context=None):
if context == None:
2016-02-01 16:35:55 +00:00
return render(request, "core/index.jinja", {'title': 'Bienvenue!'})
2015-11-24 15:09:46 +00:00
else:
2016-02-01 16:35:55 +00:00
return render(request, "core/index.jinja", context)
2015-11-24 15:09:46 +00:00