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
048b609f
Commit
048b609f
authored
Nov 21, 2017
by
bmedx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Django 1.11 startup
parent
d9420fc0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
openedx/core/djangoapps/theming/helpers.py
+8
-5
No files found.
openedx/core/djangoapps/theming/helpers.py
View file @
048b609f
"""
"""
Helpers for accessing comprehensive theming related variables.
Helpers for accessing comprehensive theming related variables.
This file is imported at startup. Imports of models or things which import models will break startup on Django 1.9+. If
you need models here, please import them inside the function which uses them.
"""
"""
import
os
import
os
import
re
import
re
from
logging
import
getLogger
from
logging
import
getLogger
from
django.conf
import
settings
from
django.conf
import
settings
from
path
import
Path
from
microsite_configuration
import
microsite
from
microsite_configuration
import
microsite
from
openedx.core.djangoapps.site_configuration
import
helpers
as
configuration_helpers
from
openedx.core.djangoapps.site_configuration
import
helpers
as
configuration_helpers
from
openedx.core.djangoapps.site_configuration.models
import
SiteConfiguration
from
openedx.core.djangoapps.theming.helpers_dirs
import
(
from
openedx.core.djangoapps.theming.helpers_dirs
import
(
Theme
,
get_project_root_name_from_settings
,
get_theme_base_dirs_from_settings
,
get_theme_base_dirs_from_settings
,
get_themes_unchecked
,
get_theme_dirs
,
get_theme_dirs
,
get_project_root_name_from_settings
,
get_themes_unchecked
Theme
)
)
from
request_cache.middleware
import
RequestCache
from
request_cache.middleware
import
RequestCache
...
@@ -353,6 +354,8 @@ def get_config_value_from_site_or_settings(name, site=None, site_config_name=Non
...
@@ -353,6 +354,8 @@ def get_config_value_from_site_or_settings(name, site=None, site_config_name=Non
Returns:
Returns:
The value stored in the configuration.
The value stored in the configuration.
"""
"""
from
openedx.core.djangoapps.site_configuration.models
import
SiteConfiguration
if
site_config_name
is
None
:
if
site_config_name
is
None
:
site_config_name
=
name
site_config_name
=
name
...
...
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