danielquinn / django-encrypted-filefield

Encrypt uploaded files, store them wherever you like and stream them back unencrypted
GNU General Public License v3.0
65 stars 22 forks source link

Error using django.core.urlresolvers #9

Closed spaceriqui closed 6 years ago

spaceriqui commented 6 years ago

On Django 2.0, the django.core.urlresolvers module is removed in favor of its new location, django.urls.

https://docs.djangoproject.com/en/2.0/releases/2.0/

It appears django-encrypted-filefield is using django.core.urlresolvers in three places:

demo/views.py django_encrypted_filefiled/checks.py and fields.py

Wrapped both versions in a try statement, so if django.urls fails because django < 2.0 is installed, then it falls back on django.core.urlresolvers.

Test seems to work fine on django 2.0, however I haven't tested in an actual app.

danielquinn commented 6 years ago

Cool beans! Thanks for your efforts. I'll put a proper release out soon.