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
3ae2cef9
Commit
3ae2cef9
authored
Oct 15, 2014
by
Usman Khalid
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5569 from edx/usman/lxml-changes-2
Moved imports to manage.py and wsgi.py.
parents
e82ba142
32c6dad5
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
16 additions
and
9 deletions
+16
-9
cms/startup.py
+0
-4
cms/wsgi.py
+4
-0
lms/startup.py
+0
-5
lms/wsgi.py
+4
-0
lms/wsgi_apache_lms.py
+4
-0
manage.py
+4
-0
No files found.
cms/startup.py
View file @
3ae2cef9
...
...
@@ -15,10 +15,6 @@ def run():
"""
Executed during django startup
"""
# Patch the xml libs.
from
safe_lxml
import
defuse_xml_libs
defuse_xml_libs
()
django_utils_translation
.
patch
()
autostartup
()
...
...
cms/wsgi.py
View file @
3ae2cef9
# Patch the xml libs before anything else.
from
safe_lxml
import
defuse_xml_libs
defuse_xml_libs
()
# Disable PyContract contract checking when running as a webserver
import
contracts
contracts
.
disable_all
()
...
...
lms/startup.py
View file @
3ae2cef9
...
...
@@ -20,11 +20,6 @@ def run():
"""
Executed during django startup
"""
# Patch the xml libs.
from
safe_lxml
import
defuse_xml_libs
defuse_xml_libs
()
django_utils_translation
.
patch
()
autostartup
()
...
...
lms/wsgi.py
View file @
3ae2cef9
# Patch the xml libs
from
safe_lxml
import
defuse_xml_libs
defuse_xml_libs
()
# Disable PyContract contract checking when running as a webserver
import
contracts
contracts
.
disable_all
()
...
...
lms/wsgi_apache_lms.py
View file @
3ae2cef9
# Patch the xml libs before anything else.
from
safe_lxml
import
defuse_xml_libs
defuse_xml_libs
()
import
os
os
.
environ
.
setdefault
(
"DJANGO_SETTINGS_MODULE"
,
"lms.envs.aws"
)
...
...
manage.py
View file @
3ae2cef9
...
...
@@ -11,6 +11,10 @@ by passing the --settings flag, you can specify what environment specific settin
Any arguments not understood by this manage.py will be passed to django-admin.py
"""
# Patch the xml libs before anything else.
from
safe_lxml
import
defuse_xml_libs
defuse_xml_libs
()
import
os
import
sys
import
importlib
...
...
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