[python-django-horizon] Add requirement/br python-lockfile, change lockfile location, add ALLOWED_HOSTS

Matthias Runge mrunge at fedoraproject.org
Thu Jul 25 09:58:54 UTC 2013


commit a7ff0206901dbdc67b0ddf13cdc8dcde7e4ee934
Author: Matthias Runge <mrunge at redhat.com>
Date:   Thu Jul 25 11:37:04 2013 +0200

    Add requirement/br python-lockfile, change lockfile location, add ALLOWED_HOSTS

 ...file-location-to-tmp-and-also-add-localho.patch |   32 ++++++++++++++++++++
 python-django-horizon.spec                         |    7 +++-
 2 files changed, 37 insertions(+), 2 deletions(-)
---
diff --git a/0003-change-lockfile-location-to-tmp-and-also-add-localho.patch b/0003-change-lockfile-location-to-tmp-and-also-add-localho.patch
new file mode 100644
index 0000000..eaf0186
--- /dev/null
+++ b/0003-change-lockfile-location-to-tmp-and-also-add-localho.patch
@@ -0,0 +1,32 @@
+From fcf8b00597925b908f565bd27b29b440f41b3e78 Mon Sep 17 00:00:00 2001
+From: Matthias Runge <mrunge at redhat.com>
+Date: Thu, 25 Jul 2013 11:32:38 +0200
+Subject: [PATCH] change lockfile location to '/tmp' and also add localhost to
+ ALLOWED_HOSTS
+
+---
+ openstack_dashboard/local/local_settings.py.example | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/openstack_dashboard/local/local_settings.py.example b/openstack_dashboard/local/local_settings.py.example
+index 3f5da3d..52f1656 100644
+--- a/openstack_dashboard/local/local_settings.py.example
++++ b/openstack_dashboard/local/local_settings.py.example
+@@ -12,7 +12,7 @@ TEMPLATE_DEBUG = DEBUG
+ # 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', ]
++ALLOWED_HOSTS = ['horizon.example.com', 'localhost']
+ 
+ # Set SSL proxy settings:
+ # For Django 1.4+ pass this header from the proxy after terminating the SSL,
+@@ -77,7 +77,7 @@ HORIZON_CONFIG = {
+ # Turn off browser autocompletion for the login form if so desired.
+ # HORIZON_CONFIG["password_autocomplete"] = "off"
+ 
+-LOCAL_PATH = os.path.dirname(os.path.abspath(__file__))
++LOCAL_PATH = '/tmp'
+ 
+ # Set custom secret key:
+ # You can either set it to a specific value or you can let horizion generate a
diff --git a/python-django-horizon.spec b/python-django-horizon.spec
index daa4c46..c0c9960 100644
--- a/python-django-horizon.spec
+++ b/python-django-horizon.spec
@@ -1,6 +1,6 @@
 Name:       python-django-horizon
 Version:    2013.2
-Release:    0.3b2%{?dist}
+Release:    0.4b2%{?dist}
 Summary:    Django application for talking to Openstack
 
 Group:      Development/Libraries
@@ -20,6 +20,7 @@ Source4:    openstack-dashboard-httpd-logging.conf
 #
 Patch0001: 0001-Don-t-access-the-net-while-building-docs.patch
 Patch0002: 0002-disable-debug-move-web-root.patch
+Patch0003: 0003-change-lockfile-location-to-tmp-and-also-add-localho.patch
 
 
 # epel6 has a separate Django14 package
@@ -125,6 +126,7 @@ Documentation for the Django Horizon application for talking with Openstack
 
 %patch0001 -p1
 %patch0002 -p1
+%patch0003 -p1
 # remove unnecessary .po files
 find . -name "django*.po" -exec rm -f '{}' \;
 
@@ -250,10 +252,11 @@ cd %{buildroot}%{_datadir}/openstack-dashboard
 %doc html 
 
 %changelog
-* Wed Jul 24 2013 Matthias Runge <mrunge at redhat.com> - 2013.2-0.3b2
+* Thu Jul 25 2013 Matthias Runge <mrunge at redhat.com> - 2013.2-0.4b2
 - havana-2
 - change requirements from python-quantumclient to neutronclient
 - require python-ceilometerclient
+- add requirement python-lockfile, change lockfile location to /tmp
 
 * Thu Jun 06 2013 Matthias Runge <mrunge at redhat.com> - 2013.2-0.2b1
 - havana doesn't require explicitly Django-1.4


More information about the scm-commits mailing list