Files
@ 26c0c45a8480
Branch filter:
Location: conntrackt/conntrackt/urls.py - annotation
26c0c45a8480
1.8 KiB
text/x-python
CONNT-7: Modified the index view to show listing of projects and entities in two columns. Updated the index test accordingly.
f397b9db8183 2b65280e6407 18ff99706db5 c5c40a039ec4 f397b9db8183 509ed963b5e1 b38bff5ff039 f397b9db8183 576954d47c4c 3c652f6dc038 2b65280e6407 b38bff5ff039 2b65280e6407 ad556f8e81bd f397b9db8183 e7f270f1c28d 509ed963b5e1 509ed963b5e1 509ed963b5e1 509ed963b5e1 509ed963b5e1 ad556f8e81bd 90fac7c6abb9 f397b9db8183 2b65280e6407 90fac7c6abb9 02c5e6c3ba98 90fac7c6abb9 02c5e6c3ba98 90fac7c6abb9 18ff99706db5 f397b9db8183 f397b9db8183 576954d47c4c | # Django imports.
from django.conf.urls import patterns, url
from django.contrib.auth.views import login, logout
# Application imports.
from .views import IndexView, ProjectView, ProjectCreateView, ProjectUpdateView, ProjectDeleteView, EntityView, entity_iptables, project_iptables
urlpatterns = patterns(
'conntrackt.views',
# Homepage/index view.
url(r'^$', IndexView.as_view(), name="index"),
# View for showing information about a project.
url(r'^project/(?P<pk>\d+)/$', ProjectView.as_view(),
name='project'),
# View for creating a new project.
url(r'^project/add/$', ProjectCreateView.as_view(), name="project_create"),
# View for updating an existing project.
url(r'^project/(?P<pk>\d+)/edit/$', ProjectUpdateView.as_view(), name="project_update"),
# View for deleting a project.
url(r'^project/(?P<pk>\d+)/remove/$', ProjectDeleteView.as_view(), name="project_delete"),
# View for showing information about an entity.
url(r'^entity/(?P<pk>\d+)/$', EntityView.as_view(),
name='entity'),
# View for rendering iptables rules for a specific entity.
url(r'^entity/(?P<pk>\d+)/iptables/$', entity_iptables, name="entity_iptables"),
# View for rendering zip file with iptables rules for all entities in a project.
url(r'^project/(?P<project_id>\d+)/iptables/$', project_iptables, name="project_iptables"),
# 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"),
# Views for logging-in/out the users.
url(r'^login/$', login, {'template_name': 'conntrackt/login.html'}, name="login"),
url(r'^logout/$', logout, name="logout"),
)
|