diff --git a/ljg/core/templates/index.html b/ljg/core/templates/index.html new file mode 100644 index 0000000..e982056 --- /dev/null +++ b/ljg/core/templates/index.html @@ -0,0 +1,13 @@ +{% extends "base.html" %} + +{% block body %} +{% if user.is_authenticated %} +{{ user.email }} +
+{% else %} +Login +{% endif %} +{% endblock %} diff --git a/ljg/core/views.py b/ljg/core/views.py index a99363f..1bfd9f4 100644 --- a/ljg/core/views.py +++ b/ljg/core/views.py @@ -2,4 +2,4 @@ from django.shortcuts import render def index(request): - return render(request, "base.html", {}) + return render(request, "index.html", {})