javascript - Calling another html template from a django template. (Database used is mongoDb) -


i starter django.

i creating login page if username/password exists in database(mongodb). takes page.

my template follows:

<html> <head>     <title>login page</title> </head> <body>     <h1>simple login page</h1>     <form name="login">         username<input type="text" name="userid"/>         password<input type="password" name="pswrd"/>         <input type="button" onclick="check(this.form)" value="login"/>         <input type="reset" value="cancel"/>     </form>      <ul>         {% item in employee %}               {% if item.name == form.userid.value && item.password == form.paswd.value %} ***"""""one more check item.field ::: if(field =="a") take page:1.html else take page2.html"""*** {% else %} **wrong password pop up**{% endif %}               <li>{{ item.name }}</li>         {% endfor %}     </ul>                     }      </script> </body> 

how can done in django, mongodb, python


Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -