mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-18 12:13:24 +00:00
15 lines
393 B
Python
15 lines
393 B
Python
|
from django.shortcuts import render, redirect, get_object_or_404
|
||
|
from django.http import HttpResponse
|
||
|
from django.db import models
|
||
|
|
||
|
import logging
|
||
|
|
||
|
logging.basicConfig(level=logging.DEBUG)
|
||
|
|
||
|
def index(request, context=None):
|
||
|
if context == None:
|
||
|
return render(request, "core/index.html", {'title': 'Bienvenue!'})
|
||
|
else:
|
||
|
return render(request, "core/index.html", context)
|
||
|
|