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 604361
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T17:01:47+00:00 2026-05-13T17:01:47+00:00

I realize that templatetags are mainly used specific to applications which are INSTALLED_APPS, such

  • 0

I realize that templatetags are mainly used specific to applications which are INSTALLED_APPS, such as articles/templatetags/, but in my case I need tags for generic things such as navigation which doesn’t have an application.

I’m currently keeping templatetags in my project dir. and in order for it to get picked up I added my project to INSTALLED_APPS – this works but I’m not sure if this was the right thing to do – are there any downsides?

  • 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-13T17:01:48+00:00Added an answer on May 13, 2026 at 5:01 pm

    I would do it the same way Django provides its additional template tags, i.e. creating an own package/application( django.contrib.humanize, django.contrib.markup, django.contrib.webdesign)

    These are just three “normal” packages, that have a templatetags package inside. The name of the module inside tempaltetags is the same as the package/application name (e.g. humanize.py).

    Then put it somewhere where Python can find it.

    You could also create some kind of “meta” package templatetags and put everything there, e.g.

    templatetags
     - navigation
       - __init__.py
       - templatetags
          - _init__.py
          - navigation.py
     - other
      - ...
    

    Of course you have to add those to you INSTALLED_APPS (e.g. templatetags.navigation) and load them in your template (e.g. {% load navigation %}).

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

Sidebar

Related Questions

I realize that far is compiler specific, but my expectation is that the placement
I realize that they are different beast used to solve different problems, but I
I realize that the answer is probably hardware specific, but I'm curious if there
I realize that literally it translates to Java Enterprise Edition. But what I'm asking
I realize that since UNIX sockets are platform-specific, there has to be some non-Java
I realize that this would be COMPLETELY bad practice in normal situations, but this
I realize that this question is impossible to answer absolutely, but I'm only after
I realize that this question has been asked 100times but none that I have
I realize that what I am trying to do isn't safe. But I am
I realize that GWt doesn't compile the classes not in the Client package. But

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.