Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
D
Django-Redis-Cache
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shared
Django-Redis-Cache
Commits
2d241f11
Unverified
Commit
2d241f11
authored
Sep 28, 2019
by
Sean Bleier
Committed by
GitHub
Sep 28, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #174 from felixxm/django-3.0
Add support for Django 3.0
parents
0b1f870a
eb22a4b9
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
20 additions
and
8 deletions
+20
-8
.travis.yml
.travis.yml
+7
-2
Makefile
Makefile
+1
-1
README.rst
README.rst
+5
-0
utils.py
redis_cache/utils.py
+4
-4
requirements.txt
requirements.txt
+1
-0
setup.py
setup.py
+2
-1
No files found.
.travis.yml
View file @
2d241f11
...
...
@@ -9,7 +9,8 @@ env:
-
DJANGO_VERSION='<2.0'
-
DJANGO_VERSION='>=2.0,<2.1'
-
DJANGO_VERSION='>=2.1,<2.2'
-
DJANGO_VERSION='==2.2b1'
-
DJANGO_VERSION='>=2.2,<3.0'
-
DJANGO_VERSION='>=3.0a1,<3.1'
matrix
:
exclude
:
-
python
:
2.7
...
...
@@ -17,9 +18,13 @@ matrix:
-
python
:
2.7
env
:
DJANGO_VERSION='>=2.1,<2.2'
-
python
:
2.7
env
:
DJANGO_VERSION='==2.2b1'
env
:
DJANGO_VERSION='>=2.2,<3.0'
-
python
:
2.7
env
:
DJANGO_VERSION='>=3.0a1,<3.1'
-
python
:
3.5
env
:
DJANGO_VERSION='<2.0'
-
python
:
3.5
env
:
DJANGO_VERSION='>=3.0a1,<3.1'
-
python
:
3.6
env
:
DJANGO_VERSION='<2.0'
-
python
:
3.7
...
...
Makefile
View file @
2d241f11
SHELL
:=
/bin/bash
PACKAGE_NAME
=
redis_cache
DJANGO_VERSION
?=>=
1.11,<3.
0
DJANGO_VERSION
?=>=
1.11,<3.
1
.PHONY
:
install_requirements
install_requirements
:
requirements*.txt
...
...
README.rst
View file @
2d241f11
...
...
@@ -21,6 +21,11 @@ Docs can be found at http://django-redis-cache.readthedocs.org/en/latest/.
Changelog
=========
X.Y.Z
-----
* Adds support for Django 3.0.
2.0.0
-----
...
...
redis_cache/utils.py
View file @
2d241f11
...
...
@@ -2,9 +2,9 @@ import importlib
import
warnings
from
django.core.exceptions
import
ImproperlyConfigured
from
django.utils
import
six
from
django.utils.encoding
import
force_text
,
python_2_unicode_compatible
from
django.utils.
six.moves.urllib.parse
import
parse_qs
,
urlparse
from
django.utils
.encoding
import
force_text
from
six
import
python_2_unicode_compatible
,
string_types
from
six.moves.urllib.parse
import
parse_qs
,
urlparse
from
redis._compat
import
unicode
from
redis.connection
import
SSLConnection
...
...
@@ -14,7 +14,7 @@ def get_servers(location):
"""Returns a list of servers given the server argument passed in from
Django.
"""
if
isinstance
(
location
,
s
ix
.
s
tring_types
):
if
isinstance
(
location
,
string_types
):
servers
=
location
.
split
(
','
)
elif
hasattr
(
location
,
'__iter__'
):
servers
=
location
...
...
requirements.txt
View file @
2d241f11
redis
<4.0
six
setup.py
View file @
2d241f11
...
...
@@ -9,7 +9,7 @@ setup(
license
=
"BSD"
,
packages
=
[
"redis_cache"
,
"redis_cache.backends"
],
description
=
"Redis Cache Backend for Django"
,
install_requires
=
[
'redis<4.0'
],
install_requires
=
[
'redis<4.0'
,
'six'
],
classifiers
=
[
"Programming Language :: Python"
,
"Programming Language :: Python :: 2.7"
,
...
...
@@ -27,5 +27,6 @@ setup(
"Framework :: Django :: 2.0"
,
"Framework :: Django :: 2.1"
,
"Framework :: Django :: 2.2"
,
"Framework :: Django :: 3.0"
,
],
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment