Re: cicking to menu in navebar leads another subpage /subpage

2019-07-10 Thread Surya Adhikari
econdly your hardcoded urls are relative. So each time you click link it > is appended to current url. If you would have been using url-tag you even > wouldn't have this problem. > > ma 8. heinäk. 2019 klo 18.51 Surya Adhikari > kirjoitti: > >> i have a menu bar as, HOME GA

Re: cicking to menu in navebar leads another subpage /subpage

2019-07-09 Thread Surya Adhikari
em. > > ma 8. heinäk. 2019 klo 18.51 Surya Adhikari > kirjoitti: > >> i have a menu bar as, HOME GALLERY >> When i click Home its the index page which is being display after when i >> click Gallary dropdown menu as house it redirects to search.html . BUT >&

cicking to menu in navebar leads another subpage /subpage

2019-07-08 Thread Surya Adhikari
i have a menu bar as, HOME GALLERY When i click Home its the index page which is being display after when i click Gallary dropdown menu as house it redirects to search.html . BUT when i again click hotel it redirects to 127.0.0.1/search/ search1 insted of 127.0.0.1/search1. i have

linking diffirent wepages

2019-07-08 Thread Surya Adhikari
my nav menu have 2 menus : Home , Search Names ie. from index page when i click student from Sub menu of Search names , it will redirects search.html after if i click again teacher from search.html it will redirects to search.html/ search1.html rather then search1.html only. it works

Re: Searching with respect to gender and BY name

2019-07-06 Thread Surya Adhikari
> else: > messages.error(request,'no result found') > return HttpResponse("No name found please Add names ") > else: > return render(request,'search.html') > > return render(request,'search.html') > > On Friday, 28 June 2019 15:35:09 UTC+3, Surya Adhikari wrot

Searching with respect to gender and BY name

2019-06-28 Thread Surya Adhikari
# my coding looks like this in views.py but somehow it only search by name no matter which gender i select .what am i doing wrong? def search(request): if request.method=='POST': srch = request.POST['srh'] srchs = request.POST['gender'] if srch and srchs: match =