Initial start of the context/server model, including test framework.
All checks were successful
pda-new unit tests / Run-unit-tests (push) Successful in 8s
All checks were successful
pda-new unit tests / Run-unit-tests (push) Successful in 8s
This commit is contained in:
@@ -32,6 +32,7 @@ INSTALLED_APPS = [
|
||||
"django.contrib.staticfiles",
|
||||
"allauth",
|
||||
"allauth.account",
|
||||
'pdns',
|
||||
]
|
||||
|
||||
AUTHENTICATION_BACKENDS = [
|
||||
@@ -50,6 +51,7 @@ MIDDLEWARE = [
|
||||
"django.contrib.auth.middleware.AuthenticationMiddleware",
|
||||
"django.contrib.messages.middleware.MessageMiddleware",
|
||||
"django.middleware.clickjacking.XFrameOptionsMiddleware",
|
||||
"django.middleware.locale.LocaleMiddleware",
|
||||
"allauth.account.middleware.AccountMiddleware",
|
||||
]
|
||||
|
||||
@@ -77,7 +79,7 @@ DEFAULT_DB = {
|
||||
'ENGINE': f"django.db.backends.{DB_ENGINE}",
|
||||
}
|
||||
if DB_ENGINE=='sqlite3':
|
||||
DEFAULT_DB['NAME'] = os.path.join('BASE_DIR',
|
||||
DEFAULT_DB['NAME'] = os.path.join(BASE_DIR,
|
||||
env('DB_NAME', default='pdanext.sqlite3'))
|
||||
else:
|
||||
DEFAULT_DB['NAME'] = env('DB_NAME')
|
||||
@@ -93,6 +95,8 @@ DATABASES = {
|
||||
'default': DEFAULT_DB,
|
||||
}
|
||||
|
||||
print('Database: %s' % DATABASES['default']) if DEBUG else None
|
||||
|
||||
AUTH_PASSWORD_VALIDATORS = [
|
||||
{
|
||||
"NAME": "django.contrib.auth.password_validation.UserAttributeSimilarityValidator",
|
||||
|
||||
Reference in New Issue
Block a user