mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-02-16 19:40:36 +03:00
Merge pull request #71 from tguillemot/master
Fix some mistakes in documentation
This commit is contained in:
commit
0c26e8f5aa
|
@ -12,7 +12,7 @@ Let's use a simple example model.
|
||||||
from django.db import models
|
from django.db import models
|
||||||
|
|
||||||
class Post(models.Model):
|
class Post(models.Model):
|
||||||
name = models.CharField(max_length=100)
|
title = models.CharField(max_length=100)
|
||||||
content = models.TextField()
|
content = models.TextField()
|
||||||
published = models.BooleanField(default=False)
|
published = models.BooleanField(default=False)
|
||||||
owner = models.ForeignKey('auth.User')
|
owner = models.ForeignKey('auth.User')
|
||||||
|
|
|
@ -31,6 +31,7 @@ We will setup the project, create the following:
|
||||||
|
|
||||||
# Set up a new project with a single application
|
# Set up a new project with a single application
|
||||||
django-admin.py startproject cookbook . # Note the trailing '.' character
|
django-admin.py startproject cookbook . # Note the trailing '.' character
|
||||||
|
cd cookbook
|
||||||
django-admin.py startapp ingredients
|
django-admin.py startapp ingredients
|
||||||
|
|
||||||
Now sync your database for the first time:
|
Now sync your database for the first time:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user