Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/d/j/django_cas-2.0.3/django_cas/backends.py   django_cas(Download)
            return None
        try:
            user = User.objects.get(username__iexact=username)
        except User.DoesNotExist:
            # user will have an "unusable" password
    def get_user(self, user_id):
        """Retrieve the user's entry in the User model if it exists"""
 
        try:
            return User.objects.get(pk=user_id)