Re: Django querysets and postgresql views

2014-03-18 Thread Cherrymae Tulfo
if Postgresql view is made within Postgresql, i mean by not making in 
django models, would still Django access these data? 

On Tuesday, March 18, 2014 9:10:04 PM UTC+8, esatte...@wi.rr.com wrote:
>
> Yes you can. Just create the view however you like. Make a django model 
> with the fields that map to the table the view returns and set the model to 
> managed = false. 
>
> You can only fetch data and do simple filtering obviously.
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/9788662e-1200-4428-bb33-4b44f0eac63a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django querysets and postgresql views

2014-03-18 Thread m1chael
esatterwhite, that's a great tip! What about raw queries as another option?


On Tue, Mar 18, 2014 at 9:10 AM, esatterwh...@wi.rr.com
 wrote:
> Yes you can. Just create the view however you like. Make a django model with 
> the fields that map to the table the view returns and set the model to 
> managed = false.
>
> You can only fetch data and do simple filtering obviously.
>
> --
> 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.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/2b59ab10-3c98-495c-ae3c-00aad9a59f54%40googlegroups.com.
> 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 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAAuoY6PC%2BVsAZu3%2BF6xbpD%3DhUSqOgn9whsDkbrMPmkKd_hp1bg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Django querysets and postgresql views

2014-03-18 Thread esatterwh...@wi.rr.com
Yes you can. Just create the view however you like. Make a django model with 
the fields that map to the table the view returns and set the model to managed 
= false. 

You can only fetch data and do simple filtering obviously.

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/2b59ab10-3c98-495c-ae3c-00aad9a59f54%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Django querysets and postgresql views

2014-03-17 Thread Cherrymae Tulfo
can Django query data from a postgresql view?
I have trouble intersecting querysets in Django. .
so i'm thinking, can Django retrieve data from a postgresql view?

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/d53ca3e5-b782-4d34-a948-11c8fdcb170a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.