pep8 fixes
This commit is contained in:
parent
2e0f02053f
commit
26a911824d
@ -24,7 +24,7 @@ def UpdateIpView(request):
|
||||
af = dns.inet.af_for_address(ipaddr)
|
||||
key = 'ipv4' if af == dns.inet.AF_INET else 'ipv6'
|
||||
request.session[key] = ipaddr
|
||||
image_data = open(settings.STATIC_ROOT+"/1px.gif", "rb").read()
|
||||
image_data = open(os.path.join(settings.STATIC_ROOT, "1px.gif"), "rb").read()
|
||||
return HttpResponse(image_data, mimetype="image/png")
|
||||
|
||||
|
||||
|
@ -1,12 +1,10 @@
|
||||
from django.conf.urls import patterns, include, url
|
||||
from main.views import (
|
||||
HomeView, OverviewView, HostView, DeleteHostView,
|
||||
)
|
||||
from api.views import (
|
||||
MyIpView, UpdateIpView, NicUpdateView
|
||||
)
|
||||
from main.views import HomeView, OverviewView, HostView, DeleteHostView
|
||||
from api.views import MyIpView, UpdateIpView, NicUpdateView
|
||||
|
||||
urlpatterns = patterns('',
|
||||
|
||||
urlpatterns = patterns(
|
||||
'',
|
||||
url(r'^$', HomeView.as_view(), name="home"),
|
||||
url(r'^overview/$', OverviewView.as_view(), name='overview'),
|
||||
url(r'^host/(?P<pk>\d+)/$', HostView.as_view(), name='host_view'),
|
||||
|
Loading…
x
Reference in New Issue
Block a user