views.py 353 Bytes
Newer Older
Florent Chehab's avatar
Florent Chehab committed
1
2
3
4
5
6
7
8
9
from django.shortcuts import render


def index(request):
    """
    View to to display the index app that contains the JS / CSS
    The "template" displayed is in ./templates/index.html
    """

10
11
12
    # We give the user object so that we can access its id in JS
    # and fetch userData
    return render(request, "index.html", dict(user=request.user))