96ae7ddbc7
And add one file that run it and check all js files are loaded.
26 lines
706 B
Python
26 lines
706 B
Python
import os
|
|
|
|
from umap.settings.base import * # pylint: disable=W0614,W0401
|
|
|
|
SECRET_KEY = "justfortests"
|
|
FROM_EMAIL = "test@test.org"
|
|
EMAIL_BACKEND = "django.core.mail.backends.locmem.EmailBackend"
|
|
STORAGES["staticfiles"][
|
|
"BACKEND"
|
|
] = "django.contrib.staticfiles.storage.StaticFilesStorage"
|
|
|
|
if os.environ.get("GITHUB_ACTIONS", False) == "true":
|
|
DATABASES = {
|
|
"default": {
|
|
"ENGINE": "django.contrib.gis.db.backends.postgis",
|
|
"NAME": "postgres",
|
|
"USER": "postgres",
|
|
"HOST": "localhost",
|
|
"PORT": 5432,
|
|
"PASSWORD": "postgres",
|
|
}
|
|
}
|
|
|
|
PASSWORD_HASHERS = [
|
|
"django.contrib.auth.hashers.MD5PasswordHasher",
|
|
]
|