source: MuiscOrganizationSystem/settings.py@ d7662b5

Last change on this file since d7662b5 was d7662b5, checked in by ManuelTrajcev <manueltrajcev7@…>, 3 weeks ago

init

  • Property mode set to 100644
File size: 3.4 KB
Line 
1"""
2Django settings for MuiscOrganizationSystem project.
3
4Generated by 'django-admin startproject' using Django 5.1.3.
5
6For more information on this file, see
7https://docs.djangoproject.com/en/5.1/topics/settings/
8
9For the full list of settings and their values, see
10https://docs.djangoproject.com/en/5.1/ref/settings/
11"""
12
13from pathlib import Path
14
15# Build paths inside the project like this: BASE_DIR / 'subdir'.
16BASE_DIR = Path(__file__).resolve().parent.parent
17
18
19# Quick-start development settings - unsuitable for production
20# See https://docs.djangoproject.com/en/5.1/howto/deployment/checklist/
21
22# SECURITY WARNING: keep the secret key used in production secret!
23SECRET_KEY = "django-insecure-rl(5&kf(ekhmiwh&8+gn&bd_hh#nwuuwhc7obk3-4)iv_17b8_"
24
25# SECURITY WARNING: don't run with debug turned on in production!
26DEBUG = True
27
28ALLOWED_HOSTS = []
29
30
31# Application definition
32
33INSTALLED_APPS = [
34 "django.contrib.admin",
35 "django.contrib.auth",
36 "django.contrib.contenttypes",
37 "django.contrib.sessions",
38 "django.contrib.messages",
39 "django.contrib.staticfiles",
40 "music"
41]
42
43MIDDLEWARE = [
44 "django.middleware.security.SecurityMiddleware",
45 "django.contrib.sessions.middleware.SessionMiddleware",
46 "django.middleware.common.CommonMiddleware",
47 "django.middleware.csrf.CsrfViewMiddleware",
48 "django.contrib.auth.middleware.AuthenticationMiddleware",
49 "django.contrib.messages.middleware.MessageMiddleware",
50 "django.middleware.clickjacking.XFrameOptionsMiddleware",
51]
52
53ROOT_URLCONF = "MuiscOrganizationSystem.urls"
54
55TEMPLATES = [
56 {
57 "BACKEND": "django.template.backends.django.DjangoTemplates",
58 "DIRS": [BASE_DIR / 'templates']
59 ,
60 "APP_DIRS": True,
61 "OPTIONS": {
62 "context_processors": [
63 "django.template.context_processors.debug",
64 "django.template.context_processors.request",
65 "django.contrib.auth.context_processors.auth",
66 "django.contrib.messages.context_processors.messages",
67 ],
68 },
69 },
70]
71
72WSGI_APPLICATION = "MuiscOrganizationSystem.wsgi.application"
73
74
75# Database
76# https://docs.djangoproject.com/en/5.1/ref/settings/#databases
77
78DATABASES = {
79 "default": {
80 # "ENGINE": "django.db.backends.sqlite3",
81 # "NAME": BASE_DIR / "db.sqlite3",
82 'ENGINE': 'django.db.backends.postgresql',
83
84 'NAME': 'chinook',
85
86 'USER': 'postgres',
87
88 'PASSWORD': 'postgres',
89
90 'HOST': 'localhost',
91
92 'PORT': '5432',
93 }
94}
95
96
97# Password validation
98# https://docs.djangoproject.com/en/5.1/ref/settings/#auth-password-validators
99
100AUTH_PASSWORD_VALIDATORS = [
101 {
102 "NAME": "django.contrib.auth.password_validation.UserAttributeSimilarityValidator",
103 },
104 {
105 "NAME": "django.contrib.auth.password_validation.MinimumLengthValidator",
106 },
107 {
108 "NAME": "django.contrib.auth.password_validation.CommonPasswordValidator",
109 },
110 {
111 "NAME": "django.contrib.auth.password_validation.NumericPasswordValidator",
112 },
113]
114
115
116# Internationalization
117# https://docs.djangoproject.com/en/5.1/topics/i18n/
118
119LANGUAGE_CODE = "en-us"
120
121TIME_ZONE = "UTC"
122
123USE_I18N = True
124
125USE_TZ = True
126
127
128# Static files (CSS, JavaScript, Images)
129# https://docs.djangoproject.com/en/5.1/howto/static-files/
130
131STATIC_URL = "static/"
132
133# Default primary key field type
134# https://docs.djangoproject.com/en/5.1/ref/settings/#default-auto-field
135
136DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"
Note: See TracBrowser for help on using the repository browser.