mirror of
https://github.com/django-components/django-components.git
synced 2025-07-16 04:54:59 +00:00

Move required slot check to SlotNode.render(); clean up needed Remove unused code; drop caching Update docs Incorporate PR feedback
20 lines
532 B
Python
20 lines
532 B
Python
import django
|
|
from django.conf import settings
|
|
|
|
if not settings.configured:
|
|
settings.configure(
|
|
INSTALLED_APPS=("django_components",),
|
|
TEMPLATES=[
|
|
{
|
|
"BACKEND": "django.template.backends.django.DjangoTemplates",
|
|
"DIRS": ["tests/templates/"],
|
|
}
|
|
],
|
|
COMPONENTS={"template_cache_size": 128},
|
|
MIDDLEWARE=[
|
|
"django_components.middleware.ComponentDependencyMiddleware"
|
|
],
|
|
DATABASES={},
|
|
)
|
|
|
|
django.setup()
|