django book-es-1.0-0.1-r789

381

Upload: learn-pure-insanity

Post on 28-Nov-2014

5.212 views

Category:

Education


7 download

DESCRIPTION

 

TRANSCRIPT

" print "Los ultimos 10 libros" print "

  • " conexion = MySQLdb.connect(user=yo, passwd=dejame_entrar, db=mi_base) cursor = conexion.cursor() cursor.execute("SELECT nombre FROM libros ORDER BY fecha_pub DESC LIMIT 10") for fila in cursor.fetchall(): print "
  • %s" % fila[0] print "

" revisin 789 del 9 de noviembre de 2009 20. 2 CAPTULO 3. INTRODUCCIN A DJANGO print "