Tuesday, January 31, 2012

Django Model Errors : TypeError: 'class Meta' got invalid attribute(s): using

Hi all,
I am newbie in django and while trying to write a database router for
using multiple database I did something like :

class Meta:
using = 'somedatabasename'

in Django models.py.

However while doing a syncdb I get an error like this :

TypeError: 'class Meta' got invalid attribute(s): using

what am I missing here??

any pointers or docs will be of great help.

-------------
Regards
Subhodip Biswas


GPG key : FAEA34AB
Server : pgp.mit.edu
http://subhodipbiswas.wordpress.com
http:/www.fedoraproject.org/wiki/SubhodipBiswas

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment