Fix imports with Django 2.0#5485
Closed
devbis wants to merge 1 commit intoencode:masterfrom
devbis:patch-1
Closed
Conversation
auvipy
reviewed
Oct 7, 2017
|
Its raise another error:
|
6 tasks
Contributor
|
This seems to fix issue #5456 |
|
I've already tried and tested this fix, but since they not only renamed classes but changed the API this fix is far from complete. |
Collaborator
|
Invalid template library specified. ImportError raised when trying to load 'rest_framework.templatetags.rest_framework': No module named 'django.core.urlresolvers' error while working with django==2.0a1 and drf3.7 |
Collaborator
|
Closed by #5500 |
rht
added a commit
to rht/zulip
that referenced
this pull request
Jan 5, 2018
List of API changes: 1. `models.Foreignkey`: `on_delete` argument is no longer optional. 2. Functions in `django.core.urlresolvers` are moved to `django.urls` and `django.urls.resolvers`. 3. `django.core.urlresolvers.LocaleRegexProvider` is renamed to `django.urls.resolvers.RegexPattern`. See arteria/django-compat#61. 4. `django.core.urlresolvers.RegexURLPattern` is renamed to `django.urls.resolvers.URLPattern`. See encode/django-rest-framework#5485.
rht
added a commit
to rht/zulip
that referenced
this pull request
Jan 5, 2018
List of API changes: 1. `models.Foreignkey`: `on_delete` argument is no longer optional. 2. Functions in `django.core.urlresolvers` are moved to `django.urls` and `django.urls.resolvers`. 3. `django.core.urlresolvers.LocaleRegexProvider` is renamed to `django.urls.resolvers.RegexPattern`. See arteria/django-compat#61. 4. `django.core.urlresolvers.RegexURLPattern` is renamed to `django.urls.resolvers.URLPattern`. See encode/django-rest-framework#5485.
rht
added a commit
to rht/zulip
that referenced
this pull request
Jan 5, 2018
List of API changes: 1. `models.Foreignkey`: `on_delete` argument is no longer optional. 2. Functions in `django.core.urlresolvers` are moved to `django.urls` and `django.urls.resolvers`. 3. `django.core.urlresolvers.LocaleRegexProvider` is renamed to `django.urls.resolvers.RegexPattern`. See arteria/django-compat#61. 4. `django.core.urlresolvers.RegexURLPattern` is renamed to `django.urls.resolvers.URLPattern`. See encode/django-rest-framework#5485.
rht
added a commit
to rht/zulip
that referenced
this pull request
Jan 5, 2018
List of API changes: 1. `models.Foreignkey`: `on_delete` argument is no longer optional. 2. Functions in `django.core.urlresolvers` are moved to `django.urls` and `django.urls.resolvers`. 3. `django.core.urlresolvers.LocaleRegexProvider` is renamed to `django.urls.resolvers.RegexPattern`. See arteria/django-compat#61. 4. `django.core.urlresolvers.RegexURLPattern` is renamed to `django.urls.resolvers.URLPattern`. See encode/django-rest-framework#5485.
rht
added a commit
to rht/zulip
that referenced
this pull request
Jan 5, 2018
List of API changes: 1. `models.Foreignkey`: `on_delete` argument is no longer optional. 2. Functions in `django.core.urlresolvers` are moved to `django.urls` and `django.urls.resolvers`. 3. `django.core.urlresolvers.LocaleRegexProvider` is renamed to `django.urls.resolvers.RegexPattern`. See arteria/django-compat#61. 4. `django.core.urlresolvers.RegexURLPattern` is renamed to `django.urls.resolvers.URLPattern`. See encode/django-rest-framework#5485.
rht
added a commit
to rht/zulip
that referenced
this pull request
Jan 5, 2018
List of API changes: 1. `models.Foreignkey`: `on_delete` argument is no longer optional. 2. Functions in `django.core.urlresolvers` are moved to `django.urls` and `django.urls.resolvers`. 3. `django.core.urlresolvers.LocaleRegexProvider` is renamed to `django.urls.resolvers.RegexPattern`. See arteria/django-compat#61. 4. `django.core.urlresolvers.RegexURLPattern` is renamed to `django.urls.resolvers.URLPattern`. See encode/django-rest-framework#5485. 5. `django.core.management.call_command`'s argument app_labels is renamed to app_label.
rht
added a commit
to rht/zulip
that referenced
this pull request
Jan 5, 2018
List of API changes: 1. `models.Foreignkey`: `on_delete` argument is no longer optional. 2. Functions in `django.core.urlresolvers` are moved to `django.urls` and `django.urls.resolvers`. 3. `django.core.urlresolvers.LocaleRegexProvider` is renamed to `django.urls.resolvers.RegexPattern`. See arteria/django-compat#61. 4. `django.core.urlresolvers.RegexURLPattern` is renamed to `django.urls.resolvers.URLPattern`. See encode/django-rest-framework#5485. 5. `django.core.management.call_command`'s argument app_labels is renamed to app_label.
rht
added a commit
to rht/zulip
that referenced
this pull request
Jan 5, 2018
List of API changes: 1. `models.Foreignkey`: `on_delete` argument is no longer optional. 2. Functions in `django.core.urlresolvers` are moved to `django.urls` and `django.urls.resolvers`. 3. `django.core.urlresolvers.LocaleRegexProvider` is renamed to `django.urls.resolvers.RegexPattern`. See arteria/django-compat#61. 4. `django.core.urlresolvers.RegexURLPattern` is renamed to `django.urls.resolvers.URLPattern`. See encode/django-rest-framework#5485. 5. `django.core.urlresolvers.LocaleRegexURLResolver` is renamed to `django.urls.URLResolver` with a locale argument. See https://github.com/django/django/pull/7482/files#diff-ebbd729cb6cf937dea8ce3de4e3332f2R17 6. `django.core.management.call_command`'s argument app_labels is renamed to app_label.
rht
added a commit
to rht/zulip
that referenced
this pull request
Jan 8, 2018
List of API changes: 1. `models.Foreignkey`: `on_delete` argument is no longer optional. 2. Functions in `django.core.urlresolvers` are moved to `django.urls` and `django.urls.resolvers`. 3. `django.core.urlresolvers.LocaleRegexProvider` is renamed to `django.urls.resolvers.RegexPattern`. See arteria/django-compat#61. 4. `django.core.urlresolvers.RegexURLPattern` is renamed to `django.urls.resolvers.URLPattern`. See encode/django-rest-framework#5485. 5. `django.core.urlresolvers.LocaleRegexURLResolver` is renamed to `django.urls.URLResolver` with a locale argument. See https://github.com/django/django/pull/7482/files#diff-ebbd729cb6cf937dea8ce3de4e3332f2R17 6. `django.core.management.call_command`'s argument app_labels is renamed to app_label.
rht
added a commit
to rht/zulip
that referenced
this pull request
Jan 8, 2018
List of API changes: 1. `models.Foreignkey`: `on_delete` argument is no longer optional. 2. Functions in `django.core.urlresolvers` are moved to `django.urls` and `django.urls.resolvers`. 3. `django.core.urlresolvers.LocaleRegexProvider` is renamed to `django.urls.resolvers.RegexPattern`. See arteria/django-compat#61. 4. `django.core.urlresolvers.RegexURLPattern` is renamed to `django.urls.resolvers.URLPattern`. See encode/django-rest-framework#5485. 5. `django.core.urlresolvers.LocaleRegexURLResolver` is renamed to `django.urls.URLResolver` with a locale argument. See https://github.com/django/django/pull/7482/files#diff-ebbd729cb6cf937dea8ce3de4e3332f2R17 6. `django.core.management.call_command`'s argument app_labels is renamed to app_label.
rht
added a commit
to rht/zulip
that referenced
this pull request
Jan 31, 2018
List of API changes: 1. `models.Foreignkey`: `on_delete` argument is no longer optional. 2. Functions in `django.core.urlresolvers` are moved to `django.urls` and `django.urls.resolvers`. 3. `django.core.urlresolvers.LocaleRegexProvider` is renamed to `django.urls.resolvers.RegexPattern`. See arteria/django-compat#61. 4. `django.core.urlresolvers.RegexURLPattern` is renamed to `django.urls.resolvers.URLPattern`. See encode/django-rest-framework#5485. 5. `django.core.urlresolvers.LocaleRegexURLResolver` is renamed to `django.urls.URLResolver` with a locale argument. See https://github.com/django/django/pull/7482/files#diff-ebbd729cb6cf937dea8ce3de4e3332f2R17 6. `django.core.management.call_command`'s argument app_labels is renamed to app_label.
rht
added a commit
to rht/zulip
that referenced
this pull request
Feb 1, 2018
List of API changes: 1. `models.Foreignkey`: `on_delete` argument is no longer optional. 2. Functions in `django.core.urlresolvers` are moved to `django.urls` and `django.urls.resolvers`. 3. `django.core.urlresolvers.LocaleRegexProvider` is renamed to `django.urls.resolvers.RegexPattern`. See arteria/django-compat#61. 4. `django.core.urlresolvers.RegexURLPattern` is renamed to `django.urls.resolvers.URLPattern`. See encode/django-rest-framework#5485. 5. `django.core.urlresolvers.LocaleRegexURLResolver` is renamed to `django.urls.URLResolver` with a locale argument. See https://github.com/django/django/pull/7482/files#diff-ebbd729cb6cf937dea8ce3de4e3332f2R17 6. `django.core.management.call_command`'s argument app_labels is renamed to app_label.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Django 2.0 renamed classes for resolving urls