Skip to content

Commit d1d667e

Browse files
committed
NAME instead of NAMESPACE
1 parent e482930 commit d1d667e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

django_iris/base.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@ def get_connection_params(self):
134134
conn_params['hostname'] = settings_dict['HOST']
135135
if settings_dict['PORT']:
136136
conn_params['port'] = settings_dict['PORT']
137+
if settings_dict['NAME']:
138+
conn_params['namespace'] = settings_dict['NAME']
137139
if 'NAMESPACE' in settings_dict:
138140
conn_params['namespace'] = settings_dict['NAMESPACE']
139141

@@ -144,7 +146,7 @@ def get_connection_params(self):
144146
):
145147
raise ImproperlyConfigured(
146148
"settings.DATABASES is improperly configured. "
147-
"Please supply the HOST, PORT and NAMESPACE"
149+
"Please supply the HOST, PORT and NAME"
148150
)
149151

150152
if (

0 commit comments

Comments
 (0)