Skip to content
Merged
Changes from 1 commit
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
13 changes: 4 additions & 9 deletions project_name/settings.py-tpl
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ For the full list of settings and their values, see
https://docs.djangoproject.com/en/{{ docs_version }}/ref/settings/
"""

import django_mongodb

from pathlib import Path

# Build paths inside the project like this: BASE_DIR / 'subdir'.
Expand Down Expand Up @@ -73,15 +75,8 @@ WSGI_APPLICATION = '{{ project_name }}.wsgi.application'
# Database
# https://docs.djangoproject.com/en/{{ docs_version }}/ref/settings/#databases

DATABASES = {
"default": {
"ENGINE": "django_mongodb",
"NAME": "my_database",
# "USER": "my_username",
# "PASSWORD": "my_password",
# "OPTIONS": {...},
},
}
DATABASES = {}
DATABASES["default"] = django_mongodb.parse_uri("mongodb://localhost/{{ project_name }}")

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