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
24d29be3
Commit
24d29be3
authored
Oct 06, 2016
by
John Eskew
Committed by
GitHub
Oct 06, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #13667 from edx/jeskew/move_monkey_patch
Move monkey_patch to openedx.core.djangoapps.
parents
a63bb0e5
fab11b90
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
3 additions
and
3 deletions
+3
-3
cms/startup.py
+1
-1
lms/startup.py
+1
-1
openedx/core/djangoapps/monkey_patch/__init__.py
+1
-1
openedx/core/djangoapps/monkey_patch/django_db_models_options.py
+0
-0
openedx/core/djangoapps/monkey_patch/tests/__init__.py
+0
-0
openedx/core/djangoapps/monkey_patch/third_party_auth.py
+0
-0
No files found.
cms/startup.py
View file @
24d29be3
...
...
@@ -10,7 +10,7 @@ settings.INSTALLED_APPS # pylint: disable=pointless-statement
from
openedx.core.lib.django_startup
import
autostartup
import
django
from
monkey_patch
import
(
from
openedx.core.djangoapps.
monkey_patch
import
(
third_party_auth
,
django_db_models_options
)
...
...
lms/startup.py
View file @
24d29be3
...
...
@@ -12,7 +12,7 @@ settings.INSTALLED_APPS # pylint: disable=pointless-statement
from
openedx.core.lib.django_startup
import
autostartup
import
logging
import
analytics
from
monkey_patch
import
(
from
openedx.core.djangoapps.
monkey_patch
import
(
third_party_auth
,
django_db_models_options
)
...
...
common
/djangoapps/monkey_patch/__init__.py
→
openedx/core
/djangoapps/monkey_patch/__init__.py
View file @
24d29be3
...
...
@@ -28,7 +28,7 @@ solution), kindly follow these guidelines:
- Add the following code where needed (typically cms/startup.py and
lms/startup.py):
```
from monkey_patch import your_module
from
openedx.core.djangoapps.
monkey_patch import your_module
your_module.patch()
```
- Write tests! All code should be tested anyway, but with code that
...
...
common
/djangoapps/monkey_patch/django_db_models_options.py
→
openedx/core
/djangoapps/monkey_patch/django_db_models_options.py
View file @
24d29be3
File moved
common
/djangoapps/monkey_patch/tests/__init__.py
→
openedx/core
/djangoapps/monkey_patch/tests/__init__.py
View file @
24d29be3
File moved
common
/djangoapps/monkey_patch/third_party_auth.py
→
openedx/core
/djangoapps/monkey_patch/third_party_auth.py
View file @
24d29be3
File moved
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