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 1
1
def get_form ():
2
- from captcha .fields import ReCaptchaField
2
+ from django_recaptcha .fields import ReCaptchaField
3
3
from django import forms
4
4
from django_comments .forms import CommentForm
5
5
Original file line number Diff line number Diff line change 2
2
3
3
from django import forms
4
4
from django .contrib import admin
5
- from django .utils .translation import ugettext_lazy as _
5
+ from django .utils .translation import gettext_lazy as _
6
6
7
7
from .models import Keyword
8
8
Original file line number Diff line number Diff line change 1
1
from django .conf import settings
2
2
from django .db import models
3
- from django .utils .translation import ugettext_lazy as _
3
+ from django .utils .translation import gettext_lazy as _
4
4
5
5
6
6
class Keyword (models .Model ):
Original file line number Diff line number Diff line change @@ -53,15 +53,15 @@ def user_url(user):
53
53
"allauth" ,
54
54
"allauth.account" ,
55
55
"allauth.socialaccount" ,
56
- "allauth.socialaccount.providers.bitbucket " ,
56
+ "allauth.socialaccount.providers.bitbucket_oauth2 " ,
57
57
"allauth.socialaccount.providers.github" ,
58
58
"allauth.socialaccount.providers.twitter" ,
59
59
"base" ,
60
60
"cab" ,
61
61
"comments_spamfighter" ,
62
62
"ratings" ,
63
63
"taggit" ,
64
- "captcha " ,
64
+ "django_recaptcha " ,
65
65
"django_extensions" ,
66
66
"rest_framework" ,
67
67
"django_htmx" ,
@@ -80,6 +80,7 @@ def user_url(user):
80
80
"django.contrib.flatpages.middleware.FlatpageFallbackMiddleware" ,
81
81
"ratelimitbackend.middleware.RateLimitMiddleware" ,
82
82
"django_htmx.middleware.HtmxMiddleware" ,
83
+ "allauth.account.middleware.AccountMiddleware" ,
83
84
)
84
85
85
86
TEMPLATES = [
Original file line number Diff line number Diff line change 9
9
"django.contrib.auth.middleware.AuthenticationMiddleware" ,
10
10
"django.contrib.messages.middleware.MessageMiddleware" ,
11
11
"django_htmx.middleware.HtmxMiddleware" ,
12
+ "allauth.account.middleware.AccountMiddleware" ,
12
13
)
13
14
14
15
24
25
"allauth" ,
25
26
"allauth.account" ,
26
27
"allauth.socialaccount" ,
27
- "allauth.socialaccount.providers.bitbucket " ,
28
+ "allauth.socialaccount.providers.bitbucket_oauth2 " ,
28
29
"allauth.socialaccount.providers.github" ,
29
30
"allauth.socialaccount.providers.twitter" ,
30
31
"base" ,
Load Diff Large diffs are not rendered by default.
You can’t perform that action at this time.
0 commit comments