ソースを参照

Fix documentation on dynamic class loading for forked dashboard apps

master
Joseph Wayodi 6年前
コミット
745c2fd3a0
2個のファイルの変更24行の追加0行の削除
  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 ファイルの表示

303
   ``include(application.urls[0])``, which only passes in the list of URL
303
   ``include(application.urls[0])``, which only passes in the list of URL
304
   patterns.
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
 Dependency changes
318
 Dependency changes
307
 ------------------
319
 ------------------
308
 
320
 

+ 12
- 0
docs/source/topics/fork_app.rst ファイルの表示

11
   But there's no need to do this manually anymore! More information is
11
   But there's no need to do this manually anymore! More information is
12
   available in :ref:`fork-oscar-app`.
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
 Create Python module with same label
26
 Create Python module with same label
15
 ====================================
27
 ====================================
16
 
28
 

読み込み中…
キャンセル
保存