local_settings.py 320 B

123456789
  1. import os
  2. # Directory that the project lives in, aka ../..
  3. SITE_ROOT = '/'.join(os.path.dirname(__file__).split('/')[0:-2])
  4. TEMPLATE_DIRS = (
  5. "%s/templates/" % SITE_ROOT, # Your custom template directory, before the RTD one to override it.
  6. "%s/readthedocs/templates/" % SITE_ROOT, # Default RTD template dir
  7. )