I'm trying to create an application in Python 3.2 and I use tabs all the time for indentation, but even the editor changes some of them into spaces and then print out "inconsistent use of tabs and spaces in indentation" when I try to run the program.
I'm a beginner in python programming. I would be glad if I could get some overall tips on my code.
from django.db import models
from django.utils import timezone
from django.contrib.auth.models import User
class Post(models.Model):
title = models.CharField(max_length=100)
content = models.TextField()
date_posted = models.DatTimeField(defult=timezone.now)
author = models.ForeignKey(User, on_delete=models.CASCADE)