django month name from month number
from django import template
import calendar
register = template.Library()
@register.filter(name='month_name')
def month_name(month_number):
return calendar.month_name[month_number]
from django import template
import calendar
register = template.Library()
@register.filter(name='month_name')
def month_name(month_number):
return calendar.month_name[month_number]