from django.contrib.auth import login, logout
from django.shortcuts import render
from django.urls import reverse_lazy
from django.views.generic import CreateView
from . import forms
from . import models 
from django.views.generic import TemplateView
from django.contrib.auth.mixins import(
    LoginRequiredMixin,
    PermissionRequiredMixin
)
# Create your views here.
class SignUp(CreateView):
    form_class = forms.UserCreateForm
    success_url = reverse_lazy('login')
    template_name = 'accounts/signup.html'

class UserProfileInfo(LoginRequiredMixin, TemplateView):
    template_name = 'accounts/profile.html'
