user model created, no migrations yet
This commit is contained in:
parent
2c5b65f070
commit
9b132bc558
@ -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'
|
||||
|
||||
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user