tangowithcode / tango_with_django_19

A beginners guide to web programming with Python / Django 1.9
Apache License 2.0
207 stars 188 forks source link

9.6 Creating register() View #33

Closed aisflat439 closed 8 years ago

aisflat439 commented 8 years ago

I get a syntax error here every time. I'm using python3 and the correct django but there may be some setting. It's fixed by adding parens on the print statement. `else:

Invalid form or forms - mistakes or something else?

        # Print problems to the terminal.
        print user_form.errors, profile_form.errors
else:
    # Not a HTTP POST, so we render our form using two ModelForm`
maxwelld90 commented 8 years ago

Hi - thanks for this. What chapter/section was this in? We've just gone through the latter chapters over the past few days and picked up a load of issues like this. I'll leave this open for now...

Cheers, David

maxwelld90 commented 8 years ago

I just saw it, I've patched it up. I'll close this now.