thanks,I do,i just forget restart the web server,
----- Original Message ----- 
From: "Daniel Roseman" <roseman.dan...@googlemail.com>
To: "Django users" <django-users@googlegroups.com>
Sent: Tuesday, February 17, 2009 5:37 PM
Subject: Re: how to write templatetags



On Feb 17, 9:16 am, "fuceck" <yinminyinmin2...@163.com> wrote:
> hello,everybody,
> i have a problem with templatetags,I difine a template change_gender.py in my 
> address app,
> but i meet with with problem:
>
> Could not load template library from django.templatetags.change_gender, No 
> module named change_gender
>
> the dir structure is:
> project-newtest
> -address
> -templatetags
> -change_gender.py
>
> someone said i should do some configuration, i just meet django for 2days,
> please help me to solve this problem,thanks.

Have you got a (blank) __init__.py file in each of those
subdirectories? This is a Python requirement, without it Django can't
import the code.
--
DR.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to