Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add note to FAQ in docs #162

Merged
merged 4 commits into from
Oct 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions docs/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,16 @@ Also, you have to install `django-debug-toolbar 0.9.X`_ or higher.

.. _`Django Debug toolbar`: https://github.com/django-debug-toolbar/django-debug-toolbar/
.. _`django-debug-toolbar 0.9.X`: http://pypi.python.org/pypi/django-debug-toolbar


My tests using client.post(...) are failing now, what should I do?
--------------------------------------------------------------

Yes, django-hosts might make your existing pytest tests fail if you are using
client.post(...). All you need to do is to set the correct SERVER_NAME on that call
depending on the host that should handle the call

.. code-block:: python

client.post(..., SERVER_NAME='api-server.something')

hramezani marked this conversation as resolved.
Show resolved Hide resolved
Loading