예제 #1
0
파일: views.py 프로젝트: kotchin/pins
def index( r ) :
	try :
		images = controllers.get_list_of_pins( offset=3 )
		return render( r, 'pins_core/list.html', { 'images' : images } )
	except exceptions.NoResults as e :
		return render( r, 'pins_core/error.html', { 'error' : e } )
예제 #2
0
파일: views.py 프로젝트: kotchin/pins
def pins( r, image_year=0, image_month=0, image_day=0 ) :
	images = controllers.get_list_of_pins( image_year, image_month, image_day )
	return render( r, 'pins_core/pinboard.html', { 'images' : images } )