douglasmiranda / django-admin-bootstrap

Responsive Theme for Django Admin With Sidebar Menu
MIT License
880 stars 235 forks source link

Six removed from django 3.0 #151

Closed ortegoncarlos closed 4 years ago

ortegoncarlos commented 4 years ago

Hello thanks for your work, the library django.utils.six was removed from django 3.0

https://docs.djangoproject.com/en/3.0/releases/3.0/#removed-private-python-2-compatibility-apis

  File "django_projects/Asostartups/venv/lib/python3.7/site-packages/bootstrap_admin/templatetags/bootstrap_admin_template_tags.py", line 5, in <module>
    from django.utils import six
ImportError: cannot import name 'six' from 'django.utils' (/Users/carlosortegon/django_projects/Asostartups/venv/lib/python3.7/site-packages/django/utils/__init__.py)

During handling of the above exception, another exception occurr
ortegoncarlos commented 4 years ago

actually you just imported but don't use it, it can be erase that line

from django.utils import six

Nefonfo commented 4 years ago

I have the same problem with the import name 'six'

ortegoncarlos commented 4 years ago

not the "best practice" way to fix it but a hacky way:

Go to /site-packages/bootstrap_admin/templatetags/bootstrap_admin_template_tags.py and erase line

from django.utils import six
nodarai commented 4 years ago

@ortegoncarlos maybe worth to make a new release in order to make the package compatible with Django 3

eghlima commented 4 years ago

@ortegoncarlos Thanks for this library. as most of users using the django3, I think that is better to have a new release. when you think we can have a new release?

douglasmiranda commented 4 years ago

I'll be pushing a new release very soon, sorry for the delay.

douglasmiranda commented 4 years ago

https://github.com/douglasmiranda/django-admin-bootstrap/releases/tag/0.4.4