Ver Mensaje Individual
  #5 (permalink)  
Antiguo 24/02/2012, 13:33
Avatar de Copia
Copia
 
Fecha de Ingreso: noviembre-2009
Mensajes: 309
Antigüedad: 14 años, 5 meses
Puntos: 4
Respuesta: tengo errores al producir modelForm

Gracias por su respuesta, pero si quito el segundo import el error es este:
NameError at /new_book/
name 'mysite' is not defined

y si luego lo dejo asi
title = forms.CharField(max_length=3,
widget=forms.Select(choices=forms.TITLE_CHOICES))

el error es este:
AttributeError at /new_book/
'module' object has no attribute 'TITLE_CHOICES'

que extraño.
__________________
Dejando una huella de mi existencia por la red en http://tiricaya.com