asifpy / django-crudbuilder

Generic CRUD implementation in Django
https://django-crudbuilder.readthedocs.org/en/latest/index.html
Apache License 2.0
193 stars 67 forks source link

Migration to Django 2.0 #57

Closed kosc closed 6 years ago

kosc commented 6 years ago

I'm trying to use this module in Django 2.0, Python 3.6 and getting the following error: ModuleNotFoundError: No module named 'django.core.urlresolvers' Traceback points to following string:

from crudbuilder import urls

Django-crudbuilder version is 0.2.6 from PyPI.

UPD: I've installed version from git and got another error: TypeError: view must be a callable or a list/tuple in the case of include(). to code:

path('crud/', urls),

UPD2: I've rewrite my code to old-style django urls:

url('crud/', include(urls))

and now it works fine. It's anough for me, but i think you should make your code compatible with new-style urls too.