Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
e7c5e62d
Commit
e7c5e62d
authored
Jan 29, 2014
by
David Baumgold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Read from doc url mapping file at load time, rather than once per request
parent
b25b3e1b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
cms/djangoapps/contentstore/context_processors.py
+4
-4
No files found.
cms/djangoapps/contentstore/context_processors.py
View file @
e7c5e62d
import
ConfigParser
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
# hardcode en_us, since we only have English documentation
locale
=
"en_us"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment