-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/django1 10 monkeypatching fix #39
Conversation
…oving that method into the django.urls package.
tests/urls.py
Outdated
|
||
urlpatterns = [ | ||
# url(r'^admin/', admin.site.urls), | ||
] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need this as there are no urls?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I see this is referenced in the settings..
Can the commented lines be cleaned up?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll actually just remove the module entirely since it's not being used. I had intended to add some tests related to monkey-patching, but it's more complicated than I thought so we can rely on manual testing for now.
'ENGINE': 'django.db.backends.sqlite3', | ||
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add newline
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK
👍 |
This PR updates the
patch_reverse
module, used by MultiLTILaunchMiddleware, to be compatible with Django 1.10. In prior verisons of Django, thereverse
method was located within theurlresolvers
module withindjango.core
. In 1.10+, there is a newurls
module which importsreverse
from a sub-module. We need to patch that inclusion, as well as the import ofreverse
withindjango.shortcuts
.This PR also splits out the test cases for the reusable application into a
tests
module outside of the application package and introducestox
to make testing across Django versions easier.@sapnamysore
@cmurtaugh