mirror of
				https://gitlab.com/animath/si/plateforme.git
				synced 2025-11-04 00:52:03 +01:00 
			
		
		
		
	Create models
This commit is contained in:
		@@ -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/
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user