lorddaedra
lorddaedra
How to implement something like that https://router.vuejs.org/guide/#html in most optimal way?.. For example, I have some admin panel, something like Django Admin. I have some main sections (like Django admin...
How to load page components by component name stored in variable or returned by function? ``` TemplateSyntaxError at / 'unicorn' tag's argument should be in quotes ``` views.py: ``` class...
Related discussion: https://github.com/adamghill/django-unicorn/discussions/236
https://www.starlette.io/
Sometimes during build I see ``` + gpg --keyserver ha.pool.sks-keyservers.net --recv-keys 0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D gpg: keybox '/tmp/tmp.aEHofD/pubring.kbx' created gpg: keyserver receive failed: Address not available ``` Suggested solution: add servers as alternatives...
In general it's good idea to split view to several parts: - parsing/validation input data (pydantic) - permission checks based on input data, request.user and required permissions (guardian) - some...
``` class MyUser(GuardianUserMixin, AbstractUser): """Just custom user model with `GuardianUserMixin` based on default `AbstractUser`.""" uid = models.UUIDField(verbose_name=_('UID'), unique=True, blank=True, default=generate_timeflake, editable=False) date_created = models.DateTimeField(_('date created'), auto_now_add=True, db_index=True) date_modified = models.DateTimeField(_('date...
I do not see good reason to use them for new projects, it's easy to add several lines like ``` class UserObjectPermission(UserObjectPermissionBase): content_object = models.ForeignKey(, models.CASCADE, related_name='user_object_permissions') class GroupObjectPermission(GroupObjectPermissionBase): content_object...
``` \ echo "Installing Google Cloud SDK..." && \ apt-get update && \ apt-get install -y --no-install-recommends apt-transport-https && \ export CLOUD_SDK_REPO="cloud-sdk-$(lsb_release -c -s)" && \ echo "deb https://packages.cloud.google.com/apt $CLOUD_SDK_REPO...