environment-variablesΒΆ

These are the environment variables used to build this docs:

>>> import os
>>> import pprint
>>> pprint.pprint(dict(os.environ))
{'APPDIR': '/app',
 'DEBIAN_FRONTEND': 'noninteractive',
 'DOCUTILSCONFIG': '/home/docs/checkouts/readthedocs.org/user_builds/test-builds/checkouts/environment-variables/docs/docutils.conf',
 'EMBEDED_VARIABLE': "'$READTHEDOCS_VERSION'",
 'HOME': '/home/docs',
 'HOSTNAME': 'build-14895961-project-256207-test-builds',
 'LANG': 'C.UTF-8',
 'NEWVALUE': "'This is my value'",
 'NO_COLOR': '1',
 'PATH': '/home/docs/checkouts/readthedocs.org/user_builds/test-builds/envs/environment-variables/bin:/home/docs/.pyenv/shims:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/docs/.conda/bin:/home/docs/.pyenv/bin',
 'PUBLIC': '\'I\'"\'"\'m a public variable\'',
 'PUBLIC_VARIABLE': "'public value'",
 'PWD': '/home/docs/checkouts/readthedocs.org/user_builds/test-builds/checkouts/environment-variables/docs',
 'PYENV_ROOT': '/home/docs/.pyenv',
 'READTHEDOCS': 'True',
 'READTHEDOCS_LANGUAGE': 'en',
 'READTHEDOCS_PROJECT': 'test-builds',
 'READTHEDOCS_VERSION': 'environment-variables',
 'RTD_CONDA_VERSION': '4.6.14',
 'RTD_PIP_VERSION': '20.0.1',
 'RTD_PYPY_VERSION_35': 'pypy3.5-7.0.0',
 'RTD_PYTHON_VERSION_27': '2.7.18',
 'RTD_PYTHON_VERSION_35': '3.5.10',
 'RTD_PYTHON_VERSION_36': '3.6.12',
 'RTD_PYTHON_VERSION_37': '3.7.9',
 'RTD_PYTHON_VERSION_38': '3.8.6',
 'RTD_SETUPTOOLS_VERSION': '45.1.0',
 'RTD_VIRTUALENV_VERSION': '16.7.9',
 'SECRET_VALUE_ESCAPED': '{1}\\|\\1+-(8)$',
 'SHOW_ON_DOCS': "'This was added from Admin > Environment Variables'",
 'USER_DEFINED_VARIABLE': 'Variable added from "django-admin shell"'}

There is a variable called SECRET_VALUE_ESCAPED with this content {1}\|\1+-(8)$ that should be shown correctly.

>>> # Build at
>>> import datetime
>>> datetime.datetime.utcnow()  # UTC
datetime.datetime(2021, 10, 4, 10, 22, 50, 894199)