Skip to content

Commit a713dd1

Browse files
author
Guillim
committed
Following Hironsan review, did some change.
1 parent e6702f2 commit a713dd1

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

app/app/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
TEMPLATES = [
8989
{
9090
'BACKEND': 'django.template.backends.django.DjangoTemplates',
91-
'DIRS': [path.join(BASE_DIR, 'server/templates'),path.join(BASE_DIR, 'authentification/templates')],
91+
'DIRS': [path.join(BASE_DIR, 'server/templates'), path.join(BASE_DIR, 'authentification/templates')],
9292
'APP_DIRS': True,
9393
'OPTIONS': {
9494
'context_processors': [

app/authentification/forms.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
from django import forms
22
from django.contrib.auth.forms import UserCreationForm
3-
from django.contrib.auth.models import User
3+
from django.contrib.auth import get_user_model
44

5+
User = get_user_model()
56

67
class SignupForm(UserCreationForm):
78
email = forms.EmailField(max_length=200, help_text='Required')

app/authentification/utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
from django.utils.encoding import force_text
55
from django.utils.http import urlsafe_base64_decode
66
from .tokens import account_activation_token
7-
from django.contrib.auth.models import User
7+
from django.contrib.auth import get_user_model
8+
9+
User = get_user_model()
810

911

1012
def activate(request, uidb64, token):

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ services:
1212
ADMIN_PASSWORD: "password"
1313
ADMIN_EMAIL: "[email protected]"
1414
DATABASE_URL: "postgres://doccano:doccano@postgres:5432/doccano?sslmode=disable"
15-
ALLOW_SIGNUP: "True"
15+
ALLOW_SIGNUP: "False"
1616
ports:
1717
- 8000:8000
1818

0 commit comments

Comments
 (0)