Closed
Description
I installed Django 2, DRF 3.7 and DJA with
pip install django
pip install djangorestframework
pip install djangorestframework-jsonapi
As per the DRF quickstart and the DJA quickstart I added rest_framework
to the INSTALLED_APPS and
REST_FRAMEWORK = {
'PAGE_SIZE': 10,
'EXCEPTION_HANDLER': 'rest_framework_json_api.exceptions.exception_handler',
'DEFAULT_PAGINATION_CLASS':
'rest_framework_json_api.pagination.PageNumberPagination',
'DEFAULT_PARSER_CLASSES': (
'rest_framework_json_api.parsers.JSONParser',
'rest_framework.parsers.FormParser',
'rest_framework.parsers.MultiPartParser'
),
'DEFAULT_RENDERER_CLASSES': (
'rest_framework_json_api.renderers.JSONRenderer',
# If you're performance testing, you will want to use the browseable API
# without forms, as the forms can generate their own queries.
# If performance testing, enable:
# 'example.utils.BrowsableAPIRendererWithoutForms',
# Otherwise, to play around with the browseable API, enable:
'rest_framework.renderers.BrowsableAPIRenderer'
),
'DEFAULT_METADATA_CLASS': 'rest_framework_json_api.metadata.JSONAPIMetadata',
}
Key bits of the call-stack are:
File "/Users/jonathanh/.virtualenvs/test/lib/python3.6/site-packages/rest_framework_json_api/parsers.py", line 9, in <module>
from . import exceptions, renderers, serializers, utils
File "/Users/jonathanh/.virtualenvs/test/lib/python3.6/site-packages/rest_framework_json_api/serializers.py", line 8, in <module>
from rest_framework_json_api.relations import ResourceRelatedField
File "/Users/jonathanh/.virtualenvs/test/lib/python3.6/site-packages/rest_framework_json_api/relations.py", line 8, in <module>
from django.core.urlresolvers import NoReverseMatch
ModuleNotFoundError: No module named 'django.core.urlresolvers'
``
From https://docs.djangoproject.com/en/2.0/releases/2.0/ , it looks like this is the issue:
> The django.core.urlresolvers module is removed in favor of its new location, django.urls
I realise Django 2.0 is not listed as supported yet, but thought this worth logging anyway.
Metadata
Metadata
Assignees
Labels
No labels