Python 3 compatibility
Closed this issue · 4 comments
travishathaway commented
I was recently using this repository with Python 3.3. I haven't fully tested it, but the only issue I had was with use of "xrange" on line 181 of paginator.py.
One possible way to fix this is adding something like this at the top of the file
# Python 3
try:
xrange
except(NameError):
xrange = range
jamespacileo commented
ok, sounds reasonable. Will add that in thanks :)
slick666 commented
+1
jlnabais commented
+1
jamespacileo commented
@travishathaway @slick666 @jlnabais
Better late than never... currently working with Python 3, thanks to contributors @lampslave
If any of you use Docker, I've added the relevant files for firing up a Python 3 instance with Django 1.8+.
The fork added Travis CI tests which are cleverly testing against different versions of Python and Django (1.7, 1.8),