On Wed, Apr 21, 2021 at 8:46 PM Eric 247ERICPOINTCOM <ericbaw@gmail.com> wrote:
Hi Ryan,Am trying to use booking on a marketing system that is developing for different kinds of businesses like property where someone would be able to book an appointment for a viewing or a service like a Mobile car wash where someone would be able to book a car washer for a specific time. But on the same system so it would be dynamic depending on the service someone would like to book for or a product someone would like to schedule to buy like shoes or anything.I followed the steps as indicated in the README file and installed Django-booking successfully, but there are a couple of errors I get with this app when I run the server with: python manage.py runserver.This is what I get.(envirn) C:\Users\Eric\Desktop\Shop>python manage.py runserver
...
File "C:\Users\Eric\Desktop\Shop\envirn\lib\site-packages\django_libs\models_mixins.py", line 5, in <module>
from django.utils.encoding import python_2_unicode_compatible
ImportError: cannot import name 'python_2_unicode_compatible' from 'django.utils.encoding' (C:\Users\Eric\Desktop\Shop\envirn\lib\site-packages\django\utils\encodi
ng.py)
This is a pretty classic error caused by a mismatch between Django version and the app you are trying to run.
Check the docs to ensure you're running a supported version of Django - the python_2_unicode_compatible decorator has not been around since Python 2 support was dropped.
If the app has no other python 2 dependencies you may be able to get away with simply removing the decorator from models that use it (and the import statement for it as well) as it is no longer necessary.
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAE5VhgWHAUqD%2B6Mke7%2B6wRTuHV6YvAFdAUw3QtynepAWaw5Ygw%40mail.gmail.com.
No comments:
Post a Comment