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

[DI-2712] Some minor improvements #90

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

denys-chura
Copy link
Collaborator

  • Add localhost and 0.0.0.0 to *_ALLOWED_HOSTS;
  • Add *_DJANGO_ADMIN_URL and ADMIN_URL to be able to change admin url;
  • Improve readme;
  • Fix ConfirmResetPasswordSerializer.signature field length validation;
  • Update CELERY_TIMEZONE to be set from *_TIME_ZONE environment variable instead of importing django.py settings file.

- Add localhost and 0.0.0.0 to `*_ALLOWED_HOSTS`;
- Add `*_DJANGO_ADMIN_URL` and `ADMIN_URL` to be able to change admin url;
- Improve readme;
- Fix `ConfirmResetPasswordSerializer.signature` field length validation;
- Update `CELERY_TIMEZONE` to be set from `*_TIME_ZONE` environment variable instead of importing `django.py` settings file.
@denys-chura denys-chura self-assigned this Oct 18, 2024
@@ -45,7 +45,7 @@ def save(self, **kwargs):

class ConfirmResetPasswordSerializer(serializers.Serializer):
password = serializers.CharField(max_length=128, write_only=True, style={"input_type": "password"})
signature = serializers.CharField(max_length=71, write_only=True)
signature = serializers.CharField(max_length=128, write_only=True)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exact value for current configuration is 87 but then we will have no margin. I as I understand length of signature can be different if we change algorithm so I decide give it some margin.

@@ -12,6 +12,7 @@
{{ cookiecutter.__env_prefix }}EMAIL_PORT=1025
{{ cookiecutter.__env_prefix }}EMAIL_USE_TLS=off

{{ cookiecutter.__env_prefix }}DJANGO_ADMIN_URL=admin/
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I open for suggestion to replace default admin/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant