diff --git a/roles/radius/templates/local_routers.py.j2 b/roles/radius/templates/local_routers.py.j2 index ce42020..0367f2c 100644 --- a/roles/radius/templates/local_routers.py.j2 +++ b/roles/radius/templates/local_routers.py.j2 @@ -7,13 +7,13 @@ class DbRouter(object): """ Attempts to read remote models go to local database. """ - return 'default' + return 'local' def db_for_write(self, model, **hints): """ Attempts to write remote models go to the remote database. """ - return 'master' + return 'default' def allow_relation(self, obj1, obj2, **hints): """ diff --git a/roles/radius/templates/settings_local.py.j2 b/roles/radius/templates/settings_local.py.j2 index 01d9043..0e47e36 100644 --- a/roles/radius/templates/settings_local.py.j2 +++ b/roles/radius/templates/settings_local.py.j2 @@ -51,7 +51,7 @@ TIME_ZONE = 'Europe/Paris' # The storage systems parameters to use DATABASES = { - 'master': { + 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 're2o', 'USER': 're2o', @@ -62,7 +62,7 @@ DATABASES = { 'COLLATION': 'utf8_general_ci' } }, - 'default': { + 'local': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 're2o', 'USER': 're2o_ro',