mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-11-12 08:53:56 +01:00
See: https://docs.djangoproject.com/en/stable/releases/2.0/ The only required changes are - as reported in #1466 - the addition of `app_name` in `urls.py` for URL namespaces.
19 lines
497 B
Python
19 lines
497 B
Python
"""App related urls."""
|
|
|
|
from django.urls import path
|
|
|
|
from . import views
|
|
|
|
app_name = "dnstools"
|
|
|
|
urlpatterns = [
|
|
path('dnsrecords/<int:pk>/', views.DNSRecordDetailView.as_view(),
|
|
name="dns_record_detail"),
|
|
path('dnsrecords/autoconfig/<int:pk>/',
|
|
views.AutoConfigRecordsStatusView.as_view(),
|
|
name="autoconfig_records_status"),
|
|
path('configuration/<int:pk>/',
|
|
views.DomainDNSConfigurationView.as_view(),
|
|
name="domain_dns_configuration"),
|
|
]
|