'Returns site-specific profile for this user. Raises
SiteProfileNotAvailable if this site does not allow profiles.'

def get_profile(self):

    warnings.warn(u'The    use    of    AUTH_PROFILE_MODULE    to    define    user    profiles    has    been    deprecated.', PendingDeprecationWarning)
    if (not hasattr(self, u'_profile_cache')):
        from django.conf import settings
        if (not getattr(settings, u'AUTH_PROFILE_MODULE', False)):
            raise SiteProfileNotAvailable(u'You    need    to    set    AUTH_PROFILE_MODULE    in    your    project    settings')
        try:
            (app_label, model_name) = settings.AUTH_PROFILE_MODULE.split(u'.')
        except ValueError:
            raise SiteProfileNotAvailable(u'app_label    and    model_name    should    be    separated    by    a    dot    in    the    AUTH_PROFILE_MODULE    setting')
        try:
            model = models.get_model(app_label, model_name)
            if (model is None):
                raise SiteProfileNotAvailable(u'Unable    to    load    the    profile    model,    check    AUTH_PROFILE_MODULE    in    your    project    settings')
            self._profile_cache = model._default_manager.using(self._state.db).get(user__id__exact=self.id)
            self._profile_cache.user = self
        except (ImportError, ImproperlyConfigured):
            raise SiteProfileNotAvailable
    return self._profile_cache
