File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ For the full list of settings and their values, see
10
10
https://docs.djangoproject.com/en/{{ docs_version }}/ref/settings/
11
11
"""
12
12
13
+ import django_mongodb
14
+
13
15
from pathlib import Path
14
16
15
17
# Build paths inside the project like this: BASE_DIR / 'subdir'.
@@ -73,15 +75,8 @@ WSGI_APPLICATION = '{{ project_name }}.wsgi.application'
73
75
# Database
74
76
# https://docs.djangoproject.com/en/{{ docs_version }}/ref/settings/#databases
75
77
76
- DATABASES = {
77
- "default": {
78
- "ENGINE": "django_mongodb",
79
- "NAME": "my_database",
80
- # "USER": "my_username",
81
- # "PASSWORD": "my_password",
82
- # "OPTIONS": {...},
83
- },
84
- }
78
+ DATABASES = {}
79
+ DATABASES["default"] = django_mongodb.parse_uri("mongodb://localhost:27017/{{ project_name }}")
85
80
86
81
# Password validation
87
82
# https://docs.djangoproject.com/en/{{ docs_version }}/ref/settings/#auth-password-validators
You can’t perform that action at this time.
0 commit comments