Hello Community,
-- Thanking you all for helping me to get rid of this impedance.
i got solution from your answers thanks to you.
On Tuesday, April 16, 2019 at 11:12:08 AM UTC+5:30, Mayur Bagul wrote:
On Tuesday, April 16, 2019 at 11:12:08 AM UTC+5:30, Mayur Bagul wrote:
Hello community,i have write one view and tried to render template for that view but it doesnt working and giving error template does not exits?i tried to solve this error but im not getting where im getting wrong so plz help me with this.homepage/templates/homepage/index.html/ <!doctype html> <html lang="en"> <head> <!-- Required meta tags --> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <!-- Bootstrap CSS --> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4. " integrity="sha384-3.1/css/bootstrap.min.css ggOyR0iXCbMQv3Xipma34MD+dH/ crossorigin="anonymous"> <title>Hello, world!</title> </head> <body> <h1>Hello, world!</h1> <!-- Optional JavaScript --> <!-- jQuery first, then Popper.js, then Bootstrap JS --> <script src="https://code.jquery.com/1fQ784/j6cY/ iJTQUOhcWr7x9JvoRxT2MZw1T" jquery-3.3.1.slim.min.js " integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbz crossorigin="anonymous"></o5smXKp4YfRvH+8abtTE1Pi6jizo" script> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14. " integrity="sha384-7/umd/popper.min.js UO2eT0CpHqdSJQ6hJty5KVphtPhzWj crossorigin="anonymous"></9WO1clHTMGa3JDZwrnQq4sF86dIHND z0W1" script> <script src="https://stackpath.bootstrapcdn.com/bootstrap/4. " integrity="sha384-3.1/js/bootstrap.min.js JjSmVgyd0p3pXB1rRibZUAYoIIy6Or crossorigin="anonymous"></Q6VrjIEaFf/nJGzIxFDsf4x0xIM+ B07jRM" script> </body> </html>Output : output file is attached to this post.vies.py :from django.http import HttpResponse
from django.template import loader
def index(request):
return render(request, 'homepage/index.html')
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+unsubscribe@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/256a653f-28e2-4fdd-bd09-bf80f0aad4ef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment