Closed GoogleCodeExporter closed 9 years ago
And to add:
from django.conf.global_settings import TEMPLATE_CONTEXT_PROCESSORS
on settings file.
Original comment by jonas....@googlemail.com
on 24 Jun 2008 at 10:43
This let to add to the emails sent anything as:
-
{% blocktrans %}The {{ SITE_NAME }} team{% endblocktrans %} - {{ SITE_URL }}
Original comment by jonas....@googlemail.com
on 24 Jun 2008 at 5:36
Mmmmm... the idea is good, but I don't think a context processor is needed to
accomplish that.
I have commit a solution to this on trunk. Look at it to see how it's solved.
Original comment by david.ru...@gmail.com
on 25 Jun 2008 at 8:20
I saw the solution on models.py file [1], but does it works on whatever
template? The
advantage of to use a context processor is that.
By example, django-contact-form is another pluggable application that could use
these
variables too: {{ SITE_NAME }}, {{ SITE_DOMAIN }}, {{
SITE_URL }}
[1]
http://code.google.com/p/django-profile/source/browse/trunk/userprofile/models.p
y
Original comment by jonas....@googlemail.com
on 29 Jun 2008 at 12:36
I'm going to add this to the repository. Let me think about it some time.
Original comment by david.ru...@gmail.com
on 1 Jul 2008 at 8:05
I have been thinking about this, and I decided that a pluggable application
wouldn't
have to depend on a context processor variables. It need to be independent of
that,
because the main project could have conflicting dependencies with the
applications
included, in this case django-profile.
Thanks for the report, in any case.
Original comment by david.ru...@gmail.com
on 7 Aug 2008 at 2:02
Original issue reported on code.google.com by
jonas....@googlemail.com
on 24 Jun 2008 at 10:31