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

dajaxice 0.1.5 breaks on older version of Django #20

Closed
gerdemb opened this issue Aug 16, 2010 · 4 comments
Closed

dajaxice 0.1.5 breaks on older version of Django #20

gerdemb opened this issue Aug 16, 2010 · 4 comments

Comments

@gerdemb
Copy link

gerdemb commented Aug 16, 2010

The new release of dajaxice 0.1.5 breaks on version 1.0.4 of Django because it relies on django.util.importlib which is not available until the 1.1.x versions of Django. The previous version of dajaxice 0.1.4 had code to detect this case.

If the new versions of dajaxice will not be compatible with older versions of Django, it would be helpful if that was mentioned in the documentation or even better dajaxice could check if the version of Django is compatible and display an nice error message.

Unfortunately, I can't easily upgrade my Django version so I will be stuck with the older version of dajaxice if this can't be fixed.

try:
from importlib import import_module
DAJAXICE_MODERN_IMPORT = True
except:
try:
from django.utils import importlib
DAJAXICE_MODERN_IMPORT = True
except:
DAJAXICE_MODERN_IMPORT = False

@jorgebastida
Copy link
Owner

Thanks for the bug, i'm working to solve it.

@jorgebastida
Copy link
Owner

Check the HEAD version, http://github.com/jorgebastida/django-dajaxice/commit/d5d941b1e400c1cdf2b75f89cfb68388989e69f5

Dajaxice now works with django 1.0.4, importlib isn't required.

@jorgebastida
Copy link
Owner

Fixed in 1.0.6

@jorgebastida
Copy link
Owner

Closed in 0.1.7

amccool pushed a commit to amccool/django-dajaxice that referenced this issue Sep 8, 2015
 - First dajaxice 0.1.6 commit
 - Dajaxice core was rewrited to solve bad path registration at any module depth.
 - Dajaxice now works with django<=1.0.4 (django.utils.importlib isn't required, but it's recommended).
 - Fixing some characters missing using '+'
 - Some Tests should be rewrited.
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants