Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 884683
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T12:47:14+00:00 2026-05-15T12:47:14+00:00

In the header region of my base template (main.html), I’ve placed an HTML5 media

  • 0

In the header region of my base template (main.html), I’ve placed an HTML5 media player which pulls in content uploaded through my admin interface.

What I’m attempting to do is, when the tracks have been loaded once, have the media player remain unaffected by internal site navigation. In other words, the media player keeps playing but the user can browse the site without interrupting playback/ re-loading the tracks.

It’s a fairly simple setup. There’s one main template and each of the other sections (say, blog, contact and about) are all content blocks loaded within that same template using:

{% extends 'main.html' %}

As I understand it, when the template system evaluates a child template, first it loads the parent then fills in the child blocks as defined. I logically, and perhaps incorrectly, assumed that child block regions would be ‘pulled into’ the parent. However, having read the django docs on template inheritance, it would appear that what actually happens is some sort of reverse lookup: find parent > load parent > find blocks > populate blocks. As I have it set up at the moment, each time a link is clicked, the media stops playing and is reloaded.

So my question is whether I’ve missed something fundamental in the way the django’s template engine works and it is possible to achieve what I’m after just using the template engine, or whether it’s impossible and I need to do it some other way (e.g. via AJAX). It’s the first time I’ve attempted to do anything like this in django so I wouldn’t be at all surprised if it’s the former.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T12:47:15+00:00Added an answer on May 15, 2026 at 12:47 pm

    What I’m attempting to do is, when the tracks have been loaded once, have the media player remain unaffected by internal site navigation. In other words, the media player keeps playing but the user can browse the site without interrupting playback/ re-loading the tracks.

    This is not something specific to Django-templates, but rather to how your HTML page is structured. The media player is not replaced within Django, but replaced in the browser by reloading the page.

    Things you can do:

    • Have everything running via Ajax.
    • Have every other page running in an <iframe>
    • Have every other page running in a <frameset> tag.

    Eiter way, the URL in your address bar won’t change anymore while the user is navigating through the site. Requiring Ajax will also affect how good Google can index your site.

    A good HTML book will get you started on setting up the frameset / iframe based page.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Simple question, ok a contentplaceholder is implemented for Page-specific content. What about header region,
So i have a page called region.php, which in the header, loads JQuery, the
header(Content-type: image/gif); readfile($filename); The above can only be used to show gif images. Is
Which header files provide the intrinsics for the different x86 SIMD instruction set extensions
The header Cache-Control: max-age=0 implies that the content is considered stale (and must be
I have requirements to have an Editable region underneath the header, but above the
I have seen examples of creating a Facelets page template where each defined region
I'm having problems aligning the content region(in pink) and the nav region (in red
As title said, how to set one header region different on each pages with
In the theme which i'm using has this code <div id=header> <div class=container section

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.