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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T09:48:26+00:00 2026-06-10T09:48:26+00:00

Building my Django app, I have been using some code from django-basic-app , in

  • 0

Building my Django app, I have been using some code from django-basic-app, in particular the inlines application.

In my blog app, I load inlines in a template (here in blog/templates/admin/blog/change_form.html)

{% extends "admin/change_form.html" %}

{% block extrahead %}
  {% load adminmedia inlines %}
  {{ block.super }}

When I do that, I have an error

TemplateSyntaxError at /admin/blog/post/1/

‘inlines’ is not a valid tag library: ImportError raised loading
inlines.templatetags.inlines: No module named models

The structure of the project is

blog/
    templates/admin/blog/
                        change_form.html
    ...
inlines/
    __init__.py
    models.py
    templatetags/
           __init__.py
           inlines.py
    ...

and with the import in inlines/templatetags/inlines.py

from django import template
from inlines.models import InlineType
from inlines.parser import inlines
import re

inlines is present in INSTALLED_APPS and I am using Django 1.4 with python 2.7

I am trying to have a standalone application (not linked to the project then) but I don’t get why it is not detected by the blog app. The inlines models are detected by django, I am able to manage it using the admin interface, just the templatetags is failing.

  • 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-06-10T09:48:28+00:00Added an answer on June 10, 2026 at 9:48 am

    Try to rename inlines.py module to inlines_tags.py for example, so a module and a package will not be same named. And dont forget to remove all old *.pyc files from templatetags folder

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

Sidebar

Related Questions

Am building an app using Django as my workhorse. All has been well so
I am building a facebook application (using Django) in which I have to read
I'm building a Django app and I'm using Spynner for web crawling. I have
I am building an app to learn Django and have started with a Contact
I am learning Python and building my first web app. I have been going
I'm building a RESTful app on Django and Tasty Pie. I have a problem
I am building a django app as part of it I have a page
Im building a customized comments app for django, using django comments itself. Ive followed
I am building a django app that uses SQLAlchemy over MySQL. I am using
I am building an app in django and I have decided to add historical

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.