1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-06-21 01:58:23 +02:00

Create models

This commit is contained in:
Yohann D'ANELLO
2020-04-29 04:06:02 +02:00
parent 8cde47bab7
commit 6a3390bb8d
14 changed files with 428 additions and 1 deletions

View File

@ -11,9 +11,13 @@ https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
import sys
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
PROJECT_DIR = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
APPS_DIR = os.path.realpath(os.path.join(BASE_DIR, "apps"))
sys.path.append(APPS_DIR)
# Quick-start development settings - unsuitable for production
@ -37,6 +41,9 @@ INSTALLED_APPS = [
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'member',
'tournament',
]
MIDDLEWARE = [
@ -100,6 +107,8 @@ AUTH_PASSWORD_VALIDATORS = [
},
]
AUTH_USER_MODEL = 'member.TFJMUser'
# Internationalization
# https://docs.djangoproject.com/en/3.0/topics/i18n/