diff --git a/create/views.py b/create/views.py index e9eda148..4a7c8176 100755 --- a/create/views.py +++ b/create/views.py @@ -14,6 +14,7 @@ from vrtManager import util from create.forms import FlavorAddForm, NewVMForm +from collections import OrderedDict def create(request, host_id): """ @@ -84,7 +85,7 @@ def create(request, host_id): except libvirtError as err: errors.append(err.message) if 'create' in request.POST: - volumes = {} + volumes = OrderedDict() form = NewVMForm(request.POST) if form.is_valid(): data = form.cleaned_data diff --git a/webvirtmgr/settings.py b/webvirtmgr/settings.py index 29f6b913..c5858dcb 100644 --- a/webvirtmgr/settings.py +++ b/webvirtmgr/settings.py @@ -64,7 +64,7 @@ # Don't put anything in this directory yourself; store your static files # in apps' "static/" subdirectories and in STATICFILES_DIRS. # Example: "/var/www/example.com/static/" -STATIC_ROOT = os.path.join(os.path.dirname(__file__), '..', 'static') +STATIC_ROOT = os.path.join(os.path.dirname(__file__), 'static') # URL prefix for static files. # Example: "http://example.com/static/", "http://static.example.com/"