@@ -7,7 +8,7 @@
{% for region in regions.available %}
{% if region.name != regions.current.name %}
- {{ region.name }}
+ {{ region.name }}
{% endif %}
{% endfor %}
diff --git a/horizon/templates/horizon/common/_sidebar.html b/horizon/templates/horizon/common/_sidebar.html
index 4b0844b9d..1f7a9a23e 100644
--- a/horizon/templates/horizon/common/_sidebar.html
+++ b/horizon/templates/horizon/common/_sidebar.html
@@ -1,7 +1,8 @@
{% load branding horizon i18n %}
+{% load url from future %}
{% endblock %}
diff --git a/openstack_dashboard/dashboards/project/access_and_security/templates/access_and_security/security_groups/_add_rule.html b/openstack_dashboard/dashboards/project/access_and_security/templates/access_and_security/security_groups/_add_rule.html
index 74d6f60e2..671574c6a 100644
--- a/openstack_dashboard/dashboards/project/access_and_security/templates/access_and_security/security_groups/_add_rule.html
+++ b/openstack_dashboard/dashboards/project/access_and_security/templates/access_and_security/security_groups/_add_rule.html
@@ -1,8 +1,9 @@
{% extends "horizon/common/_modal_form.html" %}
{% load i18n %}
+{% load url from future %}
{% block form_id %}create_security_group_rule_form{% endblock %}
-{% block form_action %}{% url horizon:project:access_and_security:security_groups:add_rule security_group_id %}{% endblock %}
+{% block form_action %}{% url 'horizon:project:access_and_security:security_groups:add_rule' security_group_id %}{% endblock %}
{% block modal-header %}{% trans "Add Rule" %}{% endblock %}
{% block modal_id %}create_security_group_rule_modal{% endblock %}
@@ -24,5 +25,5 @@
{% block modal-footer %}
- {% trans "Cancel" %}
+
{% trans "Cancel" %}
{% endblock %}
diff --git a/openstack_dashboard/dashboards/project/access_and_security/templates/access_and_security/security_groups/_create.html b/openstack_dashboard/dashboards/project/access_and_security/templates/access_and_security/security_groups/_create.html
index 2c8eed7e1..b2f8d63d5 100644
--- a/openstack_dashboard/dashboards/project/access_and_security/templates/access_and_security/security_groups/_create.html
+++ b/openstack_dashboard/dashboards/project/access_and_security/templates/access_and_security/security_groups/_create.html
@@ -1,8 +1,9 @@
{% extends "horizon/common/_modal_form.html" %}
{% load i18n %}
+{% load url from future %}
{% block form_id %}create_security_group_form{% endblock %}
-{% block form_action %}{% url horizon:project:access_and_security:security_groups:create %}{% endblock %}
+{% block form_action %}{% url 'horizon:project:access_and_security:security_groups:create' %}{% endblock %}
{% block modal-header %}{% trans "Create Security Group" %}{% endblock %}
{% block modal_id %}create_security_group_modal{% endblock %}
@@ -21,5 +22,5 @@
{% block modal-footer %}
-
{% trans "Cancel" %}
+
{% trans "Cancel" %}
{% endblock %}
diff --git a/openstack_dashboard/dashboards/project/containers/templates/containers/_copy.html b/openstack_dashboard/dashboards/project/containers/templates/containers/_copy.html
index 3266a7bd8..8b568ea44 100644
--- a/openstack_dashboard/dashboards/project/containers/templates/containers/_copy.html
+++ b/openstack_dashboard/dashboards/project/containers/templates/containers/_copy.html
@@ -1,8 +1,9 @@
{% extends "horizon/common/_modal_form.html" %}
{% load i18n %}
+{% load url from future %}
{% block form_id %}copy_object_form{% endblock %}
-{% block form_action %}{% url horizon:project:containers:object_copy container_name object_name %}{% endblock %}
+{% block form_action %}{% url 'horizon:project:containers:object_copy' container_name object_name %}{% endblock %}
{% block modal-header %}{% trans "Copy Object" %}: {{ object_name }}{% endblock %}
@@ -20,5 +21,5 @@
{% block modal-footer %}
-
{% trans "Cancel" %}
+
{% trans "Cancel" %}
{% endblock %}
diff --git a/openstack_dashboard/dashboards/project/containers/templates/containers/_create.html b/openstack_dashboard/dashboards/project/containers/templates/containers/_create.html
index 4b1e04195..1243f5f5f 100644
--- a/openstack_dashboard/dashboards/project/containers/templates/containers/_create.html
+++ b/openstack_dashboard/dashboards/project/containers/templates/containers/_create.html
@@ -1,8 +1,9 @@
{% extends "horizon/common/_modal_form.html" %}
{% load i18n %}
+{% load url from future %}
{% block form_id %}create_container_form{% endblock %}
-{% block form_action %}{% url horizon:project:containers:create %}{% endblock %}
+{% block form_action %}{% url 'horizon:project:containers:create' %}{% endblock %}
{% block modal-header %}{% trans "Create Container" %}{% endblock %}
@@ -20,5 +21,5 @@
{% block modal-footer %}
-
{% trans "Cancel" %}
+
{% trans "Cancel" %}
{% endblock %}
diff --git a/openstack_dashboard/dashboards/project/containers/templates/containers/_upload.html b/openstack_dashboard/dashboards/project/containers/templates/containers/_upload.html
index fe27e2adb..4d2d7ce26 100644
--- a/openstack_dashboard/dashboards/project/containers/templates/containers/_upload.html
+++ b/openstack_dashboard/dashboards/project/containers/templates/containers/_upload.html
@@ -1,8 +1,9 @@
{% extends "horizon/common/_modal_form.html" %}
{% load i18n %}
+{% load url from future %}
{% block form_id %}upload_object_form{% endblock %}
-{% block form_action %}{% url horizon:project:containers:object_upload container_name %}{% endblock %}
+{% block form_action %}{% url 'horizon:project:containers:object_upload' container_name %}{% endblock %}
{% block form_attrs %}enctype="multipart/form-data"{% endblock %}
{% block modal-header %}{% trans "Upload Object To Container" %}: {{ container_name }}{% endblock %}
@@ -22,5 +23,5 @@
{% block modal-footer %}
-
{% trans "Cancel" %}
+
{% trans "Cancel" %}
{% endblock %}
diff --git a/openstack_dashboard/dashboards/project/images_and_snapshots/images/tests.py b/openstack_dashboard/dashboards/project/images_and_snapshots/images/tests.py
index 8c3977e13..7f7a0a827 100644
--- a/openstack_dashboard/dashboards/project/images_and_snapshots/images/tests.py
+++ b/openstack_dashboard/dashboards/project/images_and_snapshots/images/tests.py
@@ -84,8 +84,8 @@ class ImageViewTests(test.TestCase):
'disk_format': u'qcow2',
'minimum_disk': 15,
'minimum_ram': 512,
- 'is_public': 1,
- 'protected': 0,
+ 'is_public': True,
+ 'protected': False,
'method': 'CreateImageForm'}
api.glance.image_create(IsA(http.HttpRequest),
@@ -118,8 +118,8 @@ class ImageViewTests(test.TestCase):
'disk_format': u'qcow2',
'minimum_disk': 15,
'minimum_ram': 512,
- 'is_public': 1,
- 'protected': 0,
+ 'is_public': True,
+ 'protected': False,
'method': 'CreateImageForm'}
api.glance.image_create(IsA(http.HttpRequest),
diff --git a/openstack_dashboard/dashboards/project/images_and_snapshots/templates/images_and_snapshots/images/_create.html b/openstack_dashboard/dashboards/project/images_and_snapshots/templates/images_and_snapshots/images/_create.html
index a26c927c5..1da4cd4fb 100644
--- a/openstack_dashboard/dashboards/project/images_and_snapshots/templates/images_and_snapshots/images/_create.html
+++ b/openstack_dashboard/dashboards/project/images_and_snapshots/templates/images_and_snapshots/images/_create.html
@@ -1,8 +1,9 @@
{% extends "horizon/common/_modal_form.html" %}
{% load i18n %}
+{% load url from future %}
{% block form_id %}create_image_form{% endblock %}
-{% block form_action %}{% url horizon:project:images_and_snapshots:images:create %}{% endblock %}
+{% block form_action %}{% url 'horizon:project:images_and_snapshots:images:create' %}{% endblock %}
{% block form_attrs %}enctype="multipart/form-data"{% endblock %}
{% block modal-header %}{% trans "Create An Image" %}{% endblock %}
@@ -30,5 +31,5 @@
{% block modal-footer %}
-
{% trans "Cancel" %}
+
{% trans "Cancel" %}
{% endblock %}
diff --git a/openstack_dashboard/dashboards/project/images_and_snapshots/templates/images_and_snapshots/images/_update.html b/openstack_dashboard/dashboards/project/images_and_snapshots/templates/images_and_snapshots/images/_update.html
index c94176fd7..24e0c162f 100644
--- a/openstack_dashboard/dashboards/project/images_and_snapshots/templates/images_and_snapshots/images/_update.html
+++ b/openstack_dashboard/dashboards/project/images_and_snapshots/templates/images_and_snapshots/images/_update.html
@@ -1,8 +1,9 @@
{% extends "horizon/common/_modal_form.html" %}
{% load i18n %}
+{% load url from future %}
{% block form_id %}update_image_form{% endblock %}
-{% block form_action %}{% url horizon:project:images_and_snapshots:images:update image.id %}{% endblock %}
+{% block form_action %}{% url 'horizon:project:images_and_snapshots:images:update' image.id %}{% endblock %}
{% block modal-header %}{% trans "Update Image" %}{% endblock %}
@@ -20,5 +21,5 @@
{% block modal-footer %}
-
{% trans "Cancel" %}
+
{% trans "Cancel" %}
{% endblock %}
diff --git a/openstack_dashboard/dashboards/project/images_and_snapshots/templates/images_and_snapshots/snapshots/_create.html b/openstack_dashboard/dashboards/project/images_and_snapshots/templates/images_and_snapshots/snapshots/_create.html
index d2bf9b957..99d89488d 100644
--- a/openstack_dashboard/dashboards/project/images_and_snapshots/templates/images_and_snapshots/snapshots/_create.html
+++ b/openstack_dashboard/dashboards/project/images_and_snapshots/templates/images_and_snapshots/snapshots/_create.html
@@ -1,8 +1,9 @@
{% extends "horizon/common/_modal_form.html" %}
{% load i18n %}
+{% load url from future %}
{% block form_id %}create_snapshot_form{% endblock %}
-{% block form_action %}{% url horizon:project:images_and_snapshots:snapshots:create instance.id %}{% endblock %}
+{% block form_action %}{% url 'horizon:project:images_and_snapshots:snapshots:create' instance.id %}{% endblock %}
{% block modal_id %}create_snapshot_modal{% endblock %}
{% block modal-header %}{% trans "Create Snapshot" %}{% endblock %}
@@ -21,5 +22,5 @@
{% block modal-footer %}
-
{% trans "Cancel" %}
+
{% trans "Cancel" %}
{% endblock %}
diff --git a/openstack_dashboard/dashboards/project/instances/templates/instances/_detail_console.html b/openstack_dashboard/dashboards/project/instances/templates/instances/_detail_console.html
index bc0a07be8..2992350be 100644
--- a/openstack_dashboard/dashboards/project/instances/templates/instances/_detail_console.html
+++ b/openstack_dashboard/dashboards/project/instances/templates/instances/_detail_console.html
@@ -1,4 +1,5 @@
{% load i18n %}
+{% load url from future %}
{% trans "Instance Console" %}
{% if console_url %}
@@ -17,5 +18,5 @@
{% else %}
{% blocktrans %}console is currently unavailable. Please try again later.{% endblocktrans %}
-{% trans "Reload" %}
+
{% trans "Reload" %}
{% endif %}
diff --git a/openstack_dashboard/dashboards/project/instances/templates/instances/_detail_log.html b/openstack_dashboard/dashboards/project/instances/templates/instances/_detail_log.html
index 79ad9098c..bb2525ccd 100644
--- a/openstack_dashboard/dashboards/project/instances/templates/instances/_detail_log.html
+++ b/openstack_dashboard/dashboards/project/instances/templates/instances/_detail_log.html
@@ -1,13 +1,14 @@
{% load i18n %}
+{% load url from future %}
{% trans "Instance Console Log" %}
-
diff --git a/openstack_dashboard/dashboards/project/instances/templates/instances/_detail_overview.html b/openstack_dashboard/dashboards/project/instances/templates/instances/_detail_overview.html
index 2c548612b..8d5fc284c 100644
--- a/openstack_dashboard/dashboards/project/instances/templates/instances/_detail_overview.html
+++ b/openstack_dashboard/dashboards/project/instances/templates/instances/_detail_overview.html
@@ -1,4 +1,5 @@
{% load i18n sizeformat %}
+{% load url from future %}
{% trans "Instance Overview" %}
@@ -76,7 +77,7 @@
{% with default_key_name="
"|add:_("None")|add:" " %}
{{ instance.key_name|default:default_key_name }}
{% endwith %}
- {% url horizon:project:images_and_snapshots:images:detail instance.image.id as image_url %}
+ {% url 'horizon:project:images_and_snapshots:images:detail' instance.image.id as image_url %}
{% trans "Image Name" %}
{{ instance.image_name }}
{% with default_item_value="
"|add:_("N/A")|add:" " %}
@@ -95,7 +96,7 @@
{% for volume in instance.volumes %}
{% trans "Attached To" %}
- {{ volume.name }} {% trans "on" %} {{ volume.device }}
+ {{ volume.name }} {% trans "on" %} {{ volume.device }}
{% empty %}
{% trans "Volume" %}
diff --git a/openstack_dashboard/dashboards/project/network_topology/templates/network_topology/index.html b/openstack_dashboard/dashboards/project/network_topology/templates/network_topology/index.html
index f70de26fc..75868d75c 100644
--- a/openstack_dashboard/dashboards/project/network_topology/templates/network_topology/index.html
+++ b/openstack_dashboard/dashboards/project/network_topology/templates/network_topology/index.html
@@ -1,5 +1,6 @@
{% extends 'base.html' %}
{% load i18n %}
+{% load url from future %}
{% block title %}{% trans "Network Topology" %}{% endblock %}
{% block page_header %}
@@ -23,14 +24,14 @@ div.network .device:hover div.port {
{% trans "This pane needs javascript support." %}
{% blocktrans %}There are no networks, routers, or connected instances to display. {% endblocktrans %}
-
+
{% endblock %}
diff --git a/openstack_dashboard/dashboards/project/network_topology/views.py b/openstack_dashboard/dashboards/project/network_topology/views.py
index b6e530888..040e85c98 100644
--- a/openstack_dashboard/dashboards/project/network_topology/views.py
+++ b/openstack_dashboard/dashboards/project/network_topology/views.py
@@ -18,9 +18,10 @@
# License for the specific language governing permissions and limitations
# under the License.
+import json
+
from django.core.urlresolvers import reverse
from django.http import HttpResponse
-from django.utils import simplejson
from django.views.generic import TemplateView
from django.views.generic import View
@@ -95,5 +96,5 @@ class JSONView(View):
self.add_resource_url('horizon:project:routers:detail',
data['routers'])
- json_string = simplejson.dumps(data, ensure_ascii=False)
+ json_string = json.dumps(data, ensure_ascii=False)
return HttpResponse(json_string, mimetype='text/json')
diff --git a/openstack_dashboard/dashboards/project/networks/templates/networks/_create.html b/openstack_dashboard/dashboards/project/networks/templates/networks/_create.html
index aeb53650b..0377dd104 100644
--- a/openstack_dashboard/dashboards/project/networks/templates/networks/_create.html
+++ b/openstack_dashboard/dashboards/project/networks/templates/networks/_create.html
@@ -1,8 +1,9 @@
{% extends "horizon/common/_modal_form.html" %}
{% load i18n %}
+{% load url from future %}
{% block form_id %}create_network_form{% endblock %}
-{% block form_action %}{% url horizon:project:networks:create %}{% endblock %}
+{% block form_action %}{% url 'horizon:project:networks:create' %}{% endblock %}
{% block modal-header %}{% trans "Create Network" %}{% endblock %}
@@ -20,5 +21,5 @@
{% block modal-footer %}
-
{% trans "Cancel" %}
+
{% trans "Cancel" %}
{% endblock %}
diff --git a/openstack_dashboard/dashboards/project/networks/templates/networks/_update.html b/openstack_dashboard/dashboards/project/networks/templates/networks/_update.html
index 9638dff87..ceb8e6cd4 100644
--- a/openstack_dashboard/dashboards/project/networks/templates/networks/_update.html
+++ b/openstack_dashboard/dashboards/project/networks/templates/networks/_update.html
@@ -1,8 +1,9 @@
{% extends "horizon/common/_modal_form.html" %}
{% load i18n %}
+{% load url from future %}
{% block form_id %}update_network_form{% endblock %}
-{% block form_action %}{% url horizon:project:networks:update network_id %}{% endblock %}
+{% block form_action %}{% url 'horizon:project:networks:update' network_id %}{% endblock %}
{% block modal-header %}{% trans "Edit Network" %}{% endblock %}
@@ -20,5 +21,5 @@
{% block modal-footer %}
-
{% trans "Cancel" %}
+
{% trans "Cancel" %}
{% endblock %}
diff --git a/openstack_dashboard/dashboards/project/networks/templates/networks/ports/_detail_overview.html b/openstack_dashboard/dashboards/project/networks/templates/networks/ports/_detail_overview.html
index 8b3873307..561521564 100644
--- a/openstack_dashboard/dashboards/project/networks/templates/networks/ports/_detail_overview.html
+++ b/openstack_dashboard/dashboards/project/networks/templates/networks/ports/_detail_overview.html
@@ -1,4 +1,5 @@
{% load i18n sizeformat %}
+{% load url from future %}
{% trans "Port Overview" %}
@@ -10,7 +11,7 @@
{{ port.name|default:_("None") }}
{% trans "ID" %}
{{ port.id|default:_("None") }}
- {% url horizon:project:networks:detail port.network_id as network_url %}
+ {% url 'horizon:project:networks:detail' port.network_id as network_url %}
{% trans "Network ID" %}
{{ port.network_id|default:_("None") }}
{% trans "Project ID" %}
diff --git a/openstack_dashboard/dashboards/project/networks/templates/networks/ports/_update.html b/openstack_dashboard/dashboards/project/networks/templates/networks/ports/_update.html
index e490f5a19..8ca45f0fe 100644
--- a/openstack_dashboard/dashboards/project/networks/templates/networks/ports/_update.html
+++ b/openstack_dashboard/dashboards/project/networks/templates/networks/ports/_update.html
@@ -1,8 +1,9 @@
{% extends "horizon/common/_modal_form.html" %}
{% load i18n %}
+{% load url from future %}
{% block form_id %}update_port_form{% endblock %}
-{% block form_action %}{% url horizon:project:networks:editport network_id port_id %}{% endblock %}
+{% block form_action %}{% url 'horizon:project:networks:editport' network_id port_id %}{% endblock %}
{% block modal-header %}{% trans "Edit Port" %}{% endblock %}
@@ -25,5 +26,5 @@
{% block modal-footer %}
-
{% trans "Cancel" %}
+
{% trans "Cancel" %}
{% endblock %}
diff --git a/openstack_dashboard/dashboards/project/networks/templates/networks/subnets/_detail_overview.html b/openstack_dashboard/dashboards/project/networks/templates/networks/subnets/_detail_overview.html
index 6f7834fb4..96a282c34 100644
--- a/openstack_dashboard/dashboards/project/networks/templates/networks/subnets/_detail_overview.html
+++ b/openstack_dashboard/dashboards/project/networks/templates/networks/subnets/_detail_overview.html
@@ -1,4 +1,5 @@
{% load i18n sizeformat %}
+{% load url from future %}
{% trans "Subnet Overview" %}
@@ -10,7 +11,7 @@
{{ subnet.name|default:_("None") }}
{% trans "ID" %}
{{ subnet.id|default:_("None") }}
- {% url horizon:project:networks:detail subnet.network_id as network_url %}
+ {% url 'horizon:project:networks:detail' subnet.network_id as network_url %}
{% trans "Network ID" %}
{{ subnet.network_id|default:_("None") }}
{% trans "IP version" %}
diff --git a/openstack_dashboard/dashboards/project/routers/templates/routers/_create.html b/openstack_dashboard/dashboards/project/routers/templates/routers/_create.html
index 6ca89b23d..38d036177 100644
--- a/openstack_dashboard/dashboards/project/routers/templates/routers/_create.html
+++ b/openstack_dashboard/dashboards/project/routers/templates/routers/_create.html
@@ -1,8 +1,9 @@
{% extends "horizon/common/_modal_form.html" %}
{% load i18n horizon humanize %}
+{% load url from future %}
{% block form_id %}{% endblock %}
-{% block form_action %}{% url horizon:project:routers:create %}?{{ request.GET.urlencode }}{% endblock %}
+{% block form_action %}{% url 'horizon:project:routers:create' %}?{{ request.GET.urlencode }}{% endblock %}
{% block modal_id %}create_router_modal{% endblock %}
{% block modal-header %}{% trans "Create router" %}{% endblock %}
@@ -17,5 +18,5 @@
{% block modal-footer %}
-
{% trans "Cancel" %}
+
{% trans "Cancel" %}
{% endblock %}
diff --git a/openstack_dashboard/dashboards/project/routers/templates/routers/ports/_create.html b/openstack_dashboard/dashboards/project/routers/templates/routers/ports/_create.html
index c17dd9cad..426569d20 100644
--- a/openstack_dashboard/dashboards/project/routers/templates/routers/ports/_create.html
+++ b/openstack_dashboard/dashboards/project/routers/templates/routers/ports/_create.html
@@ -1,8 +1,9 @@
{% extends "horizon/common/_modal_form.html" %}
{% load i18n %}
+{% load url from future %}
{% block form_id %}add_interface_form{% endblock %}
-{% block form_action %}{% url horizon:project:routers:addinterface router.id %}
+{% block form_action %}{% url 'horizon:project:routers:addinterface' router.id %}
{% endblock %}
{% block modal-header %}{% trans "Add Interface" %}{% endblock %}
@@ -26,5 +27,5 @@
{% block modal-footer %}
-
{% trans "Cancel" %}
+
{% trans "Cancel" %}
{% endblock %}
diff --git a/openstack_dashboard/dashboards/project/routers/templates/routers/ports/_setgateway.html b/openstack_dashboard/dashboards/project/routers/templates/routers/ports/_setgateway.html
index a0545796d..172792830 100644
--- a/openstack_dashboard/dashboards/project/routers/templates/routers/ports/_setgateway.html
+++ b/openstack_dashboard/dashboards/project/routers/templates/routers/ports/_setgateway.html
@@ -1,8 +1,9 @@
{% extends "horizon/common/_modal_form.html" %}
{% load i18n %}
+{% load url from future %}
{% block form_id %}setgateway_form{% endblock %}
-{% block form_action %}{% url horizon:project:routers:setgateway router.id %}
+{% block form_action %}{% url 'horizon:project:routers:setgateway' router.id %}
{% endblock %}
{% block modal-header %}{% trans "Set Gateway" %}{% endblock %}
@@ -21,5 +22,5 @@
{% block modal-footer %}
-
{% trans "Cancel" %}
+
{% trans "Cancel" %}
{% endblock %}
diff --git a/openstack_dashboard/dashboards/project/volumes/templates/volumes/_attach.html b/openstack_dashboard/dashboards/project/volumes/templates/volumes/_attach.html
index 7712bb7da..33db6f44d 100644
--- a/openstack_dashboard/dashboards/project/volumes/templates/volumes/_attach.html
+++ b/openstack_dashboard/dashboards/project/volumes/templates/volumes/_attach.html
@@ -1,8 +1,9 @@
{% extends "horizon/common/_modal_form.html" %}
{% load i18n %}
+{% load url from future %}
{% block form_id %}attach_volume_form{% endblock %}
-{% block form_action %}{% url horizon:project:volumes:attach volume.id %}{% endblock %}
+{% block form_action %}{% url 'horizon:project:volumes:attach' volume.id %}{% endblock %}
{% block form_class %}{{ block.super }} horizontal {% if show_attach %}split_half{% else %} no_split{% endif %}{% endblock %}
{% block modal_id %}attach_volume_modal{% endblock %}
@@ -21,5 +22,5 @@
{% if show_attach %}
{% endif %}
-
{% trans "Cancel" %}
+
{% trans "Cancel" %}
{% endblock %}
diff --git a/openstack_dashboard/dashboards/project/volumes/templates/volumes/_create.html b/openstack_dashboard/dashboards/project/volumes/templates/volumes/_create.html
index 1c5164513..7280fe148 100644
--- a/openstack_dashboard/dashboards/project/volumes/templates/volumes/_create.html
+++ b/openstack_dashboard/dashboards/project/volumes/templates/volumes/_create.html
@@ -1,8 +1,9 @@
{% extends "horizon/common/_modal_form.html" %}
{% load i18n horizon humanize %}
+{% load url from future %}
{% block form_id %}{% endblock %}
-{% block form_action %}{% url horizon:project:volumes:create %}?{{ request.GET.urlencode }}{% endblock %}
+{% block form_action %}{% url 'horizon:project:volumes:create' %}?{{ request.GET.urlencode }}{% endblock %}
{% block modal_id %}create_volume_modal{% endblock %}
{% block modal-header %}{% trans "Create Volume" %}{% endblock %}
@@ -53,5 +54,5 @@
{% block modal-footer %}
-
{% trans "Cancel" %}
+
{% trans "Cancel" %}
{% endblock %}
diff --git a/openstack_dashboard/dashboards/project/volumes/templates/volumes/_create_snapshot.html b/openstack_dashboard/dashboards/project/volumes/templates/volumes/_create_snapshot.html
index ab05b5b31..446a0d0b8 100644
--- a/openstack_dashboard/dashboards/project/volumes/templates/volumes/_create_snapshot.html
+++ b/openstack_dashboard/dashboards/project/volumes/templates/volumes/_create_snapshot.html
@@ -1,8 +1,9 @@
{% extends "horizon/common/_modal_form.html" %}
{% load i18n %}
+{% load url from future %}
{% block form_id %}{% endblock %}
-{% block form_action %}{% url horizon:project:volumes:create_snapshot volume_id %}{% endblock %}
+{% block form_action %}{% url 'horizon:project:volumes:create_snapshot' volume_id %}{% endblock %}
{% block modal_id %}create_volume_snapshot_modal{% endblock %}
{% block modal-header %}{% trans "Create Volume Snapshot" %}{% endblock %}
@@ -21,5 +22,5 @@
{% block modal-footer %}
-
{% trans "Cancel" %}
+
{% trans "Cancel" %}
{% endblock %}
diff --git a/openstack_dashboard/dashboards/project/volumes/templates/volumes/_detail_overview.html b/openstack_dashboard/dashboards/project/volumes/templates/volumes/_detail_overview.html
index f05afa0d4..0a6d314f0 100644
--- a/openstack_dashboard/dashboards/project/volumes/templates/volumes/_detail_overview.html
+++ b/openstack_dashboard/dashboards/project/volumes/templates/volumes/_detail_overview.html
@@ -1,4 +1,5 @@
{% load i18n sizeformat parse_date %}
+{% load url from future %}
{% trans "Volume Overview" %}: {{volume.display_name }}
@@ -37,7 +38,7 @@
{% for attachment in volume.attachments %}
{% trans "Attached To" %}
- {% url horizon:project:instances:detail attachment.server_id as instance_url%}
+ {% url 'horizon:project:instances:detail' attachment.server_id as instance_url%}
{{ attachment.instance.name }}
{% trans "on" %} {{ attachment.device }}
diff --git a/openstack_dashboard/dashboards/settings/user/templates/user/_settings.html b/openstack_dashboard/dashboards/settings/user/templates/user/_settings.html
index 1e2eebef2..f6605ff43 100644
--- a/openstack_dashboard/dashboards/settings/user/templates/user/_settings.html
+++ b/openstack_dashboard/dashboards/settings/user/templates/user/_settings.html
@@ -1,8 +1,9 @@
{% extends "horizon/common/_modal_form.html" %}
{% load i18n %}
+{% load url from future %}
{% block form_id %}user_settings_modal{% endblock %}
-{% block form_action %}{% url horizon:settings:user:index %}{% endblock %}
+{% block form_action %}{% url 'horizon:settings:user:index' %}{% endblock %}
{% block modal_id %}user_settings_modal{% endblock %}
{% block modal-header %}{% trans "User Settings" %}{% endblock %}
@@ -21,6 +22,6 @@
{% block modal-footer %}
{% trans "Save" %}
- {% if hide %}
{% trans "Cancel" %} {% endif %}
+ {% if hide %}
{% trans "Cancel" %} {% endif %}
{% endblock %}
diff --git a/openstack_dashboard/local/local_settings.py.example b/openstack_dashboard/local/local_settings.py.example
index 8f7902032..ba29e0a56 100644
--- a/openstack_dashboard/local/local_settings.py.example
+++ b/openstack_dashboard/local/local_settings.py.example
@@ -7,6 +7,13 @@ from openstack_dashboard import exceptions
DEBUG = True
TEMPLATE_DEBUG = DEBUG
+# Required for Django 1.5.
+# If horizon is running in production (DEBUG is False), set this
+# with the list of host/domain names that the application can serve.
+# For more information see:
+# https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts
+#ALLOWED_HOSTS = ['horizon.example.com', ]
+
# Set SSL proxy settings:
# For Django 1.4+ pass this header from the proxy after terminating the SSL,
# and don't forget to strip it from the client's request.
@@ -60,8 +67,8 @@ LOCAL_PATH = os.path.dirname(os.path.abspath(__file__))
# behind a load-balancer). Either you have to make sure that a session gets all
# requests routed to the same dashboard instance or you set the same SECRET_KEY
# for all of them.
-# from horizon.utils import secret_key
-# SECRET_KEY = secret_key.generate_or_read_from_file(os.path.join(LOCAL_PATH, '.secret_key_store'))
+from horizon.utils import secret_key
+SECRET_KEY = secret_key.generate_or_read_from_file(os.path.join(LOCAL_PATH, '.secret_key_store'))
# We recommend you use memcached for development; otherwise after every reload
# of the django development server, you will have to login again. To use
diff --git a/openstack_dashboard/templates/403.html b/openstack_dashboard/templates/403.html
index 7238de105..0e36553ea 100644
--- a/openstack_dashboard/templates/403.html
+++ b/openstack_dashboard/templates/403.html
@@ -1,5 +1,6 @@
{% extends "base.html" %}
{% load i18n %}
+{% load url from future %}
{% block title %} - {% trans "Forbidden" %}{% endblock %}
@@ -17,11 +18,11 @@
diff --git a/openstack_dashboard/templates/404.html b/openstack_dashboard/templates/404.html
index 7e920581a..12a052251 100644
--- a/openstack_dashboard/templates/404.html
+++ b/openstack_dashboard/templates/404.html
@@ -1,5 +1,6 @@
{% extends "base.html" %}
{% load i18n %}
+{% load url from future %}
{% block title %} - {% trans "Page Not Found" %}{% endblock %}
@@ -16,11 +17,11 @@
diff --git a/openstack_dashboard/templates/_header.html b/openstack_dashboard/templates/_header.html
index 9a85bf54a..a18b6ed0c 100644
--- a/openstack_dashboard/templates/_header.html
+++ b/openstack_dashboard/templates/_header.html
@@ -1,10 +1,11 @@
{% load i18n %}
+{% load url from future %}
diff --git a/openstack_dashboard/test/settings.py b/openstack_dashboard/test/settings.py
index eee2b17fa..90b60d0d1 100644
--- a/openstack_dashboard/test/settings.py
+++ b/openstack_dashboard/test/settings.py
@@ -23,6 +23,8 @@ TEMPLATE_CONTEXT_PROCESSORS += (
)
INSTALLED_APPS = (
+ 'django.contrib.contenttypes',
+ 'django.contrib.auth',
'django.contrib.sessions',
'django.contrib.staticfiles',
'django.contrib.messages',
diff --git a/run_tests.sh b/run_tests.sh
index f2e7e5175..2cd70673b 100755
--- a/run_tests.sh
+++ b/run_tests.sh
@@ -6,7 +6,7 @@ set -o errexit
# Increment me any time the environment should be rebuilt.
# This includes dependncy changes, directory renames, etc.
# Simple integer secuence: 1, 2, 3...
-environment_version=31
+environment_version=32
#--------------------------------------------------------#
function usage {
diff --git a/tools/pip-requires b/tools/pip-requires
index 1c249077e..86409e73b 100644
--- a/tools/pip-requires
+++ b/tools/pip-requires
@@ -2,9 +2,9 @@ d2to1>=0.2.10,<0.3
pbr>=0.5,<0.6
# Horizon Core Requirements
-Django>=1.4,<1.5
+Django>=1.4,<1.6
django_compressor
-django_openstack_auth>=1.0.7
+django_openstack_auth>=1.0.8
netaddr
python-cinderclient>=1.0.2,<2.0.0
python-glanceclient<2