django-pfx 1.4.dev6__tar.gz → 1.4.dev8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/PKG-INFO +1 -1
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/django_pfx.egg-info/PKG-INFO +1 -1
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/pfx/pfxcore/default_settings.py +8 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/pfx/pfxcore/storage/s3_storage.py +4 -3
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/.gitignore +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/.gitlab-ci.yml +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/.pre-commit-config.yaml +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/LICENSE +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/MANIFEST.in +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/README.md +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/django-admin-test +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/django_pfx.egg-info/SOURCES.txt +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/django_pfx.egg-info/dependency_links.txt +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/django_pfx.egg-info/requires.txt +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/django_pfx.egg-info/top_level.txt +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/doc/Makefile +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/doc/conf.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/doc/index.rst +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/doc/source/api.views.rst +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/doc/source/authentication.md +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/doc/source/decorator.md +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/doc/source/generate_openapi.md +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/doc/source/getting_started.md +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/doc/source/internationalisation.md +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/doc/source/model.md +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/doc/source/pfx_views.md +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/doc/source/profiling.md +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/doc/source/settings.md +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/doc/source/testing.md +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/img/pfx.png +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/img/pfx.svg +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/pfx/__init__.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/pfx/pfxcore/__init__.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/pfx/pfxcore/apidoc/__init__.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/pfx/pfxcore/apidoc/parameters.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/pfx/pfxcore/apidoc/schema.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/pfx/pfxcore/apidoc/tags.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/pfx/pfxcore/apps.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/pfx/pfxcore/decorator/__init__.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/pfx/pfxcore/decorator/rest.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/pfx/pfxcore/exceptions.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/pfx/pfxcore/fields.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/pfx/pfxcore/http/__init__.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/pfx/pfxcore/http/json_response.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/pfx/pfxcore/locale/fr/LC_MESSAGES/django.mo +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/pfx/pfxcore/locale/fr/LC_MESSAGES/django.po +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/pfx/pfxcore/management/__init__.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/pfx/pfxcore/management/commands/__init__.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/pfx/pfxcore/management/commands/makeapidoc.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/pfx/pfxcore/management/commands/profile.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/pfx/pfxcore/middleware/__init__.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/pfx/pfxcore/middleware/authentication.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/pfx/pfxcore/middleware/locale.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/pfx/pfxcore/middleware/profiling.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/pfx/pfxcore/models/__init__.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/pfx/pfxcore/models/cache_mixins.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/pfx/pfxcore/models/not_null_fields.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/pfx/pfxcore/models/pfx_models.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/pfx/pfxcore/models/user_filtered_queryset_mixin.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/pfx/pfxcore/serializers/__init__.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/pfx/pfxcore/serializers/json.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/pfx/pfxcore/settings.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/pfx/pfxcore/shortcuts.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/pfx/pfxcore/storage/__init__.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/pfx/pfxcore/templates/registration/password_reset_email.txt +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/pfx/pfxcore/templates/registration/password_reset_subject.txt +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/pfx/pfxcore/templates/registration/welcome_email.txt +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/pfx/pfxcore/templates/registration/welcome_subject.txt +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/pfx/pfxcore/test.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/pfx/pfxcore/urls.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/pfx/pfxcore/views/__init__.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/pfx/pfxcore/views/authentication_views.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/pfx/pfxcore/views/fields.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/pfx/pfxcore/views/filters_views.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/pfx/pfxcore/views/locale_views.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/pfx/pfxcore/views/parameters/__init__.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/pfx/pfxcore/views/parameters/date_format.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/pfx/pfxcore/views/parameters/groups.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/pfx/pfxcore/views/parameters/list_count.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/pfx/pfxcore/views/parameters/list_items.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/pfx/pfxcore/views/parameters/list_mode.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/pfx/pfxcore/views/parameters/list_order.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/pfx/pfxcore/views/parameters/list_search.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/pfx/pfxcore/views/parameters/media_redirect.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/pfx/pfxcore/views/parameters/meta_fields.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/pfx/pfxcore/views/parameters/meta_filters.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/pfx/pfxcore/views/parameters/meta_orders.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/pfx/pfxcore/views/parameters/subset.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/pfx/pfxcore/views/parameters/subset_limit.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/pfx/pfxcore/views/parameters/subset_offset.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/pfx/pfxcore/views/parameters/subset_page.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/pfx/pfxcore/views/parameters/subset_page_size.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/pfx/pfxcore/views/parameters/subset_page_subset.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/pfx/pfxcore/views/rest_views.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/pyproject.toml +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/requirements.txt +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/runtest.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/serve-doc +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/setup.cfg +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/setup.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/tests/__init__.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/tests/locale/fr/LC_MESSAGES/django.po +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/tests/models.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/tests/settings/__init__.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/tests/settings/ci.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/tests/settings/common.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/tests/settings/dev.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/tests/settings/dev_custom_example.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/tests/settings/dev_default.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/tests/tests/__init__.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/tests/tests/basic_api_errors.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/tests/tests/basic_api_test.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/tests/tests/test_api_doc.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/tests/tests/test_auth_api.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/tests/tests/test_body_mixin.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/tests/tests/test_cache.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/tests/tests/test_client.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/tests/tests/test_fields.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/tests/tests/test_filters.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/tests/tests/test_locale_api.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/tests/tests/test_perm_tests.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/tests/tests/test_perms_api.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/tests/tests/test_profiling_middleware.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/tests/tests/test_shortcuts.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/tests/tests/test_timezone_middleware.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/tests/tests/test_tools.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/tests/tests/test_user_queryset.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/tests/tests/test_view_decorators.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/tests/tests/test_view_fields.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/tests/urls.py +0 -0
- {django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/tests/views.py +0 -0
|
@@ -12,4 +12,12 @@ PFX_OPENAPI_TEMPLATE = {}
|
|
|
12
12
|
PFX_PROFILING_SQL = ""
|
|
13
13
|
PFX_PROFILING_CPROFILE = ""
|
|
14
14
|
|
|
15
|
+
STORAGE_S3_AWS_REGION = None
|
|
16
|
+
STORAGE_S3_AWS_ACCESS_KEY = None
|
|
17
|
+
STORAGE_S3_AWS_SECRET_KEY = None
|
|
18
|
+
STORAGE_S3_AWS_ENDPOINT_URL = None
|
|
19
|
+
STORAGE_S3_AWS_S3_BUCKET = None
|
|
20
|
+
STORAGE_S3_AWS_PUT_URL_EXPIRE = None
|
|
21
|
+
STORAGE_S3_AWS_GET_URL_EXPIRE = None
|
|
22
|
+
|
|
15
23
|
PFX_TEST_MODE = False
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import logging
|
|
2
2
|
from io import IOBase
|
|
3
3
|
|
|
4
|
-
from django.conf import settings
|
|
5
|
-
|
|
6
4
|
import boto3
|
|
7
5
|
from botocore.exceptions import ClientError
|
|
8
6
|
|
|
7
|
+
from pfx.pfxcore.shortcuts import settings
|
|
8
|
+
|
|
9
9
|
logger = logging.getLogger(__name__)
|
|
10
10
|
|
|
11
11
|
|
|
@@ -19,7 +19,8 @@ class S3Storage:
|
|
|
19
19
|
return boto3.client(
|
|
20
20
|
's3', region_name=settings.STORAGE_S3_AWS_REGION,
|
|
21
21
|
aws_access_key_id=settings.STORAGE_S3_AWS_ACCESS_KEY,
|
|
22
|
-
aws_secret_access_key=settings.STORAGE_S3_AWS_SECRET_KEY
|
|
22
|
+
aws_secret_access_key=settings.STORAGE_S3_AWS_SECRET_KEY,
|
|
23
|
+
endpoint_url=settings.STORAGE_S3_AWS_ENDPOINT_URL)
|
|
23
24
|
|
|
24
25
|
def to_python(self, value):
|
|
25
26
|
if 'key' not in value:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/pfx/pfxcore/models/user_filtered_queryset_mixin.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/pfx/pfxcore/templates/registration/welcome_email.txt
RENAMED
|
File without changes
|
{django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/pfx/pfxcore/templates/registration/welcome_subject.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/pfx/pfxcore/views/parameters/subset_page_size.py
RENAMED
|
File without changes
|
{django-pfx-1.4.dev6 → django-pfx-1.4.dev8}/pfx/pfxcore/views/parameters/subset_page_subset.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|