user model created, no migrations yet

This commit is contained in:
yann 2025-04-18 09:26:18 +02:00
parent 2c5b65f070
commit 9b132bc558
2 changed files with 12 additions and 2 deletions

View File

@ -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'

View File

@ -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.