mirror of
https://github.com/pacnpal/django-anymail.git
synced 2025-12-20 03:41:05 -05:00
@@ -65,47 +65,3 @@ with :ref:`Mandrill-specific sending options <mandrill-send-support>`.)
|
||||
|
||||
|
||||
.. _subaccounts: http://help.mandrill.com/entries/25523278-What-are-subaccounts-
|
||||
|
||||
|
||||
Admin (Optional)
|
||||
----------------
|
||||
|
||||
Djrill includes an optional Django admin interface, which allows you to:
|
||||
|
||||
* Check the status of your Mandrill API connection
|
||||
* See stats on email senders, tags and urls
|
||||
|
||||
If you want to enable the Djrill admin interface, edit your base :file:`urls.py`:
|
||||
|
||||
.. code-block:: python
|
||||
:emphasize-lines: 4,6
|
||||
|
||||
...
|
||||
from django.contrib import admin
|
||||
|
||||
from djrill import DjrillAdminSite
|
||||
|
||||
admin.site = DjrillAdminSite()
|
||||
admin.autodiscover()
|
||||
...
|
||||
|
||||
urlpatterns = [
|
||||
...
|
||||
url(r'^admin/', include(admin.site.urls)),
|
||||
]
|
||||
|
||||
If you are on **Django 1.7 or later,** you will also need to change the config used
|
||||
by the django.contrib.admin app in your :file:`settings.py`:
|
||||
|
||||
.. code-block:: python
|
||||
:emphasize-lines: 4
|
||||
|
||||
...
|
||||
INSTALLED_APPS = (
|
||||
# For Django 1.7+, use SimpleAdminConfig because we'll call autodiscover...
|
||||
'django.contrib.admin.apps.SimpleAdminConfig', # instead of 'django.contrib.admin'
|
||||
...
|
||||
'djrill',
|
||||
...
|
||||
)
|
||||
...
|
||||
|
||||
Reference in New Issue
Block a user