Re: Sql Server

28 views
Skip to first unread message

Pardhu Saradhi

unread,
Sep 27, 2018, 12:37:44 PM9/27/18
to django...@googlegroups.com
Can you please msg me what you have done

On Thu 27 Sep, 2018, 5:05 AM Elton Oliveira, <eltonol...@gmail.com> wrote:
Hello guys, how do I create my tables in other SQL server schemas? OBS: I tried everything and I could not

--
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...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/6c1e9a72-ef4d-4405-9cec-5ce3a3e2d046%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Elton Oliveira

unread,
Sep 27, 2018, 3:34:25 PM9/27/18
to Django users
I managed to solve as follows:

from django.db import models

class Teste001(models.Model):
    name = models.CharField(max_length=100)
    tagline = models.TextField()

    def __str__(self):
        return self.name

    class Meta:
    db_table = 'scheme].[table'     
Reply all
Reply to author
Forward
0 new messages