Skip to content
Closed
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions project_name/settings.py-tpl
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ DATABASES = {
"default": django_mongodb_backend.parse_uri("mongodb://localhost:27017/{{ project_name }}"),
}

# Add a database router so dumpdata can ignore embedded models
DATABASE_ROUTERS = ["django_mongodb_backend.routers.MongoRouter"]

# Password validation
# https://docs.djangoproject.com/en/{{ docs_version }}/ref/settings/#auth-password-validators

Expand Down