from django.conf import settings from django.shortcuts import render from django.contrib import messages from django.http import HttpResponse from django.urls import reverse_lazy from django.contrib.auth.models import User from django.contrib.auth import login, logout from django.utils.http import urlsafe_base64_decode from django.contrib.auth.tokens import default_token_generator from django.http import HttpResponseRedirect, HttpResponseBadRequest from django.views.generic import FormView, View, TemplateView, CreateView
from geetest import GeetestLib # https://github.com/GeeTeam/gt-python-sdk from user.forms import UserRegisterForm, UserLoginForm