Changeset - 9296d8c23a54
[Not reviewed]
default
0 2 0
Branko Majic (branko) - 11 years ago 2013-03-24 19:46:00
branko@majic.rs
Removed unused imports. Some code styling improvements.
2 files changed with 1 insertions and 6 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 logging-in the users
 
from django.contrib.auth.views import login, logout
 

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

	
 
# Import some app-specific views.
 
from conntrackt.views import IndexView, ProjectView, EntityView, entity_iptables, project_iptables
 
from .views import IndexView, ProjectView, 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.
conntrackt/views.py
Show inline comments
 
@@ -6,13 +6,12 @@ from zipfile import ZipFile, ZIP_DEFLATE
 
from django.http import HttpResponse
 
from django.shortcuts import render_to_response, get_object_or_404
 
from django.views.generic import TemplateView, DetailView
 

	
 
# Application-specific imports.
 
from .models import Project, Entity, Location
 
from .stripper import StripperMiddleware
 
from .utils import generate_entity_iptables
 

	
 

	
 
class IndexView(TemplateView):
 
    """
 
    Custom view used for rendering the index page.
0 comments (0 inline, 0 general)