mirror of
https://github.com/retspen/webvirtcloud
synced 2025-07-31 12:41:08 +00:00
fix some linter warnings
This commit is contained in:
parent
119d874e85
commit
922a8e62d1
20 changed files with 266 additions and 189 deletions
|
@ -1,7 +1,4 @@
|
|||
import json
|
||||
|
||||
from django.contrib import messages
|
||||
from django.http import HttpResponse
|
||||
from django.shortcuts import render
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
from libvirt import libvirtError
|
||||
|
|
|
@ -12,17 +12,17 @@ TEMPLATE_DEBUG = True
|
|||
|
||||
|
||||
INSTALLED_APPS += [
|
||||
'debug_toolbar',
|
||||
"debug_toolbar",
|
||||
]
|
||||
|
||||
MIDDLEWARE += [
|
||||
'debug_toolbar.middleware.DebugToolbarMiddleware',
|
||||
"debug_toolbar.middleware.DebugToolbarMiddleware",
|
||||
]
|
||||
|
||||
# DebugToolBar
|
||||
INTERNAL_IPS = (
|
||||
'127.0.0.1',
|
||||
"127.0.0.1",
|
||||
)
|
||||
DEBUG_TOOLBAR_CONFIG = {
|
||||
'INTERCEPT_REDIRECTS': False,
|
||||
}
|
||||
"INTERCEPT_REDIRECTS": False,
|
||||
}
|
||||
|
|
|
@ -25,5 +25,5 @@ if settings.DEBUG:
|
|||
urlpatterns += [
|
||||
path('__debug__/', include(debug_toolbar.urls)),
|
||||
]
|
||||
except:
|
||||
except ImportError:
|
||||
pass
|
||||
|
|
|
@ -12,11 +12,16 @@ import sys
|
|||
from django.core.wsgi import get_wsgi_application
|
||||
|
||||
# execfile('/srv/webvirtcloud/venv/bin/activate_this.py', dict(__file__='/srv/webvirtcloud/venv/bin/activate_this.py'))
|
||||
exec(compile(open('/srv/webvirtcloud/venv/bin/activate', "rb").read(),
|
||||
'/srv/webvirtcloud/venv/bin/activate', 'exec'))
|
||||
exec(
|
||||
compile(
|
||||
open("/srv/webvirtcloud/venv/bin/activate", "rb").read(),
|
||||
"/srv/webvirtcloud/venv/bin/activate",
|
||||
"exec"
|
||||
)
|
||||
)
|
||||
|
||||
sys.path.append('/srv/webvirtcloud')
|
||||
sys.path.append("/srv/webvirtcloud")
|
||||
|
||||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'webvirtcloud.settings')
|
||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "webvirtcloud.settings")
|
||||
|
||||
application = get_wsgi_application()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue