It works perfectly by coding them as a model in the same way you always do.
The only thing you have to do is make sure that you set the table name and
that migrations shouldn't be handled for the view:
class Meta:
managed = False
db_table = 'events_sessionparticipant'
Regards,
Andréas
Den tors 11 okt. 2018 kl 13:50 skrev Gurmeet Kaur <
[email protected]>:
> Just code for them in models.py just as a table. And it will work.
>
> I have done that in my project. It is working fine.
>
> On Thu, Oct 11, 2018, 1:38 AM django_learner <[email protected]> wrote:
>
>> Hi everyone,
>>
>> I am using SQL SERVER and I have some predefines VIEWS in the database,
>> what I am looking for is to manage that VIEWS
>>
>>
>> Thank you
>>
>> --
>> 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 [email protected].
>> To post to this group, send email to [email protected].
>> 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/27c14f60-b074-4b79-a1db-d9b519ac6637%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/27c14f60-b074-4b79-a1db-d9b519ac6637%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> 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 [email protected].
> To post to this group, send email to [email protected].
> 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/CAEbKJVgwvBHUBtbjc8vd8n7CpxVfARY%3D9NLNb0XfwWo3Pv4C2g%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAEbKJVgwvBHUBtbjc8vd8n7CpxVfARY%3D9NLNb0XfwWo3Pv4C2g%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
--
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 [email protected].
To post to this group, send email to [email protected].
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/CAK4qSCdmqSe4q1mc%2BhRf6NAyGanTp6NbgjM5Uv_o%2B0doapjRpA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.