Skip to content

Commit 9b28c9e

Browse files
committed
fixed AppsRegistryNotReady errors in docs build
1 parent b751b08 commit 9b28c9e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/conf.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,12 @@
1919
here = os.path.abspath(os.path.dirname(__file__))
2020
sys.path.insert(0, here)
2121
sys.path.insert(0, os.path.dirname(here))
22-
sys.path.insert(0, os.path.join(os.path.dirname(here), 'example'))
2322

2423
os.environ['DJANGO_SETTINGS_MODULE'] = 'oauth2_provider.tests.settings'
24+
25+
import django
26+
django.setup()
27+
2528
import oauth2_provider
2629

2730
# -- General configuration -----------------------------------------------------

0 commit comments

Comments
 (0)