MySql Memory tables doubt...
Hi, 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. 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 ? Anybody with experience in this ? Any guidance will be greatly appreciated. TIA Jose -- 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/1292c02c-2322-4b75-9f95-2a35a0681d39%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: MySql Memory tables doubt...
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=D=1=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.
Re: Is Django FrontEnd Skeleton easy to use and integrate ?
Rafael, En realidad me falta ver la funcionalidad del Admin, suena bien tu consejo, creo que empezaré por estudiar más esta parte, la pondré en práctica, de hecho, los sistemas que desarrollo son para aplicaciones de Bases de Datos, así que el Admin se ajusta bien, solo tendría que estudiar más sobre Jquery, ajax, etc. para hacer pantallas más interactivas. Gracias. ! José - Original Message - From: Rafael E. Ferrero To: django-users@googlegroups.com Sent: Thursday, August 15, 2013 3:40 PM Subject: Re: Is Django FrontEnd Skeleton easy to use and integrate ? José podes reducir considerablemente el tiempo de desarrollo de tu front end usando los templates de Django (django te permite usar otros lenguajes de templates también). Vos creas un template base con toda la programación que tenes que repetir en cada html estático (las librerías javascript, diseños css, etc) y despues podes crear templates que hereden de esta base poniendo los controles específicos a la vista que quieras mostrar (no necesariamente tenes que hacer un template por cada vista). Podes usar Bootstrap si queres... ahora... todo esto si es que lo queres tener sumamente personalizado sino el Django Admin es sumamente poderoso (ni que hablar de lo rápido que tendrás una interfaz de gestión de tu modelo) y vi por ahí también que hay un proyecto que lo hacen sumamente atractivo visualmente al Django Admin. (http://grappelliproject.com/) 2013/8/15 Jose Galvan <galva...@hotmail.com> Hi, I am newbie in Django..I already followed the Django's official tutorial but it does not cover enough about front end side, my doubt is if "Django front end skeleton" is suitable to help me and save time in the process to learn all concerning with the front end programming side ?, just an example, I would like to learn how to make a real life order entry system with a very user friendly and interactive screens...go I in the right direction ? any other advice will be greatly apreciated. Jose. -- 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. For more options, visit https://groups.google.com/groups/opt_out. -- Rafael E. Ferrero Claro: (03562) 15514856 -- 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. For more options, visit https://groups.google.com/groups/opt_out. -- 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. For more options, visit https://groups.google.com/groups/opt_out.
Is Django FrontEnd Skeleton easy to use and integrate ?
Hi, I am newbie in Django..I already followed the Django's official tutorial but it does not cover enough about front end side, my doubt is if "Django front end skeleton" is suitable to help me and save time in the process to learn all concerning with the front end programming side ?, just an example, I would like to learn how to make a real life order entry system with a very user friendly and interactive screens...go I in the right direction ? any other advice will be greatly apreciated. Jose. -- 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. For more options, visit https://groups.google.com/groups/opt_out.