Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: cannot import name 'python_2_unicode_compatible' from 'django.utils.encoding' #39

Open
FIRDOUS-BHAT opened this issue Aug 8, 2020 · 1 comment

Comments

@FIRDOUS-BHAT
Copy link

While installing this package on Django 3, it gives such an error in models.py file

`import random

from django.conf import settings
from django.db import IntegrityError
from django.db import models
from django.dispatch import Signal
from django.utils.encoding import python_2_unicode_compatible #this gives an error
from django.utils import timezone
from django.utils.translation import ugettext_lazy as _
`

@q210
Copy link

q210 commented Sep 17, 2020

@FIRDOUS-BHAT this repo is a bit outdated, here's one of the forks that was patched to be Django 3 compatible: https://github.com/UfoDriver/django-coupons.git

you can install it like this: pip install git+https://github.com/UfoDriver/django-coupons.git#egg=coupons

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants