@classmethod
    def check(cls):
        super(FlickrView, cls).check()
        try:
            import flickrapi
        except __HOLE__:
            raise DisableView('FlickrView requires the "flickrapi" library '
                              '(http://pypi.python.org/pypi/flickrapi)')
        try:
            django_settings.ADMINFILES_FLICKR_USER
            django_settings.ADMINFILES_FLICKR_API_KEY
        except AttributeError:
            raise DisableView('FlickrView requires '
                              'ADMINFILES_FLICKR_USER and '
                              'ADMINFILES_FLICKR_API_KEY settings')
dataset/ETHPy150Open carljm/django-adminfiles/adminfiles/views.py/FlickrView.check