mirror of
https://github.com/retspen/webvirtcloud
synced 2024-12-24 23:25:24 +00:00
fix typos and rearrange imports & add new lines EOF
This commit is contained in:
parent
e21f423bcf
commit
e46bb99b3b
17 changed files with 27 additions and 33 deletions
|
@ -115,4 +115,3 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
from django.conf import settings
|
|
||||||
from django.core.validators import ValidationError
|
from django.core.validators import ValidationError
|
||||||
from django.http import HttpResponseRedirect
|
from django.http import HttpResponseRedirect
|
||||||
from django.shortcuts import render
|
from django.shortcuts import render
|
||||||
|
@ -22,7 +21,6 @@ def profile(request):
|
||||||
error_messages = []
|
error_messages = []
|
||||||
# user = User.objects.get(id=request.user.id)
|
# user = User.objects.get(id=request.user.id)
|
||||||
publickeys = UserSSHKey.objects.filter(user_id=request.user.id)
|
publickeys = UserSSHKey.objects.filter(user_id=request.user.id)
|
||||||
themes_list = os.listdir(settings.SCSS_DIR +"/wvc-theme")
|
|
||||||
|
|
||||||
if request.method == 'POST':
|
if request.method == 'POST':
|
||||||
if 'username' in request.POST:
|
if 'username' in request.POST:
|
||||||
|
|
|
@ -6,9 +6,9 @@
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{% if create_url %}
|
{% if create_url %}
|
||||||
<a class="btn btn-success float-right" href="{% url create_url %}">{% icon 'plus' %} {%trans "Create New" %}</a>
|
<a class="btn btn-success float-right" href="{% url create_url %}">{% icon 'plus' %} {%trans "Create New" %}</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<table class="table table-hover table-striped">
|
<table class="table table-hover">
|
||||||
{% for object in object_list %}
|
{% for object in object_list %}
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ object }}
|
<td>{{ object }}
|
||||||
|
|
|
@ -4,7 +4,7 @@ from django.shortcuts import get_object_or_404, redirect, render
|
||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import ugettext_lazy as _
|
||||||
|
|
||||||
from accounts.models import UserAttributes
|
from accounts.models import UserAttributes
|
||||||
from appsettings.views import AppSettings
|
from appsettings.models import AppSettings
|
||||||
from logs.models import Logs
|
from logs.models import Logs
|
||||||
|
|
||||||
from . import forms
|
from . import forms
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load bootstrap4 %}
|
{% load bootstrap4 %}
|
||||||
{% load font_awesome %}
|
{% load font_awesome %}
|
||||||
<div class="btn-group float-right">
|
<div class="btn-group float-right" role="group" aria-label="Add host button group">
|
||||||
<a href="{% url 'add_tcp_host' %}" class="btn btn-success">{% trans "TCP" %}</a>
|
<a href="{% url 'add_tcp_host' %}" class="btn btn-success">{% trans "TCP" %}</a>
|
||||||
<a href="{% url 'add_ssh_host' %}" class="btn btn-success">{% trans "SSH" %}</a>
|
<a href="{% url 'add_ssh_host' %}" class="btn btn-success">{% trans "SSH" %}</a>
|
||||||
<a href="{% url 'add_tls_host' %}" class="btn btn-success">{% trans "TLS" %}</a>
|
<a href="{% url 'add_tls_host' %}" class="btn btn-success">{% trans "TLS" %}</a>
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
from django.urls import path, include
|
from django.urls import path, include
|
||||||
|
|
||||||
from . import views
|
from . import views
|
||||||
|
from . import forms
|
||||||
from create.views import create_instance, create_instance_select_type
|
from create.views import create_instance, create_instance_select_type
|
||||||
from instances.views import instances
|
from instances.views import instances
|
||||||
from interfaces.views import interface, interfaces
|
from interfaces.views import interface, interfaces
|
||||||
|
@ -8,7 +9,6 @@ from networks.views import network, networks
|
||||||
from nwfilters.views import nwfilter, nwfilters
|
from nwfilters.views import nwfilter, nwfilters
|
||||||
from secrets.views import secrets
|
from secrets.views import secrets
|
||||||
from storages.views import get_volumes, storage, storages
|
from storages.views import get_volumes, storage, storages
|
||||||
from . import forms
|
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
path('', views.computes, name='computes'),
|
path('', views.computes, name='computes'),
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
<table class="table table-hover table-striped sortable-theme-bootstrap" data-sortable>
|
<table class="table table-hover sortable-theme-bootstrap" data-sortable>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="col">{% trans "Name" %}<br>{% trans "Description" %}</th>
|
<th scope="col">{% trans "Name" %}<br>{% trans "Description" %}</th>
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
import json
|
import json
|
||||||
|
|
||||||
from django.conf import settings
|
|
||||||
from django.http import HttpResponse, HttpResponseRedirect
|
from django.http import HttpResponse, HttpResponseRedirect
|
||||||
from django.shortcuts import render
|
from django.shortcuts import render
|
||||||
from django.urls import reverse
|
from django.urls import reverse
|
||||||
|
|
||||||
from admin.decorators import superuser_only
|
from admin.decorators import superuser_only
|
||||||
from appsettings.models import AppSettings
|
|
||||||
from instances.models import Instance
|
from instances.models import Instance
|
||||||
from logs.models import Logs
|
from logs.models import Logs
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
from __future__ import unicode_literals
|
|
||||||
|
|
||||||
from django.db import models
|
from django.db import models
|
||||||
|
|
||||||
# Create your models here.
|
# Create your models here.
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
/* Global Styles */
|
/* Global Styles */
|
||||||
|
|
||||||
body {
|
body {
|
||||||
padding-bottom: 40px;
|
padding-bottom: 50px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
|
|
|
@ -1,15 +1,16 @@
|
||||||
import json
|
import json
|
||||||
from django.shortcuts import render, get_object_or_404
|
from django.contrib import messages
|
||||||
from django.http import HttpResponseRedirect, HttpResponse
|
from django.http import HttpResponseRedirect, HttpResponse
|
||||||
|
from django.shortcuts import render, get_object_or_404
|
||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import ugettext_lazy as _
|
||||||
from django.urls import reverse
|
from django.urls import reverse
|
||||||
|
from libvirt import libvirtError
|
||||||
|
|
||||||
|
from admin.decorators import superuser_only
|
||||||
from computes.models import Compute
|
from computes.models import Compute
|
||||||
from appsettings.models import AppSettings
|
from appsettings.models import AppSettings
|
||||||
from storages.forms import AddStgPool, AddImage, CloneImage
|
from storages.forms import AddStgPool, AddImage, CloneImage
|
||||||
from vrtManager.storage import wvmStorage, wvmStorages
|
from vrtManager.storage import wvmStorage, wvmStorages
|
||||||
from libvirt import libvirtError
|
|
||||||
from django.contrib import messages
|
|
||||||
from admin.decorators import superuser_only
|
|
||||||
|
|
||||||
|
|
||||||
@superuser_only
|
@superuser_only
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{% extends "base_auth.html" %}
|
{% extends "base_auth.html" %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% block title %}{% trans "404" %}{% endblock %}
|
{% block title %}{% trans "403" %}{% endblock %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-12 text-center">
|
<div class="col-12 text-center">
|
||||||
|
|
|
@ -25,6 +25,7 @@ INSTALLED_APPS = [
|
||||||
'fa',
|
'fa',
|
||||||
'accounts',
|
'accounts',
|
||||||
'admin',
|
'admin',
|
||||||
|
'appsettings',
|
||||||
'computes',
|
'computes',
|
||||||
'console',
|
'console',
|
||||||
'create',
|
'create',
|
||||||
|
@ -35,7 +36,6 @@ INSTALLED_APPS = [
|
||||||
'nwfilters',
|
'nwfilters',
|
||||||
'storages',
|
'storages',
|
||||||
'secrets',
|
'secrets',
|
||||||
'appsettings',
|
|
||||||
'logs',
|
'logs',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -164,5 +164,6 @@ QEMU_KEYMAPS = ['ar', 'da', 'de', 'de-ch', 'en-gb', 'en-us', 'es', 'et', 'fi',
|
||||||
LIBVIRT_KEEPALIVE_INTERVAL = 5
|
LIBVIRT_KEEPALIVE_INTERVAL = 5
|
||||||
LIBVIRT_KEEPALIVE_COUNT = 5
|
LIBVIRT_KEEPALIVE_COUNT = 5
|
||||||
|
|
||||||
|
ALLOW_EMPTY_PASSWORD = False
|
||||||
NEW_USER_DEFAULT_INSTANCES = []
|
NEW_USER_DEFAULT_INSTANCES = []
|
||||||
SHOW_PROFILE_EDIT_PASSWORD = True
|
SHOW_PROFILE_EDIT_PASSWORD = True
|
||||||
|
|
Loading…
Reference in a new issue