Hello all,
Let's say that I have this string:
s = 'Hello!'
When I pass this variable to a template, I want it to be rendered as
raw html. Looking at the docs I see that I can either use the safe
filter:
{{s|safe}}
or disable autoescape:
{%autoescape off}
{{s}}
{%endautoescape%}
or inside th
Karen, thanks for your effort. It is bizarre that the problem seems to
be gone after I have restarted the computer. I don't know if I can
reproduce the situation (in fact I hope I can't).
On May 16, 6:17 pm, Karen Tracey wrote:
> On Sat, May 16, 2009 at 12:23 AM, ozgurisil wrote
Hello all,
I have spent considerable time going through the documentation but
have been unable to find clear information about how to save an image
after uploading it via a form. I think I have somehow missed it. After
trial and error, I have done it in this way:
content = request.FILES['ima
Hello,
When I try to send an e-mail via mail_admins method, I receive an
SMTPDataError with the value: (503, '5.5.1 RCPT first. e9sm3788894muf.
32').
Here is the code:
def send_mail(self):
from django.core.mail import mail_admins, send_mail
mail_admins(self.cleaned_data['su
Here's a template filter that has been working without problems till
recently, before I updated Django source:
from pm_core.models import PMUser
@register.filter
def can_manage_market(user, market):
if not isinstance(user, PMUser): return False
return user.can_manage_market(market)
The
5 matches
Mail list logo