Changeset - 7f5dcd5234b0
[Not reviewed]
default
0 1 0
Branko Majic (branko) - 11 years ago 2013-03-16 23:34:02
branko@majic.rs
Removed the Location detail view.
1 file changed with 1 insertions and 4 deletions:
0 comments (0 inline, 0 general)
conntrackt/urls.py
Show inline comments
 
# Import basic functions for URL pattern processing.
 
from django.conf.urls import patterns, url
 

	
 
# For plain generic views
 
from conntrackt.models import Entity, Location
 
from conntrackt.models import Entity
 
from django.views.generic import DetailView
 

	
 
# Import some app-specific views.
 
from conntrackt.views import IndexView, IptablesView, ProjectView, get_project_iptables
 

	
 
urlpatterns = patterns(
 
@@ -15,15 +15,12 @@ urlpatterns = patterns(
 
    # View for showing information about a project.
 
    url(r'^project/(?P<pk>\d+)/$', ProjectView.as_view(),
 
        name = 'project'),
 
    # View for showing information about an entity.
 
    url(r'^entity/(?P<pk>\d+)/$', DetailView.as_view(model = Entity),
 
        name = 'entity'),
 
    # View for showing information about a location.
 
    url(r'^location/(?P<pk>\d+)/$', DetailView.as_view(model = Location),
 
        name = 'location'),
 
    # View for rendering iptables rules for a specific entity.
 
    url(r'^entity/(?P<pk>\d+)/iptables/$', IptablesView.as_view(), 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/$', get_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/$', get_project_iptables, name="project_location_iptables"),
0 comments (0 inline, 0 general)