2 Django settings for core project.
4 Generated by 'django-admin startproject' using Django 4.0.3.
6 For more information on this file, see
7 https://docs.djangoproject.com/en/4.0/topics/settings/
9 For the full list of settings and their values, see
10 https://docs.djangoproject.com/en/4.0/ref/settings/
13 from pathlib import Path
15 # Build paths inside the project like this: BASE_DIR / 'subdir'.
16 BASE_DIR = Path(__file__).resolve().parent.parent
19 # Quick-start development settings - unsuitable for production
20 # See https://docs.djangoproject.com/en/4.0/howto/deployment/checklist/
22 # SECURITY WARNING: keep the secret key used in production secret!
23 SECRET_KEY = 'django-insecure-2fb%dk2+69xyki@o7k+7ei@0#n=j23=6-u4ksiyw^s3-1@xtbs'
25 # SECURITY WARNING: don't run with debug turned on in production!
31 # Application definition
34 'django.contrib.admin',
35 'django.contrib.auth',
36 'django.contrib.contenttypes',
37 'django.contrib.sessions',
38 'django.contrib.messages',
39 'django.contrib.staticfiles',
47 'django.middleware.security.SecurityMiddleware',
48 'django.contrib.sessions.middleware.SessionMiddleware',
49 'django.middleware.common.CommonMiddleware',
50 'django.middleware.csrf.CsrfViewMiddleware',
51 'django.contrib.auth.middleware.AuthenticationMiddleware',
52 'django.contrib.messages.middleware.MessageMiddleware',
53 'django.middleware.clickjacking.XFrameOptionsMiddleware',
56 ROOT_URLCONF = 'core.urls'
60 'BACKEND': 'django.template.backends.django.DjangoTemplates',
64 'context_processors': [
65 'django.template.context_processors.debug',
66 'django.template.context_processors.request',
67 'django.contrib.auth.context_processors.auth',
68 'django.contrib.messages.context_processors.messages',
74 WSGI_APPLICATION = 'core.wsgi.application'
78 # https://docs.djangoproject.com/en/4.0/ref/settings/#databases
82 'ENGINE': 'django.db.backends.sqlite3',
83 'NAME': BASE_DIR / 'db.sqlite3',
89 # https://docs.djangoproject.com/en/4.0/ref/settings/#auth-password-validators
91 AUTH_PASSWORD_VALIDATORS = [
93 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
96 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
99 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
102 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
107 # Internationalization
108 # https://docs.djangoproject.com/en/4.0/topics/i18n/
110 LANGUAGE_CODE = 'en-us'
119 # Static files (CSS, JavaScript, Images)
120 # https://docs.djangoproject.com/en/4.0/howto/static-files/
122 STATIC_URL = 'static/'
123 STATIC_ROOT = Path(BASE_DIR.parent, 'static/')
125 # Default primary key field type
126 # https://docs.djangoproject.com/en/4.0/ref/settings/#default-auto-field
128 DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'