from django.contrib import admin from djrill.views import (DjrillIndexView, DjrillSendersListView, DjrillDisableSenderView, DjrillVerifySenderView, DjrillAddSenderView, DjrillTagListView, DjrillUrlListView) if hasattr('admin.site', 'register_view'): # Only do this if the user has registered DjrilAdmin as admin.site admin.site.register_view("djrill/senders/", DjrillSendersListView.as_view(), "djrill_senders", "senders") admin.site.register_view("djrill/status/", DjrillIndexView.as_view(), "djrill_status", "status") admin.site.register_view("djrill/tags/", DjrillTagListView.as_view(), "djrill_tags", "tags") admin.site.register_view("djrill/urls/", DjrillUrlListView.as_view(), "djrill_urls", "urls") if hasattr('admin.site', 'register_view'): admin.site.register_url("djrill/disable/sender/", DjrillDisableSenderView.as_view(), "djrill_disable_sender") admin.site.register_url("djrill/verify/sender/", DjrillVerifySenderView.as_view(), "djrill_verify_sender") admin.site.register_url("djrill/add/sender/", DjrillAddSenderView.as_view(), "djrill_add_sender")
from django.contrib import admin from djrill.views import (DjrillIndexView, DjrillSendersListView, DjrillTagListView, DjrillUrlListView) # Only try to register Djrill admin views if DjrillAdminSite # or django-adminplus is in use if hasattr(admin.site,'register_view'): admin.site.register_view("djrill/senders/", DjrillSendersListView.as_view(), "djrill_senders", "senders") admin.site.register_view("djrill/status/", DjrillIndexView.as_view(), "djrill_status", "status") admin.site.register_view("djrill/tags/", DjrillTagListView.as_view(), "djrill_tags", "tags") admin.site.register_view("djrill/urls/", DjrillUrlListView.as_view(), "djrill_urls", "urls")
DjrillTagListView, DjrillUrlListView) urlpatterns = patterns( '', url(r'^$', TemplateView.as_view( template_name='dothis/home.html'), name='home'), url(r'^grappelli/', include('grappelli.urls')), url(r'^admin/doc/', include('django.contrib.admindocs.urls')), # From Djrill url("admin/email/senders/", admin.site.admin_view(DjrillSendersListView.as_view()), name="djrill_senders"), url("admin/email/status/", admin.site.admin_view(DjrillIndexView.as_view()), name="djrill_status", ), url("admin/email/tags/", admin.site.admin_view(DjrillTagListView.as_view()), name="djrill_tags"), url("admin/email/urls/", admin.site.admin_view(DjrillUrlListView.as_view()), name="djrill_urls"), url(r'^admin/', include(admin.site.urls)), url(r'^volunteering/', include('volunteering.urls', namespace='volunteering')), url(r'^styles/', include('foundation.urls')), url(r'^robots\.txt$', lambda r: HttpResponse( content="User-agent: *\nDisallow: /*",