vendredi 26 février 2021

Unable to render the HTML page in Django

I am trying to return the HTML page on the success of login but unable to render in the web. Do I need to do add in urls.py or views.py in Dashboard?

the sample folder structure of my project

  • login
    • views.py
  • Dashboard
    • templates
      • dashboard
        • sign_up_otp_pop_up.html
    if login=='Success':
       return render(request, 'dashboard/sign_up_otp_pop_up.html', {'content':content})
    else:
       return 400```





Aucun commentaire:

Enregistrer un commentaire