IZAAC_BASE - dodanie modelu usera, polaczenia z db, wymaganych bibliotek
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
Jakub K
2023-11-09 18:53:11 +01:00
parent 72c32ce7ee
commit f377181728
3 changed files with 58 additions and 6 deletions

View File

@@ -37,6 +37,8 @@ INSTALLED_APPS = [
"django.contrib.sessions",
"django.contrib.messages",
"django.contrib.staticfiles",
"rest_framework",
"core",
]
MIDDLEWARE = [
@@ -74,13 +76,16 @@ WSGI_APPLICATION = "izaac.wsgi.application"
# https://docs.djangoproject.com/en/4.1/ref/settings/#databases
DATABASES = {
"default": {
"ENGINE": "django.db.backends.sqlite3",
"NAME": BASE_DIR / "db.sqlite3",
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'izaac',
'USER': 'izaac',
'PASSWORD': 'iz@@cPWD@$5',
'HOST': 'postgres-service',
'PORT': '10452',
}
}
# Password validation
# https://docs.djangoproject.com/en/4.1/ref/settings/#auth-password-validators