<NME> urls.py
<BEF> """Admin urls."""

from django.urls import path

from . import views
from .views import (
    alias as alias_views, domain as domain_views, export as export_views,
    identity as identity_views, import_ as import_views
)
    (r'^domains/(?P<dom_id>\d+)/edit/$', 'editdomain'),
    (r'^domains/delete/$', 'deldomain'),
    (r'^domains/import/$', 'import_domains'),
    
    (r'^settings/$', 'viewsettings'),
    (r'^settings/parameters/$', 'viewparameters'),
         name="domain_detail"),
    path('domains/<int:pk>/alarms/', views.DomainAlarmsView.as_view(),
         name="domain_alarms"),
    path('domains/<int:pk>/dnsbl/', views.DNSBLDomainDetailView.as_view(),
         name="dnsbl_domain_detail"),
    path('domains/<int:pk>/mx/', views.MXDomainDetailView.as_view(),
         name="mx_domain_detail"),
    (r'^identities/$', 'identities'),
    (r'^identities/list/$', '_identities'),
    (r'^identities/import/$', 'import_identities'),

    (r'^accounts/list/$', 'accounts_list'),
    (r'^accounts/new/$', 'newaccount'),
    path('domains/new/', domain_views.newdomain, name="domain_add"),
    path('domains/<int:dom_id>/edit/', domain_views.editdomain,
         name="domain_change"),
    path('domains/<int:dom_id>/delete/', domain_views.deldomain,
         name="domain_delete"),
    path('domains/page/', domain_views.get_next_page,
         name="domain_page"),
]

urlpatterns += [
    path('permissions/remove/', identity_views.remove_permission,
         name="permission_remove"),

    path('identities/', identity_views.identities, name="identity_list"),
    path('identities/list/', identity_views._identities,
         name="_identity_list"),
    path('identities/quotas/', identity_views.list_quotas,
         name="identity_quota_list"),
    path('identities/page/', identity_views.get_next_page,
         name="identity_page"),

    path('accounts/list/', identity_views.accounts_list,
         name="account_list"),
    path('accounts/new/', identity_views.newaccount, name="account_add"),
    path('accounts/<int:pk>/', views.AccountDetailView.as_view(),
         name="account_detail"),
    path('accounts/<int:pk>/edit/', identity_views.editaccount,
         name="account_change"),
    path('accounts/<int:pk>/delete/', identity_views.delaccount,
         name="account_delete"),
]

urlpatterns += [
    path('aliases/new/', alias_views.newalias, name="alias_add"),
    path('aliases/<int:pk>/', views.AliasDetailView.as_view(),
         name="alias_detail"),
    path('aliases/<int:alid>/edit/', alias_views.editalias,
         name="alias_change"),
    path('aliases/delete/', alias_views.delalias, name="alias_delete"),
]

urlpatterns += [
    path('domains/import/', import_views.import_domains,
         name="domain_import"),
    path('identities/import/', import_views.import_identities,
         name="identity_import"),
]

urlpatterns += [
    path('domains/export/', export_views.export_domains,
         name="domain_export"),
    path('identities/export/', export_views.export_identities,
         name="identity_export"),
]

<MSG> * Possibility to export domains and identities (see #116)
* Display Modoboa version nicely (fix #304)

<DFF> @@ -10,6 +10,7 @@ urlpatterns = patterns(
     (r'^domains/(?P<dom_id>\d+)/edit/$', 'editdomain'),
     (r'^domains/delete/$', 'deldomain'),
     (r'^domains/import/$', 'import_domains'),
+    (r'^domains/export/$', 'export_domains'),
     
     (r'^settings/$', 'viewsettings'),
     (r'^settings/parameters/$', 'viewparameters'),
@@ -23,6 +24,7 @@ urlpatterns = patterns(
     (r'^identities/$', 'identities'),
     (r'^identities/list/$', '_identities'),
     (r'^identities/import/$', 'import_identities'),
+    (r'^identities/export/$', 'export_identities'),
 
     (r'^accounts/list/$', 'accounts_list'),
     (r'^accounts/new/$', 'newaccount'),

* Possibility to export domains and identities (see #116) * Display Modoboa version nicely (fix #304)