I hope they are documented to some extent. Is there any resource to
know such hidden gems... Its really very helpful at times.
On Apr 9, 8:56 am, Rajesh Dhawan <[EMAIL PROTECTED]> wrote:
> On Apr 9, 11:52 am, stranger <[EMAIL PROTECTED]> wrote:
>
> > Thanks a lot it worked... I never heard of MON
On Apr 9, 11:52 am, stranger <[EMAIL PROTECTED]> wrote:
> Thanks a lot it worked... I never heard of MONTHS_3_REV. Must be a new
> one or I shouldn't have went through documentation. Anyway thanks
It's not documented but there are a lot of such helpful gems hidden
in django.utils.*
--~--~
Thanks a lot it worked... I never heard of MONTHS_3_REV. Must be a new
one or I shouldn't have went through documentation. Anyway thanks
On Apr 9, 7:47 am, Rajesh Dhawan <[EMAIL PROTECTED]> wrote:
> Hi,
>
>
>
> > Now I want my url to be /2008/apr/08 instead of 2008/04/08. Thats
> > means the 'a
Hi,
>
> Now I want my url to be /2008/apr/08 instead of 2008/04/08. Thats
> means the 'apr' string coming from url should be converted to 04
> integer for comparision. Any help
Try this in your view where you need this conversion:
from django.utils.dates import MONTHS_3_REV
month_int = MONT
hello group,
I am writing a blog application. I am not using generic view
as I have customized things. Now I wrote a helper.py in which I have
def get_post(year, month, day, slug):
year, month, day = int(year), int(month), int(day)
try:
return Post.objects.get(
5 matches
Mail list logo