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

  • Home
  • SEARCH
  • 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 780429
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T20:04:17+00:00 2026-05-14T20:04:17+00:00

Well, when I’m trying to use ‘inclusion’ in Django, I met some confused problems

  • 0

Well, when I’m trying to use ‘inclusion’ in Django, I met some confused problems that I can’t solve it by myself.

There is the structures for my project.

MyProject---
            App1---
                   __init__.py
                   models.py
                   test.py
                   urls.py
                   views.py
            App2---
                   ...
            template---
                       App1---
                              some htmls
                       App2---
                              ...
            templatetags---
                           __init__.py
                           inclusion_cld_tags.py
            manage.py
            urls.py
            __init__.py
            settings.py

I have registered templatetags folder in the settings.py (Both in Installed APPS & TEMPLATE_DIRS).
But when I want to use {% load inclusion_test %} in my html, it raise an exception like this:

'inclusion_cld_tags' is not a valid tag library: Could not load template library from django.templatetags.inclusion_cld_tags, No module named inclusion_cld_tags

I think there is nothing wrong with my import work, how can I do with that?

Thanks for help!

My django version: 1.0+
My Python version: 2.6.4

  • 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-14T20:04:17+00:00Added an answer on May 14, 2026 at 8:04 pm
    1. The templatetags folder should live in the app folder:

              App1---
                     __init__.py
                     models.py
                     test.py
                     urls.py
                     views.py
                     templatetags---
                             __init__.py
                             inclusion_test.py
                                ...
      
    2. Did you registered the tag?

    Example:

    register = template.Library()   
    @register.inclusion_tag('platform/templatetags/pagination_links.html')
    def pagination_links(page, per_page, link):
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

well. i was use Reactive Extensions (Rx) package async Request,Before you can start writing
Well, for integers I would use NSNumber . But YES and NO aren't objects,
Well I'm doing some Java - C integration, and throught C library werid type
Well after much messing about I have finally got a query that gives sales
Well, I am storing variables inside of a class that will be used for
Well normally I am quite good at figuring and researching problems without guidance however
Well im here because i have a problem. i have code that was created
Well, I have to revive a question that was answered here before. I've made
well I'm trying to create a great playlist of music, only using a sigle
Well I have some checkboxes with id='0','1','2','3' etc. So I need to get text

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.