Skip to content

Commit cec1a84

Browse files
authored
Merge pull request #216 from Txumari/patch-1
Fix install ingredients app
2 parents 1bddae1 + e425758 commit cec1a84

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

docs/tutorial-plain.rst

+12-7
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,23 @@ Let's get started with these models:
7373
def __str__(self):
7474
return self.name
7575
76+
Add ingredients as INSTALLED_APPS:
77+
78+
.. code:: python
79+
80+
INSTALLED_APPS = [
81+
...
82+
# Install the ingredients app
83+
'ingredients',
84+
]
85+
7686
Don't forget to create & run migrations:
7787

7888
.. code:: bash
7989
8090
python manage.py makemigrations
8191
python manage.py migrate
92+
8293
8394
Load some test data
8495
^^^^^^^^^^^^^^^^^^^
@@ -96,9 +107,6 @@ following:
96107
97108
Installed 6 object(s) from 1 fixture(s)
98109
99-
Note:
100-
If your run ``$ python ./manage.py loaddata ingredients`` without installing ``ingredients`` app in the project ``settings.py`` you will get the following error ``CommandError: No fixture named 'ingredients' found``. So make sure ``ingredients`` app has been put on the ``settings.py`` INSTALLED_APPS section before running ``$ python ./manage.py loaddata ingredients``.
101-
102110
Alternatively you can use the Django admin interface to create some data
103111
yourself. You'll need to run the development server (see below), and
104112
create a login for yourself too (``./manage.py createsuperuser``).
@@ -193,17 +201,14 @@ a web-based integrated development environment to assist in the writing
193201
and executing of GraphQL queries. It will provide us with a simple and
194202
easy way of testing our cookbook project.
195203

196-
Add ``ingredients`` and ``graphene_django`` to ``INSTALLED_APPS`` in ``cookbook/settings.py``:
204+
Add ``graphene_django`` to ``INSTALLED_APPS`` in ``cookbook/settings.py``:
197205

198206
.. code:: python
199207
200208
INSTALLED_APPS = [
201209
...
202210
# This will also make the `graphql_schema` management command available
203211
'graphene_django',
204-
205-
# Install the ingredients app
206-
'ingredients',
207212
]
208213
209214
And then add the ``SCHEMA`` to the ``GRAPHENE`` config in ``cookbook/settings.py``:

0 commit comments

Comments
 (0)