You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From time to time, the documentation for the tutorial will need to be updated. You can work directly in
306
-
the tutorial site by loading the fixture file for its database (read more at :ref:`load-data`).
306
+
the tutorial site by loading the fixture file for its database (read more at :ref:`load-data`).
307
307
308
308
However, once you have worked in the tutorial site and gotten new screenshots for the **Getting Started** documentation,
309
-
you will also need to update the fixture file, which is located in ``tutorial > mysite > website > fixtures``.
309
+
you will also need to update the fixture file, which is located in ``tutorial > mysite > website > fixtures``.
310
310
311
311
**These are the steps for updating the fixture:**
312
312
313
313
1. From the command line, type ``python manage.py dumpdata --natural-foreign --natural-primary -e contenttypes -e auth.Permission --indent 4 > dumpdata.json``
314
314
315
315
2. The dumped data file will show up in the ``website`` folder. Open it and copy/paste its contents into a new file called ``database.json``. This will fix the encoding issue you would run into otherwise. Save the new fixture file and delete the one that was dumped. Also delete the one that is currently in the ``fixtures`` folder.
316
316
317
-
3. Move the ``database.json`` file into the ``fixtures`` folder.
317
+
3. Move the ``database.json`` file into the ``fixtures`` folder.
318
318
319
-
4. For testing ``loaddata``, please review the steps at :ref:`load-data`.
319
+
4. For testing ``loaddata``, please review the steps at :ref:`load-data`.
320
320
321
321
322
322
Publishing a New Release
@@ -349,10 +349,11 @@ Finally build and update docs:
349
349
350
350
$ ./ci/make-docs.ps1
351
351
352
-
If updating docs for an existing major version release:
352
+
Copy the contents of ``docs/_build/html/`` to the CodeRed docs server under the existing version directory. Using the ``cr`` tool:
353
353
354
-
#. Copy the contents of ``docs/_build/html/`` to the CodeRed docs server under
0 commit comments