konova/user/views.py
mipel 41fff3a687 User menu
* starts user menu implementation
2021-07-08 11:07:33 +02:00

24 lines
507 B
Python

from django.contrib.auth.decorators import login_required
from django.http import HttpRequest
from django.shortcuts import render
from konova.contexts import BaseContext
@login_required
def index_view(request: HttpRequest):
""" Renders the user's data index view
Args:
request ():
Returns:
"""
template = "user/index.html"
context = {
"user": request.user,
}
context = BaseContext(request, context).context
return render(request, template, context)