
24/02/2012, 13:33
|
 | | | Fecha de Ingreso: noviembre-2009
Mensajes: 309
Antigüedad: 15 años, 2 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. |