Re: database routers from html code

2012-05-14 Thread Antonimus
Thanks, I was hoping there is an easy way :) -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups

Re: database routers from html code

2012-05-14 Thread akaariai
On May 14, 11:43 am, Antonimus wrote: > Hi, I'm new to django and web framework. What I'm trying to do is to > select what database to connect from html template select. In the > login form, besides user and password, it's a select field with > database alias to connect: >       >       {% for db

database routers from html code

2012-05-14 Thread Antonimus
Hi, I'm new to django and web framework. What I'm trying to do is to select what database to connect from html template select. In the login form, besides user and password, it's a select field with database alias to connect: {% for db in db %} {{ db.DbCode }} | {{ db.DbNam