File tree Expand file tree Collapse file tree 10 files changed +10854
-47
lines changed Expand file tree Collapse file tree 10 files changed +10854
-47
lines changed Original file line number Diff line number Diff line change 11def get_form ():
2- from captcha .fields import ReCaptchaField
2+ from django_recaptcha .fields import ReCaptchaField
33 from django import forms
44 from django_comments .forms import CommentForm
55
Original file line number Diff line number Diff line change 22
33from django import forms
44from django .contrib import admin
5- from django .utils .translation import ugettext_lazy as _
5+ from django .utils .translation import gettext_lazy as _
66
77from .models import Keyword
88
Original file line number Diff line number Diff line change 11from django .conf import settings
22from django .db import models
3- from django .utils .translation import ugettext_lazy as _
3+ from django .utils .translation import gettext_lazy as _
44
55
66class Keyword (models .Model ):
Original file line number Diff line number Diff line change @@ -53,15 +53,15 @@ def user_url(user):
5353 "allauth" ,
5454 "allauth.account" ,
5555 "allauth.socialaccount" ,
56- "allauth.socialaccount.providers.bitbucket " ,
56+ "allauth.socialaccount.providers.bitbucket_oauth2 " ,
5757 "allauth.socialaccount.providers.github" ,
5858 "allauth.socialaccount.providers.twitter" ,
5959 "base" ,
6060 "cab" ,
6161 "comments_spamfighter" ,
6262 "ratings" ,
6363 "taggit" ,
64- "captcha " ,
64+ "django_recaptcha " ,
6565 "django_extensions" ,
6666 "rest_framework" ,
6767 "django_htmx" ,
@@ -80,6 +80,7 @@ def user_url(user):
8080 "django.contrib.flatpages.middleware.FlatpageFallbackMiddleware" ,
8181 "ratelimitbackend.middleware.RateLimitMiddleware" ,
8282 "django_htmx.middleware.HtmxMiddleware" ,
83+ "allauth.account.middleware.AccountMiddleware" ,
8384)
8485
8586TEMPLATES = [
Original file line number Diff line number Diff line change 99 "django.contrib.auth.middleware.AuthenticationMiddleware" ,
1010 "django.contrib.messages.middleware.MessageMiddleware" ,
1111 "django_htmx.middleware.HtmxMiddleware" ,
12+ "allauth.account.middleware.AccountMiddleware" ,
1213)
1314
1415
2425 "allauth" ,
2526 "allauth.account" ,
2627 "allauth.socialaccount" ,
27- "allauth.socialaccount.providers.bitbucket " ,
28+ "allauth.socialaccount.providers.bitbucket_oauth2 " ,
2829 "allauth.socialaccount.providers.github" ,
2930 "allauth.socialaccount.providers.twitter" ,
3031 "base" ,
Load Diff Large diffs are not rendered by default.
You can’t perform that action at this time.
0 commit comments