from django.contrib.auth.forms import UserCreationForm from django import forms from django.contrib.auth.models import User from .models import * class CustomLoginForm(forms.Form): username = forms.CharField(label='Username', max_length=150) password = forms.CharField(label='Password', widget=forms.PasswordInput)