voici mon code:créer Ma première application Django
from django.db import models
from django.utils.encoding import smart_unicode
class SignUp(models.Model):
first_name = models.CharField(max_length=120, null=True, blank=True)
last_name = models.CharField(max_length=120, null=True, blank=True)
email = models.EmailField()
timestamp = models.DateTimeField(auto_now_add=True, auto_now=False)
updated = models.DateTimeField(auto_now_add=False, auto_now=True)
def __unicode__(self):
return smart_unicode(self.email)
est ici ce que je reçois. S'il vous plaît, aidez, merci.
updated = models.DateTimeField(auto_now_add=False, auto_now=True)
^
IndentationError: unindent ne correspond à aucun niveau d'indentation externe
Salut. python est le langage qui a une politique d'identification très forte. il suffit de lire ce http://legacy.python.org/dev/peps/pep-0008/ –