chibisov / drf-extensions

DRF-extensions is a collection of custom extensions for Django REST Framework
http://chibisov.github.io/drf-extensions/docs
MIT License
1.47k stars 208 forks source link

No module named 'django.conf.urls.defaults' #163

Closed decentral1se closed 8 years ago

decentral1se commented 8 years ago
    from rest_framework_extensions.compat import force_text
  File "/home/lwm/work/noa/velodrome/.venv/src/drf-extensions/rest_framework_extensions/compat.py", line 24, in <module>
    from django.conf.urls.defaults import patterns, url, include
ImportError: No module named 'django.conf.urls.defaults'

PR on the way ...

decentral1se commented 8 years ago

Oh, my error, it's already fixed. Just something local.

SkinyMonkey commented 8 years ago

I'm having the same issue. Using drf last version and drf-extensions last version installed with pip

Could you please explain to me what's going on?

decentral1se commented 8 years ago

Could you please explain to me what's going on?

@SkinyMonkey

You need to remove all remains of the old drf-extensions from your virtual env.

This is fixed on master and the newest release.

SkinyMonkey commented 8 years ago

I'll try.

Thank you! :)