Skip to content
View leofaster's full-sized avatar

Block or report leofaster

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. Count the numbers of hits to database Count the numbers of hits to database
    1
    from django.db import connection
    2
    
                  
    3
    print(len(connection.queries))
    4
    
                  
    5
    from django.db import reset_queries
  2. Login to Amazon ECR from Docker cli ... Login to Amazon ECR from Docker cli locally.
    1
    aws ecr get-login | sed 's|https://||'
    2
    
                  
    3
    # Remember to delete the -e
  3. Django Image Upload Unit Test Django Image Upload Unit Test
    1
    from PIL import Image
    2
    from rest_framework.test import APIRequestFactory, force_authenticate
    3
    
                  
    4
    class TestPostVetListCreateView:
    5
        factory = APIRequestFactory()