Skip to content

Commit 31e7698

Browse files
committed
remove cyclic import warning as fixes haves mitigated the issue. #581
1 parent e458389 commit 31e7698

3 files changed

Lines changed: 3 additions & 6 deletions

File tree

docs/blueprints.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ Blueprint files can be found `here <https://github.com/tfranzel/drf-spectacular/
1616
themselves automatically. Just be sure that the python interpreter sees them at least once.
1717
To that end, we suggest creating a ``PROJECT/schema.py`` file and importing it in your
1818
``PROJECT/__init__.py`` (same directory as ``settings.py`` and ``urls.py``)
19-
with ``import PROJECT.schema``. Please do not import the file in
20-
``settings.py`` as this may potentially lead to cyclic import issues. Now you are all set.
19+
with ``import PROJECT.schema``. Now you are all set.
2120

2221

2322
dj-stripe

docs/customization.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,7 @@ it would normally discover.
151151
interpreter sees them at least once.
152152
To that end, we suggest creating a ``PROJECT/schema.py`` file and importing it in your
153153
``PROJECT/__init__.py`` (same directory as ``settings.py`` and ``urls.py``)
154-
with ``import PROJECT.schema``. Please do not import the file in
155-
``settings.py`` as this may potentially lead to cyclic import issues. Now you are all set.
154+
with ``import PROJECT.schema``.
156155

157156
.. note:: Only the first Extension matching the criteria is used. By setting the ``priority`` attribute
158157
on your extension, you can influence the matching order (default ``0``).

docs/faq.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,7 @@ Where should I put my extensions? / my extensions are not detected
200200

201201
The extensions register themselves automatically. Just be sure that the python interpreter sees them at least once.
202202
To that end, we suggest creating a ``PROJECT/schema.py`` file and importing it in your ``PROJECT/__init__.py``
203-
(same directory as ``settings.py`` and ``urls.py``) with ``import PROJECT.schema``. Please do not import the file in
204-
``settings.py`` as this may potentially lead to cyclic import issues.
203+
(same directory as ``settings.py`` and ``urls.py``) with ``import PROJECT.schema``.
205204

206205

207206
My ``@action`` is erroneously paginated or has filter parameters that I do not want

0 commit comments

Comments
 (0)