urls.py 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. """vycenter URL Configuration
  2. The `urlpatterns` list routes URLs to views. For more information please see:
  3. https://docs.djangoproject.com/en/3.0/topics/http/urls/
  4. Examples:
  5. Function views
  6. 1. Add an import: from my_app import views
  7. 2. Add a URL to urlpatterns: path('', views.home, name='home')
  8. Class-based views
  9. 1. Add an import: from other_app.views import Home
  10. 2. Add a URL to urlpatterns: path('', Home.as_view(), name='home')
  11. Including another URLconf
  12. 1. Import the include() function: from django.urls import include, path
  13. 2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
  14. """
  15. from django.contrib import admin
  16. from django.urls import include, path
  17. from django.conf import settings
  18. def reload_urlconf(self):
  19. if settings.ROOT_URLCONF in sys.modules:
  20. reload(sys.modules[settings.ROOT_URLCONF])
  21. return import_module(settings.ROOT_URLCONF)
  22. import pprint
  23. from . import views
  24. from django.contrib.auth import views as auth_views
  25. app_name = 'vycenter'
  26. urlpatterns = [
  27. path('', include('accounts.urls')),
  28. path('config/', include('config.urls')),
  29. path('dashboard/', include('dashboard.urls')),
  30. #path('', views.vycenter_login, name='vycenter-login'),
  31. path('admin/', admin.site.urls, name="django-admin"),
  32. #path('change-password/', auth_views.PasswordChangeView.as_view()),
  33. path('login/', auth_views.LoginView.as_view(), name="registration-login"),
  34. path('logout/', auth_views.LogoutView.as_view(), name="registration-logout"),
  35. path('interface/', include('interface.urls')),
  36. path('firewall/', include('firewall.urls')),
  37. path('static/', include('static.urls')),
  38. path('arp/', include('arp.urls')),
  39. path('bgp/', include('bgp.urls')),
  40. path('dhcp/', include('dhcp.urls')),
  41. path('ipsec/', include('ipsec.urls')),
  42. path('nat/', include('nat.urls')),
  43. path('openvpn/', include('openvpn.urls')),
  44. path('ospf/', include('ospf.urls')),
  45. path('qos/', include('qos.urls')),
  46. path('ssh/', include('ssh.urls')),
  47. path('wanlb/', include('wanlb.urls')),
  48. ]