Skip to content

Fixes for Django 3 #31

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

darkman66
Copy link

No description provided.

@glassresistor
Copy link

This looks like the fix that i need

Copy link

@Julio0250 Julio0250 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yesterday I made the same changes because reverse is not declared when evaluate the version of django if u use django 3. This package also works en python 3.4+

@ericswpark
Copy link

@ouhouhsami please merge this change!

@@ -6,7 +6,8 @@
from django.forms.widgets import Media
from django.utils.safestring import mark_safe

if DJANGO_VERSION[0] == 2:

if DJANGO_VERSION[0] in (2, 3):

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To support also Django 4+ just use:

if DJANGO_VERSION[0] == 1:
    from django.core.urlresolvers import reverse
else:
    from django.urls import reverse

@@ -27,7 +27,7 @@ Quick start
-----------

Requirements :
* Django 1.7.4 or above.
* Django 1.7.4 or above. (also 3.x)
* Python 2.7 or 3.4

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Python 2.7 or 3.4+ should be fine and Django 4 either.

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

Successfully merging this pull request may close these issues.

5 participants