mirror of
https://github.com/django-components/django-components.git
synced 2025-09-22 21:52:26 +00:00
refactor: Remove safer_staticfiles, replace STATICFILES_DIRS with COMPONENTS.dirs, support [app]/components
(#652)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
728b4ffad7
commit
e1382d3ccd
34 changed files with 1034 additions and 264 deletions
|
@ -11,7 +11,7 @@ def setup_test_config(components: Optional[Dict] = None):
|
|||
|
||||
settings.configure(
|
||||
BASE_DIR=Path(__file__).resolve().parent,
|
||||
INSTALLED_APPS=("django_components",),
|
||||
INSTALLED_APPS=("django_components", "tests.test_app"),
|
||||
TEMPLATES=[
|
||||
{
|
||||
"BACKEND": "django.template.backends.django.DjangoTemplates",
|
||||
|
@ -32,6 +32,7 @@ def setup_test_config(components: Optional[Dict] = None):
|
|||
"NAME": ":memory:",
|
||||
}
|
||||
},
|
||||
SECRET_KEY="secret",
|
||||
)
|
||||
|
||||
django.setup()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue