Skip to content

Commit 0ab3c10

Browse files
committed
Add django-debug-toolbar docs
1 parent 9b93b13 commit 0ab3c10

File tree

3 files changed

+1728
-5
lines changed

3 files changed

+1728
-5
lines changed

config/debug_toolbar/debug_toolbar_settings.py

+9-5
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
# Application definition
2525

2626
INSTALLED_APPS = [
27-
"django.contrib.admin",
28-
"django.contrib.auth",
29-
"django.contrib.contenttypes",
27+
"debug_toolbar.mongo_apps.MongoAdminConfig",
28+
"debug_toolbar.mongo_apps.MongoAuthConfig",
29+
"debug_toolbar.mongo_apps.MongoContentTypesConfig",
3030
"django.contrib.sessions",
3131
"django.contrib.messages",
3232
"django.contrib.staticfiles",
@@ -95,8 +95,6 @@
9595
"second": {"BACKEND": "django.core.cache.backends.locmem.LocMemCache"},
9696
}
9797

98-
DEFAULT_AUTO_FIELD = "django_mongodb_backend.fields.ObjectIdAutoField"
99-
10098
# Debug Toolbar configuration
10199

102100
DEBUG_TOOLBAR_CONFIG = {
@@ -105,3 +103,9 @@
105103
# IS_RUNNING_TESTS must be False even though we're running tests because we're running the toolbar's own tests.
106104
"IS_RUNNING_TESTS": False,
107105
}
106+
DEFAULT_AUTO_FIELD = "django_mongodb_backend.fields.ObjectIdAutoField"
107+
MIGRATION_MODULES = {
108+
"admin": None,
109+
"auth": None,
110+
"contenttypes": None,
111+
}

0 commit comments

Comments
 (0)