mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-14 18:46:52 +01:00
Chore: Convert the consumer to a plugin (#6361)
This commit is contained in:
parent
e837f1e85b
commit
b720aa3cd1
15 changed files with 922 additions and 617 deletions
|
|
@ -7,7 +7,6 @@ import re
|
|||
import tempfile
|
||||
from os import PathLike
|
||||
from pathlib import Path
|
||||
from platform import machine
|
||||
from typing import Final
|
||||
from typing import Optional
|
||||
from typing import Union
|
||||
|
|
@ -112,7 +111,7 @@ def __get_list(
|
|||
return []
|
||||
|
||||
|
||||
def _parse_redis_url(env_redis: Optional[str]) -> tuple[str]:
|
||||
def _parse_redis_url(env_redis: Optional[str]) -> tuple[str, str]:
|
||||
"""
|
||||
Gets the Redis information from the environment or a default and handles
|
||||
converting from incompatible django_channels and celery formats.
|
||||
|
|
@ -371,10 +370,7 @@ ASGI_APPLICATION = "paperless.asgi.application"
|
|||
STATIC_URL = os.getenv("PAPERLESS_STATIC_URL", BASE_URL + "static/")
|
||||
WHITENOISE_STATIC_PREFIX = "/static/"
|
||||
|
||||
if machine().lower() == "aarch64": # pragma: no cover
|
||||
_static_backend = "django.contrib.staticfiles.storage.StaticFilesStorage"
|
||||
else:
|
||||
_static_backend = "whitenoise.storage.CompressedStaticFilesStorage"
|
||||
_static_backend = "django.contrib.staticfiles.storage.StaticFilesStorage"
|
||||
|
||||
STORAGES = {
|
||||
"staticfiles": {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue