Django 4.0.x DocumentationCharField(max_length=200) content = models.TextField() reporter = models.ForeignKey(Reporter, on_delete=models.CASCADE) def __str__(self): return self.headline 7 Django Documentation, Release 4.0.11 attributes and calling save(). >>> r.full_name = 'Billy Goat' >>> r.save() # Delete an object with delete(). >>> r.delete() 2.1.4 A dynamic admin interface: it’s not just scaffolding – it’s the whole production ready administrative inter- face – a website that lets authenticated users add, change and delete objects. The only step required is to register your model in the admin site: Listing 2: mysite/news/models0 码力 | 2248 页 | 7.90 MB | 1 年前3
Django 4.2.x DocumentationChanging a ManyToManyField to use a through model Changing an unmanaged model to managed How to delete a Django application Django FAQ FAQ: General Why does this project exist? What does “Django” mean CharField(max_length=200) content = models.TextField() reporter = models.ForeignKey(Reporter, on_delete=models.CASCADE) def __str__(self): return self.headline Install it Next, run the Django attributes and calling save(). >>> r.full_name = "Billy Goat" >>> r.save() # Delete an object with delete(). >>> r.delete() A dynamic admin interface: it’s not just scaffolding – it’s the whole house0 码力 | 3305 页 | 3.16 MB | 1 年前3
Django 2.2.x DocumentationCharField(max_length=200) content = models.TextField() reporter = models.ForeignKey(Reporter, on_delete=models.CASCADE) def __str__(self): return self.headline Install it Next, run the Django attributes and calling save(). >>> r.full_name = 'Billy Goat' >>> r.save() # Delete an object with delete(). >>> r.delete() A dynamic admin interface: it’s not just scaffolding – it’s the whole house production ready administrative interface – a website that lets authenticated users add, change and delete objects. It’s as easy as registering your model in the admin site: mysite/news/models.py from django0 码力 | 2915 页 | 2.83 MB | 1 年前3
Django 4.0.x DocumentationCharField(max_length=200) content = models.TextField() reporter = models.ForeignKey(Reporter, on_delete=models.CASCADE) def __str__(self): return self.headline Install it Next, run the Django attributes and calling save(). >>> r.full_name = 'Billy Goat' >>> r.save() # Delete an object with delete(). >>> r.delete() A dynamic admin interface: it’s not just scaffolding – it’s the whole house production ready administrative interface – a website that lets authenticated users add, change and delete objects. The only step required is to register your model in the admin site: mysite/news/models0 码力 | 3184 页 | 3.14 MB | 1 年前3
Django 3.2.x DocumentationCharField(max_length=200) content = models.TextField() reporter = models.ForeignKey(Reporter, on_delete=models.CASCADE) def __str__(self): return self.headline 7 Django Documentation, Release 3.2.21 attributes and calling save(). >>> r.full_name = 'Billy Goat' >>> r.save() # Delete an object with delete(). >>> r.delete() 2.1.4 A dynamic admin interface: it’s not just scaffolding – it’s the whole production ready administrative inter- face – a website that lets authenticated users add, change and delete objects. The only step required is to register your model in the admin site: Listing 2: mysite/news/models0 码力 | 2199 页 | 7.89 MB | 1 年前3
Django 2.1.x DocumentationCharField(max_length=200) content = models.TextField() reporter = models.ForeignKey(Reporter, on_delete=models.CASCADE) def __str__(self): return self.headline 2.1.2 Install it Next, run the Django attributes and calling save(). >>> r.full_name = 'Billy Goat' >>> r.save() # Delete an object with delete(). >>> r.delete() 2.1.4 A dynamic admin interface: it’s not just scaffolding – it’s the whole production ready administrative inter- face – a website that lets authenticated users add, change and delete objects. It’s as easy as registering your model in the admin site: Listing 2: mysite/news/models0 码力 | 1910 页 | 6.49 MB | 1 年前3
Django 4.1.x DocumentationCharField(max_length=200) content = models.TextField() reporter = models.ForeignKey(Reporter, on_delete=models.CASCADE) def __str__(self): return self.headline Install it Next, run the Django attributes and calling save(). >>> r.full_name = 'Billy Goat' >>> r.save() # Delete an object with delete(). >>> r.delete() A dynamic admin interface: it’s not just scaffolding – it’s the whole house production ready administrative interface – a website that lets authenticated users add, change and delete objects. The only step required is to register your model in the admin site: mysite/news/models0 码力 | 3240 页 | 3.13 MB | 1 年前3
Django 3.2.x DocumentationCharField(max_length=200) content = models.TextField() reporter = models.ForeignKey(Reporter, on_delete=models.CASCADE) def __str__(self): return self.headline Install it Next, run the Django attributes and calling save(). >>> r.full_name = 'Billy Goat' >>> r.save() # Delete an object with delete(). >>> r.delete() A dynamic admin interface: it’s not just scaffolding – it’s the whole house production ready administrative interface – a website that lets authenticated users add, change and delete objects. The only step required is to register your model in the admin site: mysite/news/models0 码力 | 3121 页 | 3.08 MB | 1 年前3
Django 2.1.x DocumentationCharField(max_length=200) content = models.TextField() reporter = models.ForeignKey(Reporter, on_delete=models.CASCADE) def __str__(self): return self.headline Install it Next, run the Django attributes and calling save(). >>> r.full_name = 'Billy Goat' >>> r.save() # Delete an object with delete(). >>> r.delete() A dynamic admin interface: it’s not just scaffolding – it’s the whole house production ready administrative interface – a website that lets authenticated users add, change and delete objects. It’s as easy as registering your model in the admin site: mysite/news/models.py from django0 码力 | 2790 页 | 2.71 MB | 1 年前3
Django 3.1.x DocumentationCharField(max_length=200) content = models.TextField() reporter = models.ForeignKey(Reporter, on_delete=models.CASCADE) def __str__(self): return self.headline 2.1.2 Install it Next, run the Django attributes and calling save(). >>> r.full_name = 'Billy Goat' >>> r.save() # Delete an object with delete(). >>> r.delete() 2.1.4 A dynamic admin interface: it’s not just scaffolding – it’s the whole production ready administrative inter- face – a website that lets authenticated users add, change and delete objects. The only step required is to register your model in the admin site: Listing 2: mysite/news/models0 码力 | 2053 页 | 6.92 MB | 1 年前3
共 90 条
- 1
- 2
- 3
- 4
- 5
- 6
- 9













