From bb1f5f96f8a8a3eeb8585357a3a94c047c1c496b Mon Sep 17 00:00:00 2001 From: Mohamed Larabi Date: Thu, 24 Oct 2013 15:14:16 +0200 Subject: [PATCH] - rename myslice.wsgi into wsgi.py and propagate this change. - update variable WSGI_APPLICATION in myslice/settings.py. --- apache/__init__.py | 0 apache/myslice.conf | 4 ++-- apache/{myslice.wsgi => wsgi.py} | 0 debian/unfold.install | 2 +- myslice/settings.py | 2 +- setup.py | 2 +- 6 files changed, 5 insertions(+), 5 deletions(-) create mode 100644 apache/__init__.py rename apache/{myslice.wsgi => wsgi.py} (100%) diff --git a/apache/__init__.py b/apache/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/apache/myslice.conf b/apache/myslice.conf index 9e8a1551..a7f6f2ce 100644 --- a/apache/myslice.conf +++ b/apache/myslice.conf @@ -1,7 +1,7 @@ - WSGIScriptAlias / /usr/share/unfold/apache/myslice.wsgi + WSGIScriptAlias / /usr/share/unfold/apache/wsgi.py - + Order deny,allow Allow from all diff --git a/apache/myslice.wsgi b/apache/wsgi.py similarity index 100% rename from apache/myslice.wsgi rename to apache/wsgi.py diff --git a/debian/unfold.install b/debian/unfold.install index 4f3996ed..8dc6fd85 100644 --- a/debian/unfold.install +++ b/debian/unfold.install @@ -12,4 +12,4 @@ usr/share/unfold/trash usr/share/unfold/debug_platform manage.py usr/share/unfold/ apache/myslice.conf /etc/apache2/sites-available -apache/myslice.wsgi usr/share/unfold/apache +apache/wsgi.py usr/share/unfold/apache diff --git a/myslice/settings.py b/myslice/settings.py index 4878c0de..7b9e3c27 100644 --- a/myslice/settings.py +++ b/myslice/settings.py @@ -148,7 +148,7 @@ MIDDLEWARE_CLASSES = ( ROOT_URLCONF = 'myslice.urls' # Python dotted path to the WSGI application used by Django's runserver. -WSGI_APPLICATION = 'myslice.wsgi.application' +WSGI_APPLICATION = 'apache.wsgi.application' TEMPLATE_DIRS = ( # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". diff --git a/setup.py b/setup.py index 98d1368e..87b77886 100644 --- a/setup.py +++ b/setup.py @@ -20,5 +20,5 @@ setup(packages = packages, ( 'static/img', glob ('static/img/*')), ( 'static/fonts', glob ('static/fonts/*')), ( 'templates', glob ('templates/*')), - ( 'apache', [ 'apache/myslice.conf', 'apache/myslice.wsgi' ]), + ( 'apache', [ 'apache/myslice.conf', 'apache/wsgi.py' ]), ]) -- 2.43.0