diff --git a/LITReview/LITReview/settings.py b/LITReview/LITReview/settings.py index e8c5916..514b2d8 100644 --- a/LITReview/LITReview/settings.py +++ b/LITReview/LITReview/settings.py @@ -37,6 +37,8 @@ INSTALLED_APPS = [ 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', + 'authentication', + 'reviews', ] MIDDLEWARE = [ @@ -102,7 +104,7 @@ AUTH_PASSWORD_VALIDATORS = [ # Internationalization # https://docs.djangoproject.com/en/5.2/topics/i18n/ -LANGUAGE_CODE = 'en-us' +LANGUAGE_CODE = 'fr-fr' TIME_ZONE = 'UTC' @@ -120,3 +122,7 @@ STATIC_URL = 'static/' # https://docs.djangoproject.com/en/5.2/ref/settings/#default-auto-field DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' + +AUTH_USER_MODEL = 'authentication.User' + + diff --git a/LITReview/authentication/models.py b/LITReview/authentication/models.py index 71a8362..3ccfc56 100644 --- a/LITReview/authentication/models.py +++ b/LITReview/authentication/models.py @@ -1,3 +1,7 @@ from django.db import models +from django.contrib.auth.models import AbstractUser + + +class User(AbstractUser): + account_id = models.CharField(max_length=10, unique=True) -# Create your models here.