You are not logged in.

  • Index
  •  » Django
  •  » Error: my tag is not a valid tag library

#1 2007-10-24 08:56:53

gms3651
Member
Registered: 2007-10-24
Posts: 4

Error: my tag is not a valid tag library

Hello,
I just installed my django app onto the webfaction servers.  However, when I try to access my app I get the following error:

TemplateSyntaxError at /
'sc_details' is not a valid tag library: Could not load template library from django.templatetags.sc_details, No module named us.forms

////////////

I'm not sure why it's looking in django.templatetags.sc_details.  I have a folder from within my app myproject.plush.templatetags.sc_details.  That is where my sc_details file is located.  Do I somehow need to tell Django where to look to view my custom tag?

Thanks

Offline

 

#2 2007-10-24 10:00:52

IAIHMB
Member
From: Hudson, Florida.
Registered: 2006-09-19
Posts: 1362

Re: Error: my tag is not a valid tag library

Hello,

1) Has "myproject.plush" been added to INSTALLED_APPS in settings.py?
2) What line in your template is throwing the error?

Last edited by IAIHMB (2007-10-24 10:01:20)


-David Sissitka

Offline

 

#3 2007-10-24 10:20:09

gms3651
Member
Registered: 2007-10-24
Posts: 4

Re: Error: my tag is not a valid tag library

IAIHMB,
Here is what I have in Installed Apps

INSTALLED_APPS = (
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.admin',
    'myproject.plush',
)

Line 2 in my template is throwing the error

In template /home/plush/webapps/plush/myproject/plush/Templates/leftnav.htm, error at line 2

{% load sc_details %}

Offline

 

#4 2007-10-24 22:50:01

stderr
Member
From: Reno, NV
Registered: 2007-10-16
Posts: 3
Website

Re: Error: my tag is not a valid tag library

I'm willing to bet that you're trying to to import a unavailable module in your sc_details template tag file.   Check that out.

Offline

 
  • Index
  •  » Django
  •  » Error: my tag is not a valid tag library

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson