diff options
| author | Bobby <[email protected]> | 2023-05-28 00:41:28 -0400 |
|---|---|---|
| committer | Bobby <[email protected]> | 2023-05-28 00:41:28 -0400 |
| commit | 1bb0aa7433ec5f9d1bc6252204c8d6e8a682396c (patch) | |
| tree | 38d17386300c1355418d5bed274f65045c8223ca /users/forms.py | |
| parent | ac5057a31021cf0c72fa9ad02d238fd0184f508e (diff) | |
| download | thatcomputerscientist-1bb0aa7433ec5f9d1bc6252204c8d6e8a682396c.tar.xz thatcomputerscientist-1bb0aa7433ec5f9d1bc6252204c8d6e8a682396c.zip | |
Post show view count now, Django session uses redis cache
Diffstat (limited to 'users/forms.py')
| -rw-r--r-- | users/forms.py | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/users/forms.py b/users/forms.py index 8ce104b1..e10da9f7 100644 --- a/users/forms.py +++ b/users/forms.py @@ -1,15 +1,20 @@ # Registration form +import string +from random import choice + from django import forms from django.contrib.auth.models import User -from users.models import UserProfile from django.template.loader import render_to_string from django.utils.html import strip_tags + +from blog.context_processors import avatar_list +from users.models import UserProfile + from .accountFunctions import store_token from .mail_send import send_email -from random import choice -from blog.context_processors import avatar_list -import string + + class RegisterForm(forms.Form): username = forms.CharField(label='Username', max_length=30, min_length=4) email = forms.EmailField(label='Email') |
