django-pfx 1.4.dev26__tar.gz → 1.4.dev28__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.dev26 → django-pfx-1.4.dev28}/PKG-INFO +1 -1
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/django_pfx.egg-info/PKG-INFO +1 -1
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/django_pfx.egg-info/SOURCES.txt +1 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/pfx/pfxcore/decorator/rest.py +1 -3
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/pfx/pfxcore/management/commands/makeapidoc.py +1 -2
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/pfx/pfxcore/middleware/profiling.py +1 -2
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/pfx/pfxcore/models/login_ban.py +1 -3
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/pfx/pfxcore/models/otp_user_mixin.py +1 -3
- django-pfx-1.4.dev28/pfx/pfxcore/settings.py +22 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/pfx/pfxcore/shortcuts.py +1 -3
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/pfx/pfxcore/views/authentication_views.py +1 -2
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/tests/tests/__init__.py +1 -0
- django-pfx-1.4.dev28/tests/tests/test_settings.py +23 -0
- django-pfx-1.4.dev26/pfx/pfxcore/settings.py +0 -11
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/.gitignore +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/.gitlab-ci.yml +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/.pre-commit-config.yaml +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/LICENSE +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/MANIFEST.in +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/README.md +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/django-admin-test +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/django_pfx.egg-info/dependency_links.txt +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/django_pfx.egg-info/requires.txt +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/django_pfx.egg-info/top_level.txt +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/doc/Makefile +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/doc/conf.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/doc/index.rst +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/doc/source/api.views.rst +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/doc/source/authentication.md +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/doc/source/decorator.md +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/doc/source/generate_openapi.md +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/doc/source/getting_started.md +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/doc/source/internationalisation.md +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/doc/source/model.md +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/doc/source/pfx_views.md +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/doc/source/profiling.md +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/doc/source/settings.md +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/doc/source/testing.md +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/img/pfx.png +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/img/pfx.svg +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/pfx/__init__.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/pfx/pfxcore/__init__.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/pfx/pfxcore/apidoc/__init__.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/pfx/pfxcore/apidoc/parameters.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/pfx/pfxcore/apidoc/schema.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/pfx/pfxcore/apidoc/tags.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/pfx/pfxcore/apps.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/pfx/pfxcore/decorator/__init__.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/pfx/pfxcore/default_settings.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/pfx/pfxcore/exceptions.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/pfx/pfxcore/fields.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/pfx/pfxcore/http/__init__.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/pfx/pfxcore/http/json_response.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/pfx/pfxcore/locale/fr/LC_MESSAGES/django.mo +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/pfx/pfxcore/locale/fr/LC_MESSAGES/django.po +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/pfx/pfxcore/management/__init__.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/pfx/pfxcore/management/commands/__init__.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/pfx/pfxcore/management/commands/profile.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/pfx/pfxcore/middleware/__init__.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/pfx/pfxcore/middleware/authentication.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/pfx/pfxcore/middleware/locale.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/pfx/pfxcore/models/__init__.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/pfx/pfxcore/models/abstract_pfx_base_user.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/pfx/pfxcore/models/cache_mixins.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/pfx/pfxcore/models/not_null_fields.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/pfx/pfxcore/models/pfx_models.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/pfx/pfxcore/models/user_filtered_queryset_mixin.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/pfx/pfxcore/serializers/__init__.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/pfx/pfxcore/serializers/json.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/pfx/pfxcore/storage/__init__.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/pfx/pfxcore/storage/s3_storage.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/pfx/pfxcore/templates/registration/otp_code_email.txt +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/pfx/pfxcore/templates/registration/otp_code_subject.txt +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/pfx/pfxcore/templates/registration/password_reset_email.txt +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/pfx/pfxcore/templates/registration/password_reset_subject.txt +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/pfx/pfxcore/templates/registration/welcome_email.txt +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/pfx/pfxcore/templates/registration/welcome_subject.txt +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/pfx/pfxcore/test.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/pfx/pfxcore/urls.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/pfx/pfxcore/views/__init__.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/pfx/pfxcore/views/fields.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/pfx/pfxcore/views/filters_views.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/pfx/pfxcore/views/locale_views.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/pfx/pfxcore/views/parameters/__init__.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/pfx/pfxcore/views/parameters/date_format.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/pfx/pfxcore/views/parameters/groups.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/pfx/pfxcore/views/parameters/list_count.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/pfx/pfxcore/views/parameters/list_items.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/pfx/pfxcore/views/parameters/list_mode.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/pfx/pfxcore/views/parameters/list_order.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/pfx/pfxcore/views/parameters/list_search.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/pfx/pfxcore/views/parameters/media_redirect.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/pfx/pfxcore/views/parameters/meta_fields.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/pfx/pfxcore/views/parameters/meta_filters.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/pfx/pfxcore/views/parameters/meta_orders.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/pfx/pfxcore/views/parameters/subset.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/pfx/pfxcore/views/parameters/subset_limit.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/pfx/pfxcore/views/parameters/subset_offset.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/pfx/pfxcore/views/parameters/subset_page.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/pfx/pfxcore/views/parameters/subset_page_size.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/pfx/pfxcore/views/parameters/subset_page_subset.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/pfx/pfxcore/views/rest_views.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/pyproject.toml +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/requirements.txt +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/runtest.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/serve-doc +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/setup.cfg +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/setup.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/tests/__init__.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/tests/locale/fr/LC_MESSAGES/django.po +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/tests/models.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/tests/settings/__init__.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/tests/settings/ci.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/tests/settings/common.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/tests/settings/dev.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/tests/settings/dev_custom_example.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/tests/settings/dev_default.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/tests/tests/basic_api_errors.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/tests/tests/basic_api_test.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/tests/tests/test_api_doc.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/tests/tests/test_auth_api.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/tests/tests/test_body_mixin.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/tests/tests/test_cache.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/tests/tests/test_client.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/tests/tests/test_fields.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/tests/tests/test_filters.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/tests/tests/test_locale_api.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/tests/tests/test_perm_tests.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/tests/tests/test_perms_api.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/tests/tests/test_profiling_middleware.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/tests/tests/test_shortcuts.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/tests/tests/test_timezone_middleware.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/tests/tests/test_tools.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/tests/tests/test_user_queryset.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/tests/tests/test_view_decorators.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/tests/tests/test_view_fields.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/tests/urls.py +0 -0
- {django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/tests/views.py +0 -0
|
@@ -127,6 +127,7 @@ tests/tests/test_locale_api.py
|
|
|
127
127
|
tests/tests/test_perm_tests.py
|
|
128
128
|
tests/tests/test_perms_api.py
|
|
129
129
|
tests/tests/test_profiling_middleware.py
|
|
130
|
+
tests/tests/test_settings.py
|
|
130
131
|
tests/tests/test_shortcuts.py
|
|
131
132
|
tests/tests/test_timezone_middleware.py
|
|
132
133
|
tests/tests/test_tools.py
|
|
@@ -7,11 +7,9 @@ from apispec.utils import deepupdate
|
|
|
7
7
|
|
|
8
8
|
from pfx.pfxcore.exceptions import APIError
|
|
9
9
|
from pfx.pfxcore.http import JsonResponse
|
|
10
|
-
from pfx.pfxcore.settings import
|
|
10
|
+
from pfx.pfxcore.settings import settings
|
|
11
11
|
from pfx.pfxcore.test import format_request
|
|
12
12
|
|
|
13
|
-
settings = PFXSettings()
|
|
14
|
-
|
|
15
13
|
logger = logging.getLogger(__name__)
|
|
16
14
|
|
|
17
15
|
|
|
@@ -11,10 +11,9 @@ from apispec.yaml_utils import load_operations_from_docstring
|
|
|
11
11
|
|
|
12
12
|
from pfx.pfxcore import __PFX_VIEWS__
|
|
13
13
|
from pfx.pfxcore.apidoc import __PARAMETERS__, __TAGS__, ParameterGroup
|
|
14
|
-
from pfx.pfxcore.settings import
|
|
14
|
+
from pfx.pfxcore.settings import settings
|
|
15
15
|
from pfx.pfxcore.views import FilterGroup, ModelMixin
|
|
16
16
|
|
|
17
|
-
settings = PFXSettings()
|
|
18
17
|
DEFAULT_TEMPLATE = dict(
|
|
19
18
|
title="PFX API",
|
|
20
19
|
version="1.0.0",
|
|
@@ -11,10 +11,9 @@ from django.utils.deprecation import MiddlewareMixin
|
|
|
11
11
|
|
|
12
12
|
import sqlparse
|
|
13
13
|
|
|
14
|
-
from pfx.pfxcore.settings import
|
|
14
|
+
from pfx.pfxcore.settings import settings
|
|
15
15
|
|
|
16
16
|
logger = logging.getLogger(__name__)
|
|
17
|
-
settings = PFXSettings()
|
|
18
17
|
rid = ContextVar('var')
|
|
19
18
|
|
|
20
19
|
|
|
@@ -4,9 +4,7 @@ from django.db import models
|
|
|
4
4
|
from django.utils import timezone
|
|
5
5
|
from django.utils.translation import gettext_lazy as _
|
|
6
6
|
|
|
7
|
-
from pfx.pfxcore.settings import
|
|
8
|
-
|
|
9
|
-
settings = PFXSettings()
|
|
7
|
+
from pfx.pfxcore.settings import settings
|
|
10
8
|
|
|
11
9
|
|
|
12
10
|
class LoginBanQuerySet(models.QuerySet):
|
|
@@ -4,9 +4,7 @@ from django.db import models
|
|
|
4
4
|
from django.utils import timezone
|
|
5
5
|
from django.utils.translation import gettext_lazy as _
|
|
6
6
|
|
|
7
|
-
from pfx.pfxcore.settings import
|
|
8
|
-
|
|
9
|
-
settings = PFXSettings()
|
|
7
|
+
from pfx.pfxcore.settings import settings
|
|
10
8
|
|
|
11
9
|
|
|
12
10
|
class OtpUserMixin(models.Model):
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
from django.conf import settings as django_settings
|
|
2
|
+
from django.core.exceptions import ImproperlyConfigured
|
|
3
|
+
|
|
4
|
+
from . import default_settings
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class PFXSettings:
|
|
8
|
+
def __getattr__(self, name):
|
|
9
|
+
try:
|
|
10
|
+
val = getattr(django_settings, name)
|
|
11
|
+
except AttributeError:
|
|
12
|
+
if hasattr(default_settings, name):
|
|
13
|
+
val = getattr(default_settings, name)
|
|
14
|
+
else:
|
|
15
|
+
raise
|
|
16
|
+
if name == "PFX_SECRET_KEY" and not val:
|
|
17
|
+
raise ImproperlyConfigured(
|
|
18
|
+
"The PFX_SECRET_KEY setting must not be empty.")
|
|
19
|
+
return val
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
settings = PFXSettings()
|
|
@@ -5,9 +5,7 @@ from datetime import date
|
|
|
5
5
|
from django.core.exceptions import ObjectDoesNotExist
|
|
6
6
|
from django.utils.translation import gettext_lazy as _
|
|
7
7
|
|
|
8
|
-
from
|
|
9
|
-
|
|
10
|
-
settings = PFXSettings()
|
|
8
|
+
from .settings import settings
|
|
11
9
|
|
|
12
10
|
logger = logging.getLogger(__name__)
|
|
13
11
|
|
|
@@ -32,7 +32,7 @@ from pfx.pfxcore.http import JsonResponse
|
|
|
32
32
|
from pfx.pfxcore.middleware.authentication import JWTTokenDecodeMixin
|
|
33
33
|
from pfx.pfxcore.models import CacheableMixin, OtpUserMixin
|
|
34
34
|
from pfx.pfxcore.models.login_ban import LoginBan
|
|
35
|
-
from pfx.pfxcore.settings import
|
|
35
|
+
from pfx.pfxcore.settings import settings
|
|
36
36
|
from pfx.pfxcore.shortcuts import delete_token_cookie
|
|
37
37
|
|
|
38
38
|
from .rest_views import (
|
|
@@ -42,7 +42,6 @@ from .rest_views import (
|
|
|
42
42
|
ModelMixin,
|
|
43
43
|
)
|
|
44
44
|
|
|
45
|
-
settings = PFXSettings()
|
|
46
45
|
logger = logging.getLogger(__name__)
|
|
47
46
|
UserModel = get_user_model()
|
|
48
47
|
AUTHENTICATION_TAG = Tag("Authentication")
|
|
@@ -11,6 +11,7 @@ from .test_locale_api import LocaleAPITest
|
|
|
11
11
|
from .test_perm_tests import PermTestsTest
|
|
12
12
|
from .test_perms_api import PermsAPITest
|
|
13
13
|
from .test_profiling_middleware import ProfilingMiddlewareTest
|
|
14
|
+
from .test_settings import TestSettings
|
|
14
15
|
from .test_shortcuts import ShortcutTest
|
|
15
16
|
from .test_timezone_middleware import TimezoneMiddlewareTest
|
|
16
17
|
from .test_tools import TestTools
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
from datetime import timedelta
|
|
2
|
+
|
|
3
|
+
from django.core.exceptions import ImproperlyConfigured
|
|
4
|
+
from django.test import TestCase, override_settings
|
|
5
|
+
|
|
6
|
+
from pfx.pfxcore.test import TestAssertMixin
|
|
7
|
+
from pfx.pfxcore.views import AuthenticationView
|
|
8
|
+
from tests.models import User
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class TestSettings(TestAssertMixin, TestCase):
|
|
12
|
+
|
|
13
|
+
@override_settings(PFX_SECRET_KEY="")
|
|
14
|
+
def test_mandatory_pfx_secret_key(self):
|
|
15
|
+
user = User.objects.create_user(
|
|
16
|
+
username='user',
|
|
17
|
+
email="user@example.com",
|
|
18
|
+
password='test',
|
|
19
|
+
first_name='User',
|
|
20
|
+
last_name='Test')
|
|
21
|
+
|
|
22
|
+
with self.assertRaises(ImproperlyConfigured):
|
|
23
|
+
AuthenticationView()._prepare_token(user, timedelta())
|
|
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.dev26 → django-pfx-1.4.dev28}/pfx/pfxcore/models/user_filtered_queryset_mixin.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/pfx/pfxcore/templates/registration/otp_code_email.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/pfx/pfxcore/templates/registration/welcome_email.txt
RENAMED
|
File without changes
|
{django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/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
|
{django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/pfx/pfxcore/views/parameters/media_redirect.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.dev26 → django-pfx-1.4.dev28}/pfx/pfxcore/views/parameters/subset_page_size.py
RENAMED
|
File without changes
|
{django-pfx-1.4.dev26 → django-pfx-1.4.dev28}/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
|