Django 2.0.x Documentationmodels.CharField(max_length=70) def __str__(self): return self.full_name class Article(models.Model): pub_date = models.DateField() headline = models.CharField(max_length=200) 7 Django Documentation, Release matching query does not exist. # Create an article. >>> from datetime import date >>> a = Article(pub_date=date.today(), headline='Django is cool', ... content='Yeah.', reporter=r) >>> a.save() # Now the admin site: mysite/news/models.py from django.db import models class Article(models.Model): pub_date = models.DateField() headline = models.CharField(max_length=200) content = models.TextField()0 码力 | 1880 页 | 6.41 MB | 1 年前3
Django 1.11.x Documentationdef __str__(self): # __unicode__ on Python 2 return self.full_name class Article(models.Model): pub_date = models.DateField() headline = models.CharField(max_length=200) 7 Django Documentation, Release matching query does not exist. # Create an article. >>> from datetime import date >>> a = Article(pub_date=date.today(), headline='Django is cool', ... content='Yeah.', reporter=r) >>> a.save() # Now the admin site: mysite/news/models.py from django.db import models class Article(models.Model): pub_date = models.DateField() headline = models.CharField(max_length=200) content = models.TextField()0 码力 | 1878 页 | 6.40 MB | 1 年前3
Django 1.8.x Documentationdef __str__(self): # __unicode__ on Python 2 return self.full_name class Article(models.Model): pub_date = models.DateField() headline = models.CharField(max_length=200) 7 Django Documentation, Release Release 1.8.20.dev20180306181007 # Create an article. >>> from datetime import date >>> a = Article(pub_date=date.today(), headline='Django is cool', ... content='Yeah.', reporter=r) >>> a.save() # Now the admin site: mysite/news/models.py from django.db import models class Article(models.Model): pub_date = models.DateField() headline = models.CharField(max_length=200) content = models.TextField()0 码力 | 1685 页 | 6.01 MB | 1 年前3
Django 3.0.x DocumentationCharField(max_length=70) def __str__(self): return self.full_name class Article(models.Model): pub_date = models.DateField() headline = models.CharField(max_length=200) content = models.TextField() matching query does not exist. # Create an article. >>> from datetime import date >>> a = Article(pub_date=date.today(), headline='Django is cool', ... content='Yeah.', reporter=r) >>> a.save() # admin site: mysite/news/models.py from django.db import models class Article(models.Model): pub_date = models.DateField() headline = models.CharField(max_length=200) content = models.TextField()0 码力 | 3085 页 | 2.95 MB | 1 年前3
Django 2.1.x Documentationpage) 7 Django Documentation, Release 2.1.16.dev20191202082911 (continued from previous page) pub_date = models.DateField() headline = models.CharField(max_length=200) content = models.TextField() matching query does not exist. # Create an article. >>> from datetime import date >>> a = Article(pub_date=date.today(), headline='Django is cool', ... content='Yeah.', reporter=r) >>> a.save() # Now site: Listing 2: mysite/news/models.py from django.db import models class Article(models.Model): pub_date = models.DateField() headline = models.CharField(max_length=200) content = models.TextField()0 码力 | 1910 页 | 6.49 MB | 1 年前3
Django 5.1.2 DocumentationDocumentation, Release 5.1.2.dev20240916204136 (continued from previous page) class Article(models.Model): pub_date = models.DateField() headline = models.CharField(max_length=200) content = models.TextField() query does not exist. # Create an article. >>> from datetime import date >>> a = Article( ... pub_date=date.today(), headline="Django is cool", content="Yeah.", reporter=r ... ) >>> a.save() # Now site: Listing 2: mysite/news/models.py from django.db import models class Article(models.Model): pub_date = models.DateField() headline = models.CharField(max_length=200) content = models.TextField()0 码力 | 2923 页 | 9.62 MB | 1 年前3
Django 5.1 DocumentationDocumentation, Release 5.1.1.dev20240808115027 (continued from previous page) class Article(models.Model): pub_date = models.DateField() headline = models.CharField(max_length=200) content = models.TextField() query does not exist. # Create an article. >>> from datetime import date >>> a = Article( ... pub_date=date.today(), headline="Django is cool", content="Yeah.", reporter=r ... ) >>> a.save() # Now site: Listing 2: mysite/news/models.py from django.db import models class Article(models.Model): pub_date = models.DateField() headline = models.CharField(max_length=200) content = models.TextField()0 码力 | 2917 页 | 9.59 MB | 1 年前3
Django 1.10.x Documentationdef __str__(self): # __unicode__ on Python 2 return self.full_name class Article(models.Model): pub_date = models.DateField() headline = models.CharField(max_length=200) 7 Django Documentation, Release Release 1.10.9.dev20171123183751 # Create an article. >>> from datetime import date >>> a = Article(pub_date=date.today(), headline='Django is cool', ... content='Yeah.', reporter=r) >>> a.save() # Now the admin site: mysite/news/models.py from django.db import models class Article(models.Model): pub_date = models.DateField() headline = models.CharField(max_length=200) content = models.TextField()0 码力 | 1817 页 | 6.19 MB | 1 年前3
Django 3.0.x Documentation(continues on next page) 7 Django Documentation, Release 3.0.15.dev (continued from previous page) pub_date = models.DateField() headline = models.CharField(max_length=200) content = models.TextField() matching query does not exist. # Create an article. >>> from datetime import date >>> a = Article(pub_date=date.today(), headline='Django is cool', ... content='Yeah.', reporter=r) >>> a.save() # Now site: Listing 2: mysite/news/models.py from django.db import models class Article(models.Model): pub_date = models.DateField() headline = models.CharField(max_length=200) content = models.TextField()0 码力 | 2002 页 | 6.73 MB | 1 年前3
Django 5.0.x DocumentationDocumentation, Release 5.0.2.dev20240126115907 (continued from previous page) class Article(models.Model): pub_date = models.DateField() headline = models.CharField(max_length=200) content = models.TextField() query does not exist. # Create an article. >>> from datetime import date >>> a = Article( ... pub_date=date.today(), headline="Django is cool", content="Yeah.", reporter=r ... ) >>> a.save() # Now site: Listing 2: mysite/news/models.py from django.db import models class Article(models.Model): pub_date = models.DateField() headline = models.CharField(max_length=200) content = models.TextField()0 码力 | 2878 页 | 9.60 MB | 1 年前3
共 54 条
- 1
- 2
- 3
- 4
- 5
- 6













