Skip to content

Commit

Permalink
Add docs for escape proxy feature
Browse files Browse the repository at this point in the history
Signed-off-by: Mehdy Khoshnoody <mehdy.khoshnoody@gmail.com>
  • Loading branch information
mehdy committed Oct 7, 2021
1 parent af4c68d commit 1b6c4ba
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docs/tips.rst
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,23 @@ Values that being with a ``$`` may be interpolated. Pass ``interpolate=True`` to
FOO
Escape Proxy
============

If you're having trouble with values starting with dollar sign ($) without the intention of proxying the value to
another, You should enbale the ``escape_proxy`` and prepend a backslash to it.

.. code-block:: python
import environ
env = environ.Env()
env.escape_proxy = True
# ESCAPED_VAR=\$baz
env.str('ESCAPED_VAR') # $baz
Reading env files
=================

Expand Down

0 comments on commit 1b6c4ba

Please sign in to comment.