Commit e7c5e62d by David Baumgold

Read from doc url mapping file at load time, rather than once per request

parent b25b3e1b
import ConfigParser import ConfigParser
from django.conf import settings from django.conf import settings
config_file = open(settings.REPO_ROOT / "docs" / "config.ini")
config = ConfigParser.ConfigParser()
config.readfp(config_file)
def doc_url(request):
config_file = open(settings.REPO_ROOT / "docs" / "config.ini")
config = ConfigParser.ConfigParser()
config.readfp(config_file)
def doc_url(request):
# in the future, we will detect the locale; for now, we will # in the future, we will detect the locale; for now, we will
# hardcode en_us, since we only have English documentation # hardcode en_us, since we only have English documentation
locale = "en_us" locale = "en_us"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment