Se adiciona autenticación a django #30

Merged
mono merged 6 commits from add_authentication_#29 into main 2025-12-13 17:35:35 -05:00
Showing only changes of commit e6d2160d2e - Show all commits

View File

@@ -0,0 +1,15 @@
from django.views.generic import TemplateView
from django.contrib.auth.mixins import LoginRequiredMixin
class ProfileView(LoginRequiredMixin, TemplateView):
template_name = 'registration/profile.html'
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
context['user'] = self.request.user
return context
class StartView(TemplateView):
template_name = 'start.html'