unindent does not match any outer indentation level

506 views
Skip to first unread message

emonk

unread,
Mar 5, 2009, 9:04:24 AM3/5/09
to django...@googlegroups.com
HI,
I have a form model, and i cant find any error in syntax, however the browser report this execption
"

IndentationError at /brou/

unindent does not match any outer indentation level (forms.py, line 178)
Request Method: GET
Request URL: http://localhost/brou/
Exception Type: IndentationError
Exception Value:
unindent does not match any outer indentation level (forms.py, line 178)
Exception Location: /home/monk/documents/prodie/proyectos/brou/sac/views.py in <module>, line 8
Python Executable: /usr/bin/python
Python Version: 2.5.4
Python Path: ['/home/monk/documents/prodie/proyectos', '/usr/lib/python2.5', '/usr/lib/python2.5/plat-linux2', '/usr/lib/python2.5/lib-tk', '/usr/lib/python2.5/lib-dynload', '/usr/local/lib/python2.5/site-packages', '/usr/lib/python2.5/site-packages', '/usr/lib/python2.5/site-packages/Numeric', '/usr/lib/python2.5/site-packages/PIL', '/var/lib/python-support/python2.5', '/var/lib/python-support/python2.5/gtk-2.0', '/usr/lib/python2.5/site-packages/wx-2.6-gtk2-unicode']
Server time: jue, 5 Mar 2009 11:58:30 -0200
"
This is the code in forms.py
"
class registroForm(forms.Form):
.
.
    importeMaximoCuotaSugerida = forms.IntegerField(
                                    required=False,
                                    label='Importe maximo cuota sugerida a descontar',
                                    max_value=999999999999999,
                                    help_text='13 enteros y 2 decimales, sin separacion por coma',
                                    error_messages={
                                                'invalid':'Ingrese solo numeros!',
                                                'max_value':'Ha exedido el maximo de caracteres permitidos!'
                                                }
                                    )

"
--
---
Key fingerprint = 0CCB D0F6 47F2 5F70 6F40  53D3 7537 A0E4 94FC 40EE
----------------------------------

emonk

unread,
Mar 5, 2009, 9:05:49 AM3/5/09
to django...@googlegroups.com
the line 178 is -> importeMaximoCuotaSugerida = forms.IntegerField(

emonk

unread,
Mar 5, 2009, 9:24:45 AM3/5/09
to django...@googlegroups.com
nevermind, is a tabulation error
duuh!
Reply all
Reply to author
Forward
0 new messages