Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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

Copy link
Copy Markdown

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.

* django.contrib.staticfiles app to serve static files

Expand Down
3 changes: 2 additions & 1 deletion progressbarupload/templatetags/progress_bar.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):

Copy link
Copy Markdown

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

from django.urls import reverse
elif DJANGO_VERSION[0] == 1:
from django.core.urlresolvers import reverse
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

setup(
name='django-progressbarupload',
version='0.1.8',
version='0.1.9',
packages=find_packages(),
include_package_data=True,
license='BSD License',
Expand Down