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

Django 4 Compatibility #12

Merged
merged 4 commits into from
Jul 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ jobs:
python: "3.7"
- env: DJANGO_VERSION=3.1
python: "3.8"
- env: DJANGO_VERSION=4.0
python: "3.8"
- env: DJANGO_VERSION=4.0
python: "3.9"
- env: DJANGO_VERSION=4.0
python: "3.10"


addons:
Expand Down
4 changes: 2 additions & 2 deletions protected_media/urls.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from django.conf.urls import url
from django.urls import re_path

from protected_media.views import protected_view
from .settings import PROTECTED_MEDIA_SERVER, PROTECTED_MEDIA_AS_DOWNLOADS

urlpatterns = [
url(
re_path(
r"^(?P<path>.*)$", protected_view, {
"server": PROTECTED_MEDIA_SERVER,
"as_download": PROTECTED_MEDIA_AS_DOWNLOADS
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

setup(
name='django-protected-media',
version='1.0.0',
version='1.0.1',
packages=find_packages(),
include_package_data=True,
license='BSD License',
Expand All @@ -25,6 +25,7 @@
'Framework :: Django :: 2.2',
'Framework :: Django :: 3.0',
'Framework :: Django :: 3.1',
'Framework :: Django :: 4.0',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
Expand Down