[ADDED] SITE_URLto test settings

This commit is contained in:
Peter Pfeufer
2022-09-07 15:31:22 +02:00
parent 89ef4f4cbc
commit 9b9c2ddc04
2 changed files with 50 additions and 44 deletions

View File

@@ -10,17 +10,20 @@ from allianceauth.project_template.project_name.settings.base import *
CELERY_ALWAYS_EAGER = True # Forces celery to run locally for testing
ROOT_URLCONF = 'tests.urls'
ROOT_URLCONF = "tests.urls"
SITE_URL = "https://example.com"
CSRF_TRUSTED_ORIGINS = [SITE_URL]
CACHES = {
"default": {
"BACKEND": "django_redis.cache.RedisCache",
"LOCATION": "redis://127.0.0.1:6379/1"
"LOCATION": "redis://127.0.0.1:6379/1",
}
}
PASSWORD_HASHERS = [
'django.contrib.auth.hashers.MD5PasswordHasher',
"django.contrib.auth.hashers.MD5PasswordHasher",
]
LOGGING = None # Comment out to enable logging for debugging