From 4330536ff73b4d8124a61593dab34c6f2bab419c Mon Sep 17 00:00:00 2001 From: Felix Vollmer Date: Tue, 12 May 2026 11:41:48 +0200 Subject: [PATCH] add missing nested_admin integration to project settings and URLs --- README.md | 2 ++ docs/CONFIGURATION.md | 2 ++ docs/QUICKSTART.md | 2 ++ example_project/example/settings.py | 1 + example_project/example/urls.py | 3 ++- 5 files changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2653a76..cd37161 100644 --- a/README.md +++ b/README.md @@ -202,6 +202,7 @@ pip install django-forms-workflows ```python INSTALLED_APPS = [ # ... + 'nested_admin', 'crispy_forms', 'crispy_bootstrap5', 'django_forms_workflows', @@ -216,6 +217,7 @@ CRISPY_TEMPLATE_PACK = "bootstrap5" ```python # urls.py urlpatterns = [ + re_path(r'^_nested_admin/', include('nested_admin.urls')), path('forms/', include('django_forms_workflows.urls')), ] ``` diff --git a/docs/CONFIGURATION.md b/docs/CONFIGURATION.md index 336d58f..0857865 100644 --- a/docs/CONFIGURATION.md +++ b/docs/CONFIGURATION.md @@ -53,6 +53,7 @@ INSTALLED_APPS = [ 'django.contrib.staticfiles', # Third-party apps + 'nested_admin', 'crispy_forms', 'crispy_bootstrap5', @@ -87,6 +88,7 @@ python manage.py migrate django_forms_workflows from django.urls import path, include urlpatterns = [ + path('_nested_admin/', include('nested_admin.urls')), path('admin/', admin.site.urls), path('forms/', include('django_forms_workflows.urls')), # ... diff --git a/docs/QUICKSTART.md b/docs/QUICKSTART.md index e18b80c..cacd679 100644 --- a/docs/QUICKSTART.md +++ b/docs/QUICKSTART.md @@ -46,6 +46,7 @@ INSTALLED_APPS = [ 'django.contrib.staticfiles', # Required dependencies + 'nested_admin', 'crispy_forms', 'crispy_bootstrap5', @@ -84,6 +85,7 @@ from django.contrib import admin from django.urls import path, include urlpatterns = [ + path('_nested_admin/', include('nested_admin.urls')), path('admin/', admin.site.urls), path('forms/', include('django_forms_workflows.urls')), ] diff --git a/example_project/example/settings.py b/example_project/example/settings.py index bdc037d..d136de0 100644 --- a/example_project/example/settings.py +++ b/example_project/example/settings.py @@ -28,6 +28,7 @@ "django.contrib.messages", "django.contrib.staticfiles", # Required dependencies + "nested_admin", "crispy_forms", "crispy_bootstrap5", # Django Form Workflows diff --git a/example_project/example/urls.py b/example_project/example/urls.py index c4fd973..10ea86f 100644 --- a/example_project/example/urls.py +++ b/example_project/example/urls.py @@ -5,12 +5,13 @@ from django.conf import settings from django.conf.urls.static import static from django.contrib import admin -from django.urls import include, path +from django.urls import include, path, re_path from .views import home urlpatterns = [ path("", home, name="home"), + re_path(r'^_nested_admin/', include('nested_admin.urls')), path("admin/", admin.site.urls), path("accounts/", include("django.contrib.auth.urls")), path("forms/", include("django_forms_workflows.urls")),