-5

This is views.py file which show error:

Image 1

I'm also uploading the image which show what is the error:

Image 2

halfer
  • 19,824
  • 17
  • 99
  • 186
  • 2
    can you please share the code here instead of posting a picture? that way we would be able to check whether the indentation is proper or not – Rajan Sharma Feb 10 '19 at 15:03
  • This question has been highly downvoted for several reasons: (1) the use of txtspk, which gives the impression the writer is unwilling to use a spell-checker; (2) poor formatting, which does not make the problem easy to read; (3) begging of volunteers, (4) [code presented in an image](http://idownvotedbecau.se/imageofcode). – halfer Feb 10 '19 at 20:11

1 Answers1

2

This is not a Django issue.

The error message is clear about the problem: TabError: inconsistent use of tabs and spaces in indentation

It is not clear from the screenshot, but your editor should have a way to indicate whitespace characters in the background. This will let you see where you have a tab character.

Also, refer to this question: "inconsistent use of tabs and spaces in indentation"

malberts
  • 2,488
  • 1
  • 11
  • 16