-
Notifications
You must be signed in to change notification settings - Fork 42
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
Conversation
- 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.
@@ -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) |
There was a problem hiding this comment.
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/ |
There was a problem hiding this comment.
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/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
*_ALLOWED_HOSTS
;*_DJANGO_ADMIN_URL
andADMIN_URL
to be able to change admin url;ConfirmResetPasswordSerializer.signature
field length validation;CELERY_TIMEZONE
to be set from*_TIME_ZONE
environment variable instead of importingdjango.py
settings file.