db path fixed

This commit is contained in:
Artyom Kravchenko
2021-03-30 23:30:31 +03:00
parent 4f106c4e17
commit d58c1c9fd8
22 changed files with 33 additions and 421 deletions

View File

@@ -13,7 +13,7 @@ import os
from pathlib import Path
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/3.1/howto/deployment/checklist/
@@ -87,7 +87,7 @@ WSGI_APPLICATION = 'access_controller.wsgi.application'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR / 'db'/ 'db.sqlite3'),
'NAME': os.path.join(str(BASE_DIR),'db','zd_db.sqlite3'),
}
}