|
@@ -3,7 +3,7 @@ from django.conf.urls import patterns, u
|
|
|
from django.contrib.auth.views import login, logout
|
|
|
|
|
|
# Application imports.
|
|
|
from .views import IndexView, EntityView, entity_iptables, project_iptables
|
|
|
from .views import IndexView, EntityView, entity_iptables, project_iptables, project_diagram
|
|
|
from .views import ProjectView, ProjectCreateView, ProjectUpdateView, ProjectDeleteView
|
|
|
from .views import LocationCreateView, LocationUpdateView, LocationDeleteView
|
|
|
from .views import EntityCreateView, EntityUpdateView, EntityDeleteView
|
|
@@ -64,6 +64,9 @@ urlpatterns = patterns(
|
|
|
# View for rendering zip file with iptables rules for all entities in a project for a specific location.
|
|
|
url(r'^project/(?P<project_id>\d+)/location/(?P<location_id>\d+)/iptables/$', project_iptables, name="project_location_iptables"),
|
|
|
|
|
|
# View for showing project communications in a diagram.
|
|
|
url(r'^project/(?P<pk>\d+)/diagram/$', project_diagram, name="project_diagram"),
|
|
|
|
|
|
# Views for logging-in/out the users.
|
|
|
url(r'^login/$', login, {'template_name': 'conntrackt/login.html'}, name="login"),
|
|
|
url(r'^logout/$', logout, name="logout"),
|