Just to echo on advice already given, your indenting is a real mess here.

You can't get away with bad indenting like you can in other languages,
because Python relies on indenting for the flow of code. (i.e. you use
intends rather than brackets).

You are also using mixed indents (some are 4 spaces, some are 8, some are
1), you need to make them all consistent. Personally, I use 4 space indent
without tabs.

Get the indents right, and the rest will follow :)

Cal

On Sat, Jun 16, 2012 at 11:10 AM, cmac0tt <corey.macdon...@gmail.com> wrote:

> So python is what I chose to learn, using the Django framework.
>
> I had this project working, then it just stopped out of nowere when I was
> about to show one of my two bosses. Anyone able to give any insight? I put
> everything in a DPASTE.
>
> First it kept telling me that line 45 (which didnt exist was "unindented",
> I did a %retab and fixed it. Not sure how, my .vimrc settings are correct.
> But after that starting bugging out then it didnt like my final redirect
> even though it was working before hand. Note there is no other errors. It
> basically doesnt like my HttpResponseRedirect at the end of the last view
> (see dpaste)
>
> Remember I am total n00b so snake talk can go over my head sometimes. So
> if you feel like helping please try to explain why not just what if that
> makes sense (if you dont mind). I would appreciate it greatly!
>
> here is the dpaste:
>
> http://dpaste.com/760213/
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/K4uyV6l6mz8J.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to