Procházet zdrojové kódy

Fix documentation on dynamic class loading for forked dashboard apps

master
Joseph Wayodi před 6 roky
rodič
revize
745c2fd3a0
2 změnil soubory, kde provedl 24 přidání a 0 odebrání
  1. 12
    0
      docs/source/releases/v2.0.rst
  2. 12
    0
      docs/source/topics/fork_app.rst

+ 12
- 0
docs/source/releases/v2.0.rst Zobrazit soubor

@@ -303,6 +303,18 @@ each app that you have forked, you will need to:
303 303
   ``include(application.urls[0])``, which only passes in the list of URL
304 304
   patterns.
305 305
 
306
+  .. note::
307
+
308
+    Because of the way dynamic class loading now works, when forking dashboard
309
+    apps, the ``oscar.apps.dashboard`` app also needs to be forked; and the
310
+    forked dashboard app's code must live inside the forked
311
+    ``oscar.apps.dashboard`` app's directory.
312
+
313
+    Similarly, when forking ``oscar.apps.catalogue.reviews``,
314
+    ``oscar.apps.catalogue`` needs to be forked as well; and the forked
315
+    ``oscar.apps.catalogue.reviews`` app's code must live inside the forked
316
+    ``oscar.apps.catalogue`` app's directory.
317
+
306 318
 Dependency changes
307 319
 ------------------
308 320
 

+ 12
- 0
docs/source/topics/fork_app.rst Zobrazit soubor

@@ -11,6 +11,18 @@ This guide explains how to fork an app in Oscar.
11 11
   But there's no need to do this manually anymore! More information is
12 12
   available in :ref:`fork-oscar-app`.
13 13
 
14
+.. note::
15
+
16
+  Because of the way dynamic class loading works, when forking dashboard apps,
17
+  the ``oscar.apps.dashboard`` app also needs to be forked; and the forked
18
+  dashboard app's code must live inside the forked ``oscar.apps.dashboard``
19
+  app's directory.
20
+
21
+  Similarly, when forking ``oscar.apps.catalogue.reviews``,
22
+  ``oscar.apps.catalogue`` needs to be forked as well; and the forked
23
+  ``oscar.apps.catalogue.reviews`` app's code must live inside the forked
24
+  ``oscar.apps.catalogue`` app's directory.
25
+
14 26
 Create Python module with same label
15 27
 ====================================
16 28
 

Načítá se…
Zrušit
Uložit