On Fri, 2006-07-07 at 17:24 +0530, Kenneth Gonsalves wrote: > > On 07-Jul-06, at 9:25 AM, Malcolm Tredinnick wrote: > > > > > On Fri, 2006-07-07 at 09:00 +0530, Kenneth Gonsalves wrote: > >> > >> On 07-Jul-06, at 8:41 AM, Ian Holsman wrote: > >> > >>> > >>> app/templatetags/ ? > >> > >> thats what is not working > > > > It should work. You have some other problem going on. The standard > > queries would be "is the app in INSTALLED_APPS?" and "do you have > > templatetags/__init__.py?" Since I gather you are using code that > > worked > > previously, I guess these are already settled. > > yes > > > > > If this code, unchanged used to work, then can you tell us what error > > you are seeing? Is it really not finding the file, or having a problem > > trying to import it (import errors in custom template tag files filter > > up in strange ways, like mysterious internal server errors with no > > clues > > attached). > > error is: cannot import as not found in django.templatetags > > if i put it in django.templatetags it works - and as said, works in > pre mr. ian holsman had suggested on irc to import it from the shell > and get it to create a pyc file - i did that too, but it is just not > seeing it
Weird. Time to go for the debugging prints, then... In django/templatetags/__init__.py, try putting in some printing there (what does __path__ end up looking like, for example). Maybe in the ImportError exception block, catch the exception and print it out to see if you are raising some import error (although from what you are saying, that shouldn't be happening). Regards, Malcolm --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---

