File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,6 @@ For the full list of settings and their values, see
1010https://docs.djangoproject.com/en/{{ docs_version }}/ref/settings/
1111"""
1212
13- import django_mongodb_backend
14-
1513from pathlib import Path
1614
1715# Build paths inside the project like this: BASE_DIR / 'subdir'.
@@ -75,7 +73,11 @@ WSGI_APPLICATION = '{{ project_name }}.wsgi.application'
7573# https://docs.djangoproject.com/en/{{ docs_version }}/ref/settings/#databases
7674
7775DATABASES = {
78- "default": django_mongodb_backend.parse_uri("mongodb://localhost:27017/{{ project_name }}"),
76+ 'default': {
77+ 'ENGINE': 'django_mongodb_backend',
78+ 'HOST': 'mongodb://localhost:27017/',
79+ 'NAME': '{{ project_name }}',
80+ },
7981}
8082
8183# Database routers
You can’t perform that action at this time.
0 commit comments