mirror of
https://github.com/graphql-python/graphene-django.git
synced 2024-11-22 17:47:12 +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
|
||||
|
||||
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')
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user