Merge pull request #71 from tguillemot/master

Fix some mistakes in documentation
This commit is contained in:
Syrus Akbary 2016-12-06 09:23:52 -08:00 committed by GitHub
commit 0c26e8f5aa
2 changed files with 2 additions and 1 deletions

View File

@ -12,7 +12,7 @@ Let's use a simple example model.
from django.db import models
class Post(models.Model):
name = models.CharField(max_length=100)
title = models.CharField(max_length=100)
content = models.TextField()
published = models.BooleanField(default=False)
owner = models.ForeignKey('auth.User')

View File

@ -31,6 +31,7 @@ We will setup the project, create the following:
# Set up a new project with a single application
django-admin.py startproject cookbook . # Note the trailing '.' character
cd cookbook
django-admin.py startapp ingredients
Now sync your database for the first time: