def get_daterange_or_404(start, end):
 dates = DateForm(data={'start': start, 'end': end})
 if (not dates.is_valid()):
  logger.info('Dates parsed were not valid.')
  raise http.Http404
 return (dates.cleaned_data['start'], dates.cleaned_data['end'])

def get_daterange_or_404 ( start , end ) : dates = DateForm ( data = { 'start' : start , 'end' : end } ) if ( not dates . is_valid ( ) ) : logger . info ( 'Dates parsed were not valid.' ) raise http . Http404 return ( dates . cleaned_data [ 'start' ] , dates . cleaned_data [ 'end' ] )
parse and validate a pair of yyyymmdd date strings .