Skip to content
This repository has been archived by the owner on Oct 29, 2024. It is now read-only.

django 2.0 module removed #53

Open
deamoon opened this issue Feb 12, 2018 · 1 comment
Open

django 2.0 module removed #53

deamoon opened this issue Feb 12, 2018 · 1 comment

Comments

@deamoon
Copy link

deamoon commented Feb 12, 2018

admin.py
The django.core.urlresolvers module is removed in favor of its new location, django.urls.

@royryando
Copy link

Yes, the error is look like this

Unhandled exception in thread started by <function check_errors..wrapper at 0x7fd56b69c1e0>
Traceback (most recent call last):
File "/home/royryando/.local/lib/python3.6/site-packages/django/utils/autoreload.py", line 225, in wrapper
fn(*args, **kwargs)
File "/home/royryando/.local/lib/python3.6/site-packages/django/core/management/commands/runserver.py", line 109, in inner_run
autoreload.raise_last_exception()
File "/home/royryando/.local/lib/python3.6/site-packages/django/utils/autoreload.py", line 248, in raise_last_exception
raise _exception[1]
File "/home/royryando/.local/lib/python3.6/site-packages/django/core/management/init.py", line 337, in execute
autoreload.check_errors(django.setup)()
File "/home/royryando/.local/lib/python3.6/site-packages/django/utils/autoreload.py", line 225, in wrapper
fn(*args, **kwargs)
File "/home/royryando/.local/lib/python3.6/site-packages/django/init.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/home/royryando/.local/lib/python3.6/site-packages/django/apps/registry.py", line 120, in populate
app_config.ready()
File "/home/royryando/.local/lib/python3.6/site-packages/django/contrib/admin/apps.py", line 24, in ready
self.module.autodiscover()
File "/home/royryando/.local/lib/python3.6/site-packages/django/contrib/admin/init.py", line 26, in autodiscover
autodiscover_modules('admin', register_to=site)
File "/home/royryando/.local/lib/python3.6/site-packages/django/utils/module_loading.py", line 47, in autodiscover_modules
import_module('%s.%s' % (app_config.name, module_to_search))
File "/usr/lib/python3.6/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 994, in _gcd_import
File "", line 971, in _find_and_load
File "", line 955, in _find_and_load_unlocked
File "", line 665, in _load_unlocked
File "", line 678, in exec_module
File "", line 219, in _call_with_frames_removed
File "/home/royryando/.local/lib/python3.6/site-packages/export_action/admin.py", line 4, in
from django.core.urlresolvers import reverse
ModuleNotFoundError: No module named 'django.core.urlresolvers'

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants