Thanks for your Answer Rene, Well you see.. tables were designed without Id 
primary key on it, instead tables use composed keys, ORM queries in Django 
are mostly based on an unique Id  feature as Pk, this was the main reason 
for not to use ORM. And yes, tables are declared as manage=false, in fact 
when I did execute migrate command django got all DB phisical structures 
and automatically created models in models.py and added the feature you 
mention..manage= "FALSE" as a metadata in each model

Anyway, regarding temporary tables  I was testing and it seems to be not 
necessary to declare it on models.py, the error I had was for another 
reason.

Thanks very much man ! 



El sábado, 19 de marzo de 2016, 5:57:00 (UTC-5), René Fleschenberg escribió:
>
> Hi, 
>
> On Wednesday 16 March 2016 12:58:17 Jose Galvan wrote: 
> > I am developing a web site to make queries and create new entries  in a 
> > old Mysql order entry system so I need to use the Raw SQL django 
> > functionality more than ORM. 
>
> Are you sure that you cannot use the ORM? Maybe you can just use unmanaged 
> models? 
>
> https://docs.djangoproject.com/ja/1.9/ref/models/options/#managed 
> <https://www.google.com/url?q=https%3A%2F%2Fdocs.djangoproject.com%2Fja%2F1.9%2Fref%2Fmodels%2Foptions%2F%23managed&sa=D&sntz=1&usg=AFQjCNF51kpo8wZmf6v_GUhk9bSDOOUX0Q>
>  
>
> > In the process I need to use a temporary mysql table ( like a memory 
> table 
> > that  is alive while the session is active), my question is : In order 
> to 
> > manipulate it, Do I need to declare this table in the models.py like any 
> > other table ? 
>
> Take a look at Django's multi-database support: 
>
> https://docs.djangoproject.com/en/1.9/topics/db/multi-db/ 
>
> Yes, you should probably write models for the temporary table. 
>
> -- 
> René 
>

-- 
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/2dc506ad-be90-4681-afa4-8710d66f6e02%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to