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

ImportError: No module named mixins #8

Closed jgardounis closed 6 years ago

jgardounis commented 6 years ago

Hello, I have Django 1.8 and I have installed this app to my project, but I have hit a snag. When I try to run the server it returns the error:

from django.contrib.auth.mixins import AuthMixin ImportError: No module named mixins

danielquinn commented 6 years ago

Hi @jgardounis, yeah that's a bit confusing I guess. This is the result of you following the README which is written with modern versions of Django in mind. Django 1.8 doesn't have the various mixins that were introduced for security later (in 1.9 I think). These features were merged in from django-braces so you can use that package if you want, or roll your own rules for access in your view.

I've not given a lot of thought to 1.8, since Django will be dropping support for it soon, so I'd recommend that you update as soon as you can!