IndentationError: unindent does not match any outer indentation level

The Short Explanation:
Open your app folder and edit your code in Sublime Text from now on to avoid indentation errors.

**Head to the Downloads section of Sublime Text and download the most recent version

The Longer One:
If after finding your code is entered in exactly as the teacher types it, indents in line, no extra spaces… Well. Last but not least, check your editor.

If you are using an editor that is NOT Sublime Text (Version 2 at the time of this blog post, Aug 2016), well then, your editor may be using spaces instead of REAL tabs, throwing an error.

This means to our human eye, the code is correct! But Python knows better and can pick out any phony editor’s space substitutions for tabs any day.

Notepad and TextWrangler have failed us in this field, reportedly.

I had an issue with this error on this lesson:

Intro to Backend >> Templates >> Testing Statement Syntax

Advertisements

Author: ajoannaproject

Studying Udacity's Full Stack Web Developer program and passing on my improvements, hints, hacks, and updates to other students via ajoannaproject.wordpress.com.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s