Verified Commit 5e55a270 authored by Thalia Technicie's avatar Thalia Technicie Committed by Joren Vrancken
Browse files

Update dependency django-sendfile2 to v0.5.1



Co-Authored-By: Joren Vrancken's avatarJoren Vrancken <jorenvrancken@gmail.com>
parent 2ed5d32b
......@@ -325,11 +325,10 @@ description = "Abstraction to offload file uploads to web-server (e.g. Apache wi
name = "django-sendfile2"
optional = false
python-versions = "*"
version = "0.4.3"
version = "0.5.1"
[package.dependencies]
django = "*"
six = "*"
[[package]]
category = "dev"
......@@ -1171,7 +1170,7 @@ version = "1.11.2"
docs = ["recommonmark", "sphinx"]
[metadata]
content-hash = "1c33afdb201d5addafcbc8c87c6c3655943906b9bf5b9f0c8306464bc112a830"
content-hash = "4d28a5ea9a952aa8cc8111af46ff451e8e1a425c2a6bbee8c5e909a8861068ff"
python-versions = "^3.7"
[metadata.files]
......@@ -1369,7 +1368,7 @@ django-libsass = [
]
django-localflavor = []
django-sendfile2 = [
{file = "django-sendfile2-0.4.3.tar.gz", hash = "sha256:267cdd817a5fe7e649df9139ac3efbe8675c61ccdab43146d1e8cbd9bab70554"},
{file = "django-sendfile2-0.5.1.tar.gz", hash = "sha256:695c635bdc26fe35e22565f046c92126a03fafb587e11415baec6da9df1be04e"},
]
django-template-check = [
{file = "django-template-check-0.3.1.tar.gz", hash = "sha256:72c424239c09ae76782e4357b29a34cacfcb0f64a8fabb478f6526c84507e3d2"},
......
......@@ -25,7 +25,7 @@ uWSGI = "2.0.18"
django-bootstrap4 = "1.1.1"
firebase-admin = "3.2.1"
sentry-sdk = "0.14.0"
django-sendfile2 = "0.4.3"
django-sendfile2 = "0.5.1"
# docs requirements
recommonmark = { version = "0.6.0", optional = true }
......
......@@ -9,7 +9,7 @@ from django.utils import timezone
from django.utils.text import slugify
from django.utils.translation import get_language
from django.views.generic import TemplateView, DetailView
from sendfile import sendfile
from django_sendfile import sendfile
from documents.models import (
AnnualDocument,
......
......@@ -10,7 +10,7 @@ from django.utils import timezone
from django.utils.decorators import method_decorator
from django.utils.translation import ugettext_lazy as _, get_language
from django.views.generic import ListView, DetailView, CreateView, TemplateView
from sendfile import sendfile
from django_sendfile import sendfile
from members.decorators import membership_required
from .forms import AddExamForm, AddSummaryForm
......
......@@ -6,7 +6,7 @@ from django.contrib.admin.views.decorators import staff_member_required
from django.contrib.auth.decorators import permission_required
from django.shortcuts import get_object_or_404, redirect, render
from django.utils.translation import activate, get_language_info
from sendfile import sendfile
from django_sendfile import sendfile
from newsletters import services
from newsletters.models import Newsletter
......
......@@ -7,7 +7,7 @@ from django.core.paginator import EmptyPage, Paginator
from django.http import Http404
from django.shortcuts import get_object_or_404, render
from django.utils.translation import get_language
from sendfile import sendfile
from django_sendfile import sendfile
from photos.models import Album, Photo
from photos.services import (
......
......@@ -53,7 +53,7 @@ MEDIA_ROOT = "/concrexit/media"
MEDIA_URL = "/media/" # Public is included by the db fields
if not settings.DEBUG:
SENDFILE_BACKEND = "sendfile.backends.nginx"
SENDFILE_BACKEND = "django_sendfile.backends.nginx"
SENDFILE_URL = "/media/sendfile/"
SENDFILE_ROOT = "/concrexit/media/"
......
......@@ -210,7 +210,7 @@ LOCALE_PATHS = ("locale",)
MEDIA_ROOT = os.path.join(BASE_DIR, "media")
MEDIA_URL = "/media/" # Public is included by the db fields
SENDFILE_BACKEND = "sendfile.backends.development"
SENDFILE_BACKEND = "django_sendfile.backends.development"
STATIC_URL = "/static/"
STATIC_ROOT = os.path.join(BASE_DIR, "static")
......
......@@ -9,7 +9,7 @@ from django.core.exceptions import PermissionDenied
from django.core.signing import BadSignature
from django.http import Http404
from django.shortcuts import redirect
from sendfile import sendfile
from django_sendfile import sendfile
def _get_signature_info(request):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment