Skip to content
Advertisement

DJango testing multiple database application

I have django application which has two database defaultdb and externdb

JavaScript

The application works well but when testing ,this error occurs below

when trying to access the extern database

JavaScript

This error occurs

JavaScript

which setting should I check??

Advertisement

Answer

Change:

JavaScript

to this:

JavaScript

OR

You can also add databases = “extern” to this:

JavaScript

final version:

JavaScript

This method is what it basically suggests you to do in that message.

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement