Skip to content

Commit

Permalink
remove cyclic import warning as fixes haves mitigated the issue. #581
Browse files Browse the repository at this point in the history
  • Loading branch information
tfranzel committed Oct 27, 2021
1 parent e458389 commit 31e7698
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions docs/blueprints.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ Blueprint files can be found `here <https://github.com/tfranzel/drf-spectacular/
themselves automatically. Just be sure that the python interpreter sees them at least once.
To that end, we suggest creating a ``PROJECT/schema.py`` file and importing it in your
``PROJECT/__init__.py`` (same directory as ``settings.py`` and ``urls.py``)
with ``import PROJECT.schema``. Please do not import the file in
``settings.py`` as this may potentially lead to cyclic import issues. Now you are all set.
with ``import PROJECT.schema``. Now you are all set.


dj-stripe
Expand Down
3 changes: 1 addition & 2 deletions docs/customization.rst
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,7 @@ it would normally discover.
interpreter sees them at least once.
To that end, we suggest creating a ``PROJECT/schema.py`` file and importing it in your
``PROJECT/__init__.py`` (same directory as ``settings.py`` and ``urls.py``)
with ``import PROJECT.schema``. Please do not import the file in
``settings.py`` as this may potentially lead to cyclic import issues. Now you are all set.
with ``import PROJECT.schema``.

.. note:: Only the first Extension matching the criteria is used. By setting the ``priority`` attribute
on your extension, you can influence the matching order (default ``0``).
Expand Down
3 changes: 1 addition & 2 deletions docs/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,7 @@ Where should I put my extensions? / my extensions are not detected

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


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

0 comments on commit 31e7698

Please sign in to comment.