Julien wrote:
> Yes, my production environment also runs with apache.
>
> But every other apps work using relative references, starting with the
> app names. So all the apps are clearly reachable via the pythonpath.
>
> That template tag library file is the only place where I have to
> include the project name in the path... In fact, it does not seem to
> find that library, since it looks it in the built it django (see error
> message above mentioning "Could not load template
> library from django.templatetags.myapp2_tags").
>
> Ideally, I think that the project name should not be included in any
> import statement.
>
> Any thoughts?
>
I'd agree with you on that. One of the great things about django apps
is that you can distribute the apps outside of the project. Having to
implicitly call the app path with the project path included like with
apache kind of defeats that purpose. However, at least in the mean
time, as you had found, it works by calling that. I'll have to look and
see if there is a way to fix the templatetags loading to fix that, maybe
by overriding it somewhere.
...
--
Jon Wilson