Skip to content

Commit

Permalink
Support RTD_USE_PROMOS for setting USE_PROMOS in dev (#11790)
Browse files Browse the repository at this point in the history
<!-- readthedocs-preview docs start -->
---
:books: Documentation previews :books:

- User's documentation (`docs`):
https://docs--11790.org.readthedocs.build/en/11790/

<!-- readthedocs-preview docs end -->

<!-- readthedocs-preview dev start -->
- Developer's documentation (`dev`):
https://dev--11790.org.readthedocs.build/en/11790/

<!-- readthedocs-preview dev end -->

---------

Co-authored-by: Manuel Kaufmann <[email protected]>
ericholscher and humitos authored Nov 25, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent f0467df commit b50b629
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions docs/dev/settings.rst
Original file line number Diff line number Diff line change
@@ -168,3 +168,10 @@ The following secrets are required to use ``djstripe`` and our Stripe integratio
.. envvar:: RTD_STRIPE_SECRET
.. envvar:: RTD_STRIPE_PUBLISHABLE
.. envvar:: RTD_DJSTRIPE_WEBHOOK_SECRET

Ethical Ads variables
~~~~~~~~~~~~~~~~~~~~~

The following variables are required to use ``ethicalads`` in dev:

.. envvar:: RTD_USE_PROMOS
2 changes: 1 addition & 1 deletion readthedocs/settings/docker_compose.py
Original file line number Diff line number Diff line change
@@ -47,7 +47,7 @@ class DockerBaseSettings(CommunityBaseSettings):
HOSTIP = ips[0][:-1] + "1"

# Turn this on to test ads
USE_PROMOS = False
USE_PROMOS = os.environ.get("RTD_USE_PROMOS") is not None
ADSERVER_API_BASE = f"http://{HOSTIP}:5000"
# Create a Token for an admin User and set it here.
ADSERVER_API_KEY = None

0 comments on commit b50b629

Please sign in to comment.