Hi all
I am new to this and am really struggling with what should be a simple
problem. I have a main.html that has javascript code. There is a switch
statement. From the first case statement, I wish to load a template that
is the child of main.html. I have a /home/view.py with:
def welcome(request):
return render(request, "home/welcome.html") in it.
I also have /template/home/welcome.html which is ultimately what I wish
to have returned.
I have jQuery loaded in main.html but have no idea how to use it.
What can I put in the javascript case statement to return welcome.html.
Welcome.html is:
<!--Web page for Welcome text-->
{% extends "home/main.html" %}
<!--{% load staticfiles %}-->
{% block content %}
<p>"yOU ARE IN WELCOME HTML"</p>
<<<!--{% include "home/readMeFirst.html" %}-->
{% endblock %}
There is a block content statement in the body of main.html
Gary R.
--
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/5673591C.60508%40verizon.net.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment