• Home
  • Free Trial
  • Sign In
  • Techdegree
  • Tracks
  • Content Library
  • Community
  • Support
  • Jobs
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • 21st Century Skills
      • • Android
      • • APIs
      • • Business
      • • C#
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Equity, Diversity, and Inclusion (EDI)
      • • Go
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • PHP
      • • Python
      • • Quality Assurance
      • • Ruby
      • • Security
  • Elvin Mazwimairi
    Elvin Mazwimairi
    15,541 Points

    Django templates

    Posted April 9, 2019 6:27am by Elvin Mazwimairi
    Elvin Mazwimairi
    15,541 Points
    • Python
    • Customizing Django Templates
    • Building Custom Tags
    • Create An Inclusion Tag

    1 Answer

  • maxwell ruzvidzo
    maxwell ruzvidzo
    6,822 Points

    create an inclusion tag

    Posted April 5, 2019 9:48pm by maxwell ruzvidzo
    maxwell ruzvidzo
    6,822 Points
    • Python
    • Customizing Django Templates
    • Building Custom Tags
    • Create An Inclusion Tag

    1 Answer

  • Munyaradzi D Sabamba
    Munyaradzi D Sabamba
    8,310 Points

    Finally, use the @register decorator to register the function as an inclusion tag. Use the 'courses/step_list.html' temp

    Posted April 5, 2019 9:32am by Munyaradzi D Sabamba
    Munyaradzi D Sabamba
    8,310 Points
    • Python
    • Customizing Django Templates
    • Building Custom Tags
    • Create An Inclusion Tag

    1 Answer

  • Savious Munyaradzi Ngundu
    Savious Munyaradzi Ngundu
    16,920 Points

    Next, create a function named steps_list that returns all of the Step objects.

    Posted March 10, 2019 5:49pm by Savious Munyaradzi Ngundu
    Savious Munyaradzi Ngundu
    16,920 Points
    • Python
    • Customizing Django Templates
    • Building Custom Tags
    • Create An Inclusion Tag

    2 Answers

  • Savious Munyaradzi Ngundu
    Savious Munyaradzi Ngundu
    16,920 Points

    inclusion tags

    Posted March 10, 2019 5:46pm by Savious Munyaradzi Ngundu
    Savious Munyaradzi Ngundu
    16,920 Points
    • Python
    • Customizing Django Templates
    • Building Custom Tags
    • Create An Inclusion Tag

    1 Answer

  • Shan Xue
    Shan Xue
    5,414 Points

    You use __ to let your templates know that you'll be using your custom template tags.

    Posted January 15, 2019 6:57pm by Shan Xue
    Shan Xue
    5,414 Points
    • Python
    • Customizing Django Templates
    • Building Custom Tags
    • Custom Tag Review

    1 Answer

  • Perfect Tinotenda Mashingaidze
    Perfect Tinotenda Mashingaidze
    5,070 Points

    Import the Step class from the models.py

    Posted November 9, 2018 2:00pm by Perfect Tinotenda Mashingaidze
    Perfect Tinotenda Mashingaidze
    5,070 Points
    • Python
    • Customizing Django Templates
    • Building Custom Tags
    • Create An Inclusion Tag

    2 Answers

  • Omprakash Panigrahi
    Omprakash Panigrahi
    9,632 Points

    Date Filter - What am I doing wrong ?

    Posted April 29, 2018 3:04pm by Omprakash Panigrahi
    Omprakash Panigrahi
    9,632 Points
    • Python
    • Customizing Django Templates
    • Building Custom Tags
    • Use the Date Filter

    2 Answers

  • Patrick Bluth
    Patrick Bluth
    13,273 Points

    How to link directly to the newest course from the homepage?

    Posted January 24, 2018 11:15pm by Patrick Bluth
    Patrick Bluth
    13,273 Points
    • Python
    • Customizing Django Templates
    • Building Custom Tags
    • DIY Custom Tags

    1 Answer

  • Tim Pinkerton
    Tim Pinkerton
    23,019 Points

    Customizing Django Templates-DIY Custom Tags video, getting error: " 'course_extras' is not a registered tag library.."

    Posted September 30, 2017 8:25pm by Tim Pinkerton
    Tim Pinkerton
    23,019 Points
    • Python
    • Customizing Django Templates
    • Building Custom Tags
    • DIY Custom Tags

    1 Answer

  • rajan lagah
    rajan lagah
    2,539 Points

    How cources:detail work in url?

    Posted September 15, 2017 2:25pm by rajan lagah
    rajan lagah
    2,539 Points
    • Python
    • Customizing Django Templates
    • Building Custom Tags
    • Complex Template Tags

    1 Answer

  • rajan lagah
    rajan lagah
    2,539 Points

    Using the date filter, render timestamp with the format "m/d/y, H:i". (That's 2-digit month, day, and year, hour in 24-h

    Posted September 15, 2017 1:33pm by rajan lagah
    rajan lagah
    2,539 Points
    • Python
    • Customizing Django Templates
    • Building Custom Tags
    • Use the Date Filter

    1 Answer

  • ds1
    ds1
    7,627 Points

    Description Typo?

    Posted August 28, 2017 6:51pm by ds1
    ds1
    7,627 Points
    • Python
    • Customizing Django Templates
    • Building Custom Tags
    • DIY Custom Tags

    1 Answer

  • Will Anderson
    Will Anderson
    28,683 Points

    Server error 'not a registered tag library' when rendering site for Complex Template Tags. Redone to teacher's code 4X.

    Posted July 21, 2017 8:58pm by Will Anderson
    Will Anderson
    28,683 Points
    • Python
    • Customizing Django Templates
    • Building Custom Tags
    • Complex Template Tags

    1 Answer

  • Will Anderson
    Will Anderson
    28,683 Points

    Django template tags and filters: template error using |wordcount <=5 (can't parse remainder '<=5' from '<=5'). Why?

    Posted July 21, 2017 4:56pm by Will Anderson
    Will Anderson
    28,683 Points
    • Python
    • Customizing Django Templates
    • Building Custom Tags
    • Built-in Tags and Filters

    1 Answer

  • Oszkár Fehér
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Oszkár Fehér
    Treehouse Project Reviewer

    What value? the 1st question in the Quiz is: "Output the value in the variable timestamp into your template."

    Posted July 17, 2017 10:56am by Oszkár Fehér
    .a{fill-rule:evenodd;}techdegree seal-36
    Oszkár Fehér
    Treehouse Project Reviewer
    • Python
    • Customizing Django Templates
    • Building Custom Tags
    • Use the Date Filter

    4 Answers

  • Pachal Debbarma
    PLUS
    Pachal Debbarma
    Courses Plus Student 3,597 Points

    Output the value in the variable timestamp into your template. i do not get what the question is asking for?

    Posted June 18, 2017 4:46pm by Pachal Debbarma
    Pachal Debbarma
    Courses Plus Student 3,597 Points
    • Python
    • Customizing Django Templates
    • Building Custom Tags
    • Use the Date Filter

    0 Answers

  • Lydia O' Brien
    Lydia O' Brien
    4,014 Points

    Could somebody explain this?

    Posted June 7, 2017 3:47am by Lydia O' Brien
    Lydia O' Brien
    4,014 Points
    • Python
    • Customizing Django Templates
    • Building Custom Tags
    • Use the Date Filter

    0 Answers

  • Ammar Fatihallah
    Ammar Fatihallah
    7,417 Points

    Getting a No reverse match for 'course'

    Posted April 8, 2017 1:17am by Ammar Fatihallah
    Ammar Fatihallah
    7,417 Points
    • Python
    • Customizing Django Templates
    • Building Custom Tags
    • Complex Template Tags

    1 Answer

  • Jonathan Prada
    Jonathan Prada
    7,039 Points

    I get TemplateSyntaxError [SOLVED]

    Posted March 30, 2017 1:14pm by Jonathan Prada
    Jonathan Prada
    7,039 Points
    • Python
    • Customizing Django Templates
    • Building Custom Tags
    • DIY Custom Tags

    2 Answers

  • Jacqueline McKinney
    Jacqueline McKinney
    2,627 Points

    Create an inclusion tag: Challenge Task 4 of 5, Task 1 keeps failing after successful completion

    Posted March 18, 2017 6:33pm by Jacqueline McKinney
    Jacqueline McKinney
    2,627 Points
    • Python
    • Customizing Django Templates
    • Building Custom Tags
    • Create An Inclusion Tag

    1 Answer

  • Natan Becker
    Natan Becker
    7,044 Points

    list.html task2

    Posted November 2, 2016 10:43pm by Natan Becker
    Natan Becker
    7,044 Points
    • Python
    • Customizing Django Templates
    • Building Custom Tags
    • Use the Date Filter

    1 Answer

  • Edward Seibert
    Edward Seibert
    32,055 Points

    Import from courses.models doesn't resolve.

    Posted September 28, 2016 8:08pm by Edward Seibert
    Edward Seibert
    32,055 Points
    • Python
    • Customizing Django Templates
    • Building Custom Tags
    • DIY Custom Tags

    2 Answers

  • Nicolas Baranowski
    Nicolas Baranowski
    1,992 Points

    Modifying 'Read more' so it just shows the full text that is being truncated

    Posted September 25, 2016 8:20pm by Nicolas Baranowski
    Nicolas Baranowski
    1,992 Points
    • Python
    • Customizing Django Templates
    • Building Custom Tags
    • Built-in Tags and Filters

    1 Answer

  • Chris Komaroff
    PLUS
    Chris Komaroff
    Courses Plus Student 13,672 Points

    register.simple_tag(newest_course) - don't put quotes around newest_course

    Posted July 25, 2016 5:01am by Chris Komaroff
    Chris Komaroff
    Courses Plus Student 13,672 Points
    • Python
    • Customizing Django Templates
    • Building Custom Tags
    • DIY Custom Tags

    1 Answer

  • Avani Agrawal
    Avani Agrawal
    1,638 Points

    "from django import template" does not seem to recognize "template" and says unresolved reference. Any suggestions?

    Posted May 17, 2016 8:18pm by Avani Agrawal
    Avani Agrawal
    1,638 Points
    • Python
    • Customizing Django Templates
    • Building Custom Tags
    • DIY Custom Tags

    3 Answers

  • Brendan Whiting
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Brendan Whiting
    Front End Web Development Techdegree Graduate 84,697 Points

    Why is the Django template syntax so different from Python?

    Posted January 6, 2016 11:58pm by Brendan Whiting
    .a{fill-rule:evenodd;}techdegree seal-36
    Brendan Whiting
    Front End Web Development Techdegree Graduate 84,697 Points
    • Python
    • Customizing Django Templates
    • Building Custom Tags
    • DIY Custom Tags

    2 Answers

  • Ethan Chae
    Ethan Chae
    18,747 Points

    Customizing Django Templates Create an Inclusion Tag

    Posted December 28, 2015 3:56pm by Ethan Chae
    Ethan Chae
    18,747 Points
    • Python
    • Customizing Django Templates
    • Building Custom Tags
    • Create An Inclusion Tag

    3 Answers

  • Sandro Costa
    Sandro Costa
    13,151 Points

    Is there any performance impact in using custom template tags vs a database query passed into the view?

    Posted September 30, 2015 8:42am by Sandro Costa
    Sandro Costa
    13,151 Points
    • Python
    • Customizing Django Templates
    • Building Custom Tags
    • DIY Custom Tags

    1 Answer

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

    Treehouse

  • About
  • Blog
  • Careers
  • Community
  • Stories
  • Shop
  • Contact
  • Gift Card

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Perks
  • Treehouse for Libraries
  • Treehouse for Teams
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2022 Treehouse Island, Inc.