Traceback (most recent call last):


 "/home/kuba/temp/t2/pytest-django/pytest_django/plugin.py", line 114, in _handle_import_error

yield


 "/home/kuba/temp/t2/pytest-django/pytest_django/plugin.py", line 245, in pytest_load_initial_conftests

dj_settings.DATABASES


 "/home/kuba/temp/t2/pytest-django/lib/python3.5/site-packages/django/conf/__init__.py", line 56, in __getattr__

self._setup(name)


 "/home/kuba/temp/t2/pytest-django/lib/python3.5/site-packages/django/conf/__init__.py", line 41, in _setup

self._wrapped = Settings(settings_module)


 "/home/kuba/temp/t2/pytest-django/lib/python3.5/site-packages/django/conf/__init__.py", line 110, in __init__

mod = importlib.import_module(self.SETTINGS_MODULE)


 "/home/kuba/temp/t2/pytest-django/lib/python3.5/importlib/__init__.py", line 126, in import_module

return _bootstrap._gcd_import(name[level:], package, level)


 "<frozen importlib._bootstrap>", line 986, in _gcd_import


 "<frozen importlib._bootstrap>", line 969, in _find_and_load


 "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked


 "<frozen importlib._bootstrap>", line 664, in _load_unlocked


 "<frozen importlib._bootstrap>", line 634, in _load_backward_compatible


 "/home/kuba/temp/t2/pytest-django/lib/python3.5/site-packages/configurations/importer.py", line 146, in load_module

mod = imp.load_module(fullname, *self.location)


 "/home/kuba/temp/t2/pytest-django/lib/python3.5/imp.py", line 234, in load_module

return load_source(name, filename, file)


 "/home/kuba/temp/t2/pytest-django/lib/python3.5/imp.py", line 172, in load_source

module = _load(spec)


 "<frozen importlib._bootstrap>", line 693, in _load


 "<frozen importlib._bootstrap>", line 673, in _load_unlocked


 "<frozen importlib._bootstrap_external>", line 673, in exec_module


 "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed


 "/tmp/pytest-of-kuba/pytest-1/testdir/test_dc_ini0/tpkg/settings_env.py", line 2, in <module>

from configurations import Settings
ImportError: cannot import name 'Settings'

Traceback (most recent call last):


 "manage.py", line 10, in <module>

execute_from_command_line(sys.argv)


 "/tmp/django-rest-auth/demo/env/lib/python3.4/site-packages/django/core/management/__init__.py", line 371, in execute_from_command_line

utility.execute()


 "/tmp/django-rest-auth/demo/env/lib/python3.4/site-packages/django/core/management/__init__.py", line 365, in execute

self.fetch_command(subcommand).run_from_argv(self.argv)


 "/tmp/django-rest-auth/demo/env/lib/python3.4/site-packages/django/core/management/base.py", line 288, in run_from_argv

self.execute(*args, **cmd_options)


 "/tmp/django-rest-auth/demo/env/lib/python3.4/site-packages/django/core/management/base.py", line 332, in execute

self.check()


 "/tmp/django-rest-auth/demo/env/lib/python3.4/site-packages/django/core/management/base.py", line 364, in check

include_deployment_checks=include_deployment_checks,


 "/tmp/django-rest-auth/demo/env/lib/python3.4/site-packages/django/core/management/commands/migrate.py", line 58, in _run_checks

issues.extend(super()._run_checks(**kwargs))


 "/tmp/django-rest-auth/demo/env/lib/python3.4/site-packages/django/core/management/base.py", line 351, in _run_checks

return checks.run_checks(**kwargs)


 "/tmp/django-rest-auth/demo/env/lib/python3.4/site-packages/django/core/checks/registry.py", line 73, in run_checks

new_errors = check(app_configs=app_configs)


 "/tmp/django-rest-auth/demo/env/lib/python3.4/site-packages/django/core/checks/urls.py", line 40, in check_url_namespaces_unique

all_namespaces = _load_all_namespaces(resolver)


 "/tmp/django-rest-auth/demo/env/lib/python3.4/site-packages/django/core/checks/urls.py", line 57, in _load_all_namespaces

url_patterns = getattr(resolver, 'url_patterns', [])


 "/tmp/django-rest-auth/demo/env/lib/python3.4/site-packages/django/utils/functional.py", line 36, in __get__

res = instance.__dict__[self.name] = self.func(instance)


 "/tmp/django-rest-auth/demo/env/lib/python3.4/site-packages/django/urls/resolvers.py", line 536, in url_patterns

patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)


 "/tmp/django-rest-auth/demo/env/lib/python3.4/site-packages/django/utils/functional.py", line 36, in __get__

res = instance.__dict__[self.name] = self.func(instance)


 "/tmp/django-rest-auth/demo/env/lib/python3.4/site-packages/django/urls/resolvers.py", line 529, in urlconf_module

return import_module(self.urlconf_name)


 "/tmp/django-rest-auth/demo/env/lib/python3.4/importlib/__init__.py", line 109, in import_module

return _bootstrap._gcd_import(name[level:], package, level)


 "<frozen importlib._bootstrap>", line 2254, in _gcd_import


 "<frozen importlib._bootstrap>", line 2237, in _find_and_load


 "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked


 "<frozen importlib._bootstrap>", line 1200, in _load_unlocked


 "<frozen importlib._bootstrap>", line 1129, in _exec


 "<frozen importlib._bootstrap>", line 1471, in exec_module


 "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed


 "/tmp/django-rest-auth/demo/demo/urls.py", line 5, in <module>

from rest_framework_swagger.views import get_swagger_view


 "/tmp/django-rest-auth/demo/env/lib/python3.4/site-packages/rest_framework_swagger/views.py", line 1, in <module>

from rest_framework import exceptions


 "/tmp/django-rest-auth/demo/env/lib/python3.4/site-packages/rest_framework/exceptions.py", line 17, in <module>

from rest_framework.utils.serializer_helpers import ReturnDict, ReturnList


 "/tmp/django-rest-auth/demo/env/lib/python3.4/site-packages/rest_framework/utils/serializer_helpers.py", line 8, in <module>

from rest_framework.compat import unicode_to_repr


 "/tmp/django-rest-auth/demo/env/lib/python3.4/site-packages/rest_framework/compat.py", line 31, in <module>

from django.core.urlresolvers import (
# Will be removed in Django 2.0
ImportError: No module named 'django.core.urlresolvers'
