-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Fix imports with Django 2.0 #5485
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
Conversation
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.
changes seems OK to me but should look for others too
Its raise another error:
|
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. |
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 |
Closed by #5500 |
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Django 2.0 renamed classes for resolving urls