mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-18 04:03:22 +00:00
12 lines
311 B
Python
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)
|
|
|