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_pdx-1.0.0/django_cas_pdx/backends.py   django_cas_pdx(Download)
    def get_or_init_user(self, username):
        try:
            user = User.objects.get(username=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)