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

Django 3.0 Support #14

Open
atlasstrategic opened this issue Jan 9, 2020 · 3 comments
Open

Django 3.0 Support #14

atlasstrategic opened this issue Jan 9, 2020 · 3 comments

Comments

@atlasstrategic
Copy link

Django 3.0 removes django.utils.encoding.python_2_unicode_compatible(), which is used as a decorator on the PayFastOrder model.

Removing this decorator is required for Django 3.0 support.

Reference

@qoda
Copy link

qoda commented Jun 1, 2020

Any chance @atlasstrategic fix can be merged, I'm seeing the same issue on my side, using Django 3.0.6:

Traceback (most recent call last):
  File "./manage.py", line 15, in <module>
    execute_from_command_line(sys.argv)
  File "-/ve/lib/python3.7/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line
    utility.execute()
  File "-/ve/lib/python3.7/site-packages/django/core/management/__init__.py", line 377, in execute
    django.setup()
  File "-/ve/lib/python3.7/site-packages/django/__init__.py", line 24, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "-/ve/lib/python3.7/site-packages/django/apps/registry.py", line 114, in populate
    app_config.import_models()
  File "-/ve/lib/python3.7/site-packages/django/apps/config.py", line 211, in import_models
    self.models_module = import_module(models_module_name)
  File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "-/ve/lib/python3.7/site-packages/payfast/models.py", line 6, in <module>
    from django.utils.encoding import python_2_unicode_compatible
ImportError: cannot import name 'python_2_unicode_compatible' from 'django.utils.encoding' (-/ve/lib/python3.7/site-packages/django/utils/encoding.py)

@Moon-developer
Copy link

Is this project going to be updated for Django 3 by any chance?

@sirthom9123
Copy link

This project is old, came across a number of errors. Is this gonna be fixed in Django 3? Or can I contribute?

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

4 participants