Sunday, 15 February 2015

python - Django - Uncaught IndentationError while rendering -



python - Django - Uncaught IndentationError while rendering -

the error occurs in next line of template, , couldn't manage understand why?

in template /usr/local/django/app/templates/main.html, error @ line 51 <script type="text/javascript" src="{% url django.views.i18n.javascript_catalog %}"></script>

and precise error is:

caught indentationerror while rendering: unindent not match outer indentation level (views.py, line 272)

the line 272 in views.py is:

elif request.post.get('hiddenfield') == 'ad' , settingsmanager.get().ad_integ == 1: form = adsettingsform(request.post) # <-----line 272 if form.is_valid(): form.save()

any ideas?

edit1 there not indendation errors in of files in project. controlled python's py_compile lib.

update1 alright, very, awkward: now, i'm getting whole different error in machine have (where installed re-create of project)

caught viewdoesnotexist while rendering: not import wauthportal.wauthapp.views. error was: no module named views

in template /usr/local/django/wauthadmin/templates/main.html, error @ line 51 <script type="text/javascript" src="{% url django.views.i18n.javascript_catalog %}"></script>

this happens if mix tab , spaces. please see have used 4 spaces in every indentation. if using text editor sublime text pressing ctrl+a show spaces.

python django

No comments:

Post a Comment