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

Support RTD_USE_PROMOS for setting USE_PROMOS in dev #11790

Merged
merged 3 commits into from
Nov 25, 2024
Merged
Changes from 1 commit
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
Next Next commit
Support RTD_USE_PROMOS for setting USE_PROMOS in dev
ericholscher committed Nov 22, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 1f4d55c979d1dec4cf6d2b4d9b9cb6d8669a0eb1
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 secrets
~~~~~~~~~~~~~~~~~~~

The following secrets 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