Skip to content

Commit c061d3c

Browse files
docs: Add missing dependencies and fix django (#657)
- Add missing sqlalchemy and django dependencies - Configure django in docs/conf.py to avoid non configured exeception
1 parent e800d26 commit c061d3c

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

Diff for: docs-requirements.txt

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ sphinx-autodoc-typehints~=1.10.2
55
# Required by ext packages
66
aiohttp ~= 3.0
77
Deprecated>=1.2.6
8+
django>=2.2
89
PyMySQL~=0.9.3
910
flask~=1.0
1011
mysql-connector-python~=8.0
@@ -13,5 +14,6 @@ prometheus_client>=0.5.0,<1.0.0
1314
psycopg2-binary>=2.7.3.1
1415
pymongo~=3.1
1516
redis>=2.6
17+
sqlalchemy>=1.0
1618
thrift>=0.10.0
1719
wrapt >=1.0.0,<2.0.0

Diff for: docs/conf.py

+9
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,15 @@
1515
from os import listdir
1616
from os.path import isdir, join
1717

18+
# configure django to avoid the following exception:
19+
# django.core.exceptions.ImproperlyConfigured: Requested settings, but settings
20+
# are not configured. You must either define the environment variable
21+
# DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
22+
from django.conf import settings
23+
24+
settings.configure()
25+
26+
1827
source_dirs = [
1928
os.path.abspath("../opentelemetry-api/src/"),
2029
os.path.abspath("../opentelemetry-sdk/src/"),

0 commit comments

Comments
 (0)