Re: custom template tags and template loaders

2009-07-30 Thread Daymien
Hi guys, I got the solution for me. Read here: http://groups.google.com/group/django-users/browse_thread/thread/7b7dad85530eceed/63be3eb5e41ce9f0#63be3eb5e41ce9f0 regards --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gro

Re: custom template tags and template loaders

2009-07-30 Thread chefsmart
Daymien has a similar issue at http://groups.google.com/group/django-users/t/7b7dad85530eceed Just wanted to link the two discussions. On Jul 30, 12:11 pm, chefsmart wrote: > There is absolutely no difference between my dev and production, only > the database details in the settings.py are dif

Re: custom template tags and template loaders

2009-07-30 Thread chefsmart
There is absolutely no difference between my dev and production, only the database details in the settings.py are different. The 'django.template.loaders.app_directories.load_template_source' is not included in both my dev as well as my production setups (which is in testing phase now). So since

Re: custom template tags and template loaders

2009-07-29 Thread krylatij
And do you want to avoid 'django.template.loaders.app_directories.load_template_source' ? It will work only when your template will not be found in default template directory So i guess there is no overhead when you use it in production. May be you have DEBUG=True in your development version and

Re: custom template tags and template loaders

2009-07-29 Thread chefsmart
I got no other custom tags. This is pretty confusing. It works perfectly on the django dev server with no code changes. Don't really know enough about the pre-requisites (settings.py, etc) for using custom templatetags, so haven't progressed much in my troubleshooting. On Jul 29, 9:24 pm, krylat

Re: custom template tags and template loaders

2009-07-29 Thread krylatij
And what about other custom tags? I actually have no more ideas, what it can be. --~--~-~--~~~---~--~~ 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.co

Re: custom template tags and template loaders

2009-07-29 Thread chefsmart
I get the following message. Please note that everything is ok in my development setup, but the same thing doesn't work in my production setup. TemplateSyntaxError at /staff/ 'smart_if' is not a valid tag library: Could not load template library from django.templatetags.smart_if, No module name

Re: custom template tags and template loaders

2009-07-29 Thread krylatij
I my case custom tags are still working after i removed ''django.template.loaders.app_directories.load_template_source'' from settings. You can see comment in site-packages\django\template\loaders \app_directories.py: """ Wrapper for loading templates from "templates" directories in INSTALLED_APPS

Re: custom template tags and template loaders

2009-07-29 Thread chefsmart
I am using the smart_if templatetag from http://www.djangosnippets.org/snippets/1350/ but when i remove the 'django.template.loaders.app_directories.load_template_source' this custom templatetag stops working. I am pretty sure this loader is being used for templatetags as well. On Jul 29, 12:4

Re: custom template tags and template loaders

2009-07-29 Thread krylatij
No, this settings 'django.template.loaders.app_directories.load_template_source' means, that django will look for templates( not tags ) in each(!) application you have in INSTALLED_APPS (if application folder has folder 'templates' ). On Jul 28, 11:23 pm, chefsmart wrote: > Is 'django.template

custom template tags and template loaders

2009-07-28 Thread chefsmart
Is 'django.template.loaders.app_directories.load_template_source' required in the TEMPLATE_LOADERS setting for custom template tags to work? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To pos