"""
Django settings for test_project project.

For more information on this file, see
https://docs.djangoproject.com/en/stable/topics/settings/

For the full list of settings and their values, see
https://docs.djangoproject.com/en/stable/ref/settings/
"""

# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
import os

BASE_DIR = os.path.dirname(os.path.dirname(__file__))


# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/stable/howto/deployment/checklist/

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = '(&7)ub7ecukla=wzzb1h-u*x3l(93-=r*edcod@%)zn=v7u+@f'

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True

ALLOWED_HOSTS = []


# Application definition

INSTALLED_APPS = [
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'behave_django',
    'test_app',
]

MIDDLEWARE = [
    'django.middleware.security.SecurityMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.middleware.common.CommonMiddleware',
    'django.middleware.csrf.CsrfViewMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.contrib.messages.middleware.MessageMiddleware',
    'django.middleware.clickjacking.XFrameOptionsMiddleware',
]

TEMPLATES = [
    {
        'BACKEND': 'django.template.backends.django.DjangoTemplates',
        'DIRS': [],
        'APP_DIRS': True,
        'OPTIONS': {
            'debug': DEBUG,
            'context_processors': [
                'django.contrib.auth.context_processors.auth',
                'django.contrib.messages.context_processors.messages',
            ],
        },
    },
]

ROOT_URLCONF = 'test_project.urls'

WSGI_APPLICATION = 'test_project.wsgi.application'


# Database
# https://docs.djangoproject.com/en/stable/ref/settings/#databases

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.sqlite3',
        'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
    }
}

# Internationalization
# https://docs.djangoproject.com/en/stable/topics/i18n/

LANGUAGE_CODE = 'en-us'

TIME_ZONE = 'UTC'

USE_I18N = True

USE_L10N = True

USE_TZ = True


# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/stable/howto/static-files/

STATIC_URL = '/static/'

@@ -250,16 +250,42 @@
 s/%0A%22%22%22%0A%0A
+from pathlib import Path%0A%0A
 # Build 
@@ -324,101 +324,78 @@
 is: 
-os.path.join(BASE_DIR, ...)%0Aimport os%0A%0ABASE_DIR = os.path.dirname(os.path.dirname(__file__))%0A
+BASE_DIR / 'subdir'.%0ABASE_DIR = Path(__file__).resolve().parent.parent
 %0A%0A# 
@@ -1672,16 +1672,138 @@
 ors': %5B%0A
+                'django.template.context_processors.debug',%0A                'django.template.context_processors.request',%0A
         
@@ -1853,24 +1853,24 @@
 sors.auth',%0A
-
             
@@ -2052,17 +2052,16 @@
 ation'%0A%0A
-%0A
 # Databa
@@ -2230,29 +2230,16 @@
 E': 
-os.path.join(
 BASE_DIR
 , 'd
@@ -2234,17 +2234,18 @@
 BASE_DIR
-,
+ /
  'db.sql
@@ -2249,17 +2249,16 @@
 sqlite3'
-)
 ,%0A    %7D%0A
@@ -2364,17 +2364,16 @@
 'en-us'%0A
-%0A
 TIME_ZON
@@ -2382,17 +2382,16 @@
 = 'UTC'%0A
-%0A
 USE_I18N
@@ -2402,26 +2402,8 @@
 rue%0A
-%0AUSE_L10N = True%0A%0A
 USE_
@@ -2413,17 +2413,16 @@
 = True%0A%0A
-%0A
 # Static
@@ -2518,16 +2518,16 @@
 files/%0A%0A
-
 STATIC_U
@@ -2542,8 +2542,172 @@
 tatic/'%0A
+%0A# Default primary key field type%0A# https://docs.djangoproject.com/en/stable/ref/settings/#default-auto-field%0A%0ADEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'%0A

Align test project settings with current Django versions (3.2/4.0)