Python Forum
Django Two blocks of dynamic content on one page
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Django Two blocks of dynamic content on one page
#6
Hi,

@iFunKtion: I think you have a wrong impression on what's going on. include does what the name says - it includes another template into the current one. _Both_ template share the same context, thus you need to pass _all_ context data used by the main template and the included template to the main template. See also the Django documentation of include: https://docs.djangoproject.com/en/2.2/re...s/#include

Regards, noisefloor
Reply


Messages In This Thread
RE: Django Two blocks of dynamic content on one page - by noisefloor - Jul-04-2019, 02:31 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Scraping the page without distorting content oleglpts 5 2,515 Dec-16-2021, 05:08 PM
Last Post: oleglpts
  <title> django page title dynamic and other field (not working) lemonred 1 2,128 Nov-04-2021, 08:50 PM
Last Post: lemonred
  Web scraping cookie in URL blocks selenium Alex06 2 2,470 Jan-10-2021, 01:43 PM
Last Post: Alex06
  Getting a list in dynamic page probottpric 1 1,813 Oct-12-2020, 01:11 AM
Last Post: Larz60+
  [Django] css file is not applying to the page SheeppOSU 1 3,104 May-09-2020, 06:54 AM
Last Post: menator01
  use Xpath in Python :: libxml2 for a page-to-page skip-setting apollo 2 3,663 Mar-19-2020, 06:13 PM
Last Post: apollo
  Django: How to automatically substitute a variable in the admin page at Django 1.11? m0ntecr1st0 3 3,352 Jun-30-2019, 12:21 AM
Last Post: scidam
  Sorting getting off, when I switch page Django 1.11 m0ntecr1st0 0 1,997 Feb-12-2019, 06:40 PM
Last Post: m0ntecr1st0
  Django-cms link to a page Alkatron 4 8,306 Apr-06-2018, 10:58 AM
Last Post: Alkatron
  How to create dynamic webscraper in Django using BeautifulSoup Prince_Bhatia 1 6,184 Jan-26-2018, 02:07 PM
Last Post: frostbite

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020