Test using different database

36 views
Skip to first unread message

Antony

unread,
Jul 26, 2013, 9:45:02 AM7/26/13
to django...@googlegroups.com
Hi,

I have two databases on my settings file. One is sqlite and the other is postgis. It is a big project so some developers use sqllite and a few are using postgis. 
Now, when I try ./manage.py test command, I get the following,

----------------------------------------------------------------------------------------------------------------
Creating test database for alias 'default'...
AttributeError: 'DatabaseOperations' object has no attribute 'geo_db_type'
-----------------------------------------------------------------------------------------------------------------

Is there a way to issue a command that contains the alias for the postgis database? I am looking for something like " ./manage.py test --database='spatial_db' " or similar. I have been looking around documentation and examples but haven't been able to come around this. Here is what I have been looking,

Any suggestions would be appreciated! 

Thanks in advance,
A

Larry Martell

unread,
Sep 8, 2013, 7:19:06 AM9/8/13
to django...@googlegroups.com

Germán

unread,
Sep 8, 2013, 10:19:48 PM9/8/13
to django...@googlegroups.com
Antony.

Developers using different database engines is a very bad practice and WILL cause you troubles sooner or later.

I don't get something from your question: are both engines supposed to be used at the same time or do you want to select a specific one to runt the test suite?
Reply all
Reply to author
Forward
0 new messages