justinmayer / django-autoslug

AutoSlugField for Django. Supports (but not does not require) unidecode/pytils for transliteration. Old issue tracker is at Bitbucket: https://bitbucket.org/neithere/django-autoslug/issues
https://readthedocs.org/projects/django-autoslug/
GNU Lesser General Public License v3.0
295 stars 105 forks source link

ModuleNotFoundError: No module named 'django.core.urlresolvers' on python 3.6.3 #39

Closed sadaf2605 closed 5 years ago

sadaf2605 commented 6 years ago
File "/Users/sadafnoor/.pyenv/versions/evaly3.6.3/lib/python3.6/site-packages/autoslug/__init__.py", line 11, in <module>
    from autoslug.fields import AutoSlugField
  File "/Users/sadafnoor/.pyenv/versions/evaly3.6.3/lib/python3.6/site-packages/autoslug/fields.py", line 29, in <module>
    from autoslug.settings import slugify, autoslug_modeltranslation_enable
  File "/Users/sadafnoor/.pyenv/versions/evaly3.6.3/lib/python3.6/site-packages/autoslug/settings.py", line 61, in <module>
    from django.core.urlresolvers import get_callable
ModuleNotFoundError: No module named 'django.core.urlresolvers'
dilrajsachdev commented 6 years ago

This is with Django 2.0, change 'django.core.urlresolvers' to 'django.urls'

jackton1 commented 6 years ago

The package isn't updated to support Django 2.0

try:
  from django.core.urlresolvers import get_callable
except ModuleNotFoundError:
  from django.urls import get_callable
barseghyanartur commented 6 years ago

Use django-autoslug-iplweb (drop-in replacement):

PyPI GitHub

marcosschroh commented 6 years ago

I am getting the same error with django 2.0.5

iMerica commented 6 years ago

Using django-autoslug-iplweb==1.9.4 with Python 3.6.6 + Django 2.1.1 worked for me. Thanks @barseghyanartur.

sandeepbalagopal09 commented 6 years ago

Please release the master branch.

justinmayer commented 5 years ago

django-autoslug v1.9.4, which should now support Django 1.10, 1.11, and 2.0+, has been released and published to PyPI. The documentation will be updated once ownership of the corresponding ReadTheDocs project has been transferred. (Link to transfer request)

Thanks to everyone for your patience! 🎉