No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

urls.py 1.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # This file is part of dnmgmt, a number resource management system
  2. # Licensed under GNU General Public License v3 or later
  3. # Written by Sebastian Lohff (seba@someserver.de)
  4. """dnmgmt URL Configuration
  5. The `urlpatterns` list routes URLs to views. For more information please see:
  6. https://docs.djangoproject.com/en/1.10/topics/http/urls/
  7. Examples:
  8. Function views
  9. 1. Add an import: from my_app import views
  10. 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
  11. Class-based views
  12. 1. Add an import: from other_app.views import Home
  13. 2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home')
  14. Including another URLconf
  15. 1. Import the include() function: from django.conf.urls import url, include
  16. 2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls'))
  17. """
  18. from django.conf.urls import url, include
  19. from django.contrib import admin
  20. from django.views.generic import TemplateView
  21. import dncore.urls
  22. import dncore.views
  23. import whoisdb.urls
  24. import rrequests.urls
  25. import domains.urls
  26. import api.urls
  27. urlpatterns = [
  28. url(r'^$', dncore.views.index, name='index'),
  29. url(r'^dashboard/$', dncore.views.dashboard, name='dashboard'),
  30. url(r'^admin/', admin.site.urls),
  31. url(r'^user/', include(dncore.urls, namespace='user')),
  32. url(r'^whoisdb/', include(whoisdb.urls, namespace='whoisdb')),
  33. url(r'^rrequests/', include(rrequests.urls, namespace='rrequests')),
  34. url(r'^domains/', include(domains.urls, namespace='domains')),
  35. url(r'^api/', include(api.urls, namespace='api')),
  36. url(r'^help/$', TemplateView.as_view(template_name='help/help.html'), name='help'),
  37. ]