Django 3.0.x Documentationworth of database-schema problems. Here’s a quick example: mysite/news/models.py from django.db import models class Reporter(models.Model): full_name = models.CharField(max_length=70) def __str__(self): The API is created on the fly, no code generation necessary: # Import the models we created from our "news" app >>> from news.models import Article, Reporter # No reporters are in the system yet. >>> Reporter .. DoesNotExist: Reporter 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)0 码力 | 3085 页 | 2.95 MB | 1 年前3
Django 2.2.x Documentationworth of database-schema problems. Here’s a quick example: mysite/news/models.py from django.db import models class Reporter(models.Model): full_name = models.CharField(max_length=70) def __str__(self): The API is created on the fly, no code generation necessary: # Import the models we created from our "news" app >>> from news.models import Article, Reporter # No reporters are in the system yet. >>> Reporter .. DoesNotExist: Reporter 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)0 码力 | 2915 页 | 2.83 MB | 1 年前3
Django 3.1.x Documentationworth of database-schema problems. Here’s a quick example: mysite/news/models.py from django.db import models class Reporter(models.Model): full_name = models.CharField(max_length=70) def __str__(self): The API is created on the fly, no code generation necessary: # Import the models we created from our "news" app >>> from news.models import Article, Reporter # No reporters are in the system yet. >>> Reporter .. DoesNotExist: Reporter 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)0 码力 | 3094 页 | 3.03 MB | 1 年前3
Django 4.2.x Documentationworth of database-schema problems. Here’s a quick example: mysite/news/models.py from django.db import models class Reporter(models.Model): full_name = models.CharField(max_length=70) def __str__(self): The API is created on the fly, no code generation necessary: # Import the models we created from our "news" app >>> from news.models import Article, Reporter # No reporters are in the system yet. >>> Reporter .. DoesNotExist: Reporter matching query does not exist. # Create an article. >>> from datetime import date >>> a = Article( ... pub_date=date.today(), headline="Django is cool", content="Yeah.",0 码力 | 3305 页 | 3.16 MB | 1 年前3
Django 4.1.x Documentationworth of database-schema problems. Here’s a quick example: mysite/news/models.py from django.db import models class Reporter(models.Model): full_name = models.CharField(max_length=70) def __str__(self): The API is created on the fly, no code generation necessary: # Import the models we created from our "news" app >>> from news.models import Article, Reporter # No reporters are in the system yet. >>> Reporter .. DoesNotExist: Reporter 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)0 码力 | 3240 页 | 3.13 MB | 1 年前3
Django 4.0.x Documentationworth of database-schema problems. Here’s a quick example: mysite/news/models.py from django.db import models class Reporter(models.Model): full_name = models.CharField(max_length=70) def __str__(self): The API is created on the fly, no code generation necessary: # Import the models we created from our "news" app >>> from news.models import Article, Reporter # No reporters are in the system yet. >>> Reporter .. DoesNotExist: Reporter 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)0 码力 | 3184 页 | 3.14 MB | 1 年前3
Django 2.1.x Documentationworth of database-schema problems. Here’s a quick example: mysite/news/models.py from django.db import models class Reporter(models.Model): full_name = models.CharField(max_length=70) def __str__(self): The API is created on the fly, no code generation necessary: # Import the models we created from our "news" app >>> from news.models import Article, Reporter # No reporters are in the system yet. >>> Reporter .. DoesNotExist: Reporter 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)0 码力 | 2790 页 | 2.71 MB | 1 年前3
Django 4.0.x Documentationdatabase-schema problems. Here’s a quick example: Listing 1: mysite/news/models.py from django.db import models class Reporter(models.Model): full_name = models.CharField(max_length=70) def __str__(self): The API is created on the fly, no code generation necessary: # Import the models we created from our "news" app >>> from news.models import Article, Reporter # No reporters are in the system yet. >>> Reporter 4.0.11.dev20230214085346 (continued from previous page) # Create an article. >>> from datetime import date >>> a = Article(pub_date=date.today(), headline='Django is cool', ... content='Yeah.', reporter=r)0 码力 | 2248 页 | 7.90 MB | 1 年前3
Django 2.1.x Documentationdatabase-schema problems. Here’s a quick example: Listing 1: mysite/news/models.py from django.db import models class Reporter(models.Model): full_name = models.CharField(max_length=70) def __str__(self): The API is created on the fly, no code generation necessary: # Import the models we created from our "news" app >>> from news.models import Article, Reporter # No reporters are in the system yet. >>> Reporter .. DoesNotExist: Reporter 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)0 码力 | 1910 页 | 6.49 MB | 1 年前3
Django 1.11.x Documentationworth of database-schema problems. Here’s a quick example: mysite/news/models.py from django.db import models class Reporter(models.Model): full_name = models.CharField(max_length=70) def __str__(self): The API is created on the fly, no code generation necessary: # Import the models we created from our "news" app >>> from news.models import Reporter, Article # No reporters are in the system yet. >>> Reporter .. DoesNotExist: Reporter 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)0 码力 | 2747 页 | 2.67 MB | 1 年前3
共 93 条
- 1
- 2
- 3
- 4
- 5
- 6
- 10













