Apologies, I've been going out of my mind with this as I am unable to find any information on something that is just a standard practice in websites now. I am using Django and I am still very much stuck on this. I can get this first page here to show up as a separate web page, so know it works, but I can't get it to show up where I need it as the side bar to my main page, here is the part I am trying to include?
EDIT: just to add a little clarification, I can't get any text to show up, using the include function, be it the html I have posted or a simple hello world.
<!DOCTYPE html> <html lang="en" dir="ltr"> <head> <meta charset="utf-8"> <title></title> </head> <body> {% for category in categories %} <li><span class="caret">{{ category.name }}</span> {% if category.link_set %} <ul class="nested"> {% for link in category.link_set.all %} <li><a href="{{ link.url }}" target="_blank">{{ link.name }}</a></li> {% endfor %} </ul> {% else %} :without children links {% endif %} </li> {% endfor %} </body> </html>and here is a stripped down version of the actual page that I want to put it in:
<!DOCTYPE html> {% load staticfiles %} <html lang="en"> <head> <title>Platform Control</title> <meta charset="utf-8"> <meta http-equiv="refresh" content="300; URL=http://10.88.58.95"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="{% static "css/microblog/style.css" %}"/> </head> <body> <div class="container"> <div class="column left"> <ul id="myUL"> <div class="links"> {% include 'url_tree/category_list.html' %} <-- Trying to add content here </div> </ul> </div> <div class="column middle"> {% block center-block %} {% endblock %} </div> <div class="column right"> <h5>Other links</h5> </div> </div> </body> </html>I've been stuck on this for about a month now and have only found one stack exchange post that came up, but was for a different issue. All tutorials I have done and found about django show you how to add one bit of dynamic code, which is the {% block center-block %} this bit works, but getting a second bit of dynamic content is not explained anywhere that I can find. Please help, I have no idea where to go from here as I don't know any django developers, so am completely stuck. How do other people get dynamic content throughout their pages?
EDIT: just to add a little clarification, I can't get any text to show up, using the include function, be it the html I have posted or a simple hello world.