Move monkey_patch to openedx.core.djangoapps.
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
@@ -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
|
||||
)
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user