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,
https://docs.djangoproject.com/en/dev/topics/testing/overview/#the-test-database
https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/
https://docs.djangoproject.com/en/dev/topics/testing/advanced/#topics-testing-advanced-multidb
http://stackoverflow.com/questions/4650509/different-db-for-testing-in-django

Any suggestions would be appreciated! 

Thanks in advance,
A

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to