brack3t/Djrill — pull request #8 by rebelliard (2012-11-16 02:15:38+00:00)
Title: Provide a way to block admin.py when django-adminplus isn't loaded

I tried implementing *only* Djrill's backend into my very large application, but the application's own admin.autodiscovers kept trying to register **DjrillAdminSite** which I was not interested in, giving me the following error:

```
File "/home/ivan/.virtualenvs/goodbed/lib/python2.7/site-packages/djrill/admin.py" in
8. admin.site.register_view("djrill/senders/", DjrillSendersListView.as_view(),
Exception Type: AttributeError at /
Exception Value: 'AdminSite' object has no attribute 'register_view'
```

So my fix for this was to check if adminplus' was installed (by checking for ```register_view```), and if not (as is in my case), let it silently ignore the rest of its admin.py file.