lower()

is a Python string method to return a string converted to lowercase

—-

e.g.,

def get_absolute_url(self):

return “/card/%s/%s/” % (self.pub_date.strftime(“%Y/%b/%d”).lower(), self.slug)

Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

© 2011 Web Oom Suffusion theme by Sayontan Sinha
Switch to our mobile site
Top Footer