Re: create model on multiples schemas of database

2012-03-08 Thread Python_Junkie
That is a very interesting question. I presume that you will not be doing this dynamically as a user logs on. If that is the case, why don't you let django answer the question for you. Create a database with the several different schemas and follow the instructions to let django create your mo

create model on multiples schemas of database

2012-03-08 Thread Moisés P . Sena
Good night! I need to create the "DDL" a model in several DB schemas, not only in the "public". The names of these schemas is "username" user logged. I'm using PostgreSQL. My model: class Empresa(models.Model): ''' classdocs ''' cnpj = models.CharField(max_length=14, blank=Fals