From bc52c646eaf241e974004f88c63e164e8d33508c Mon Sep 17 00:00:00 2001 From: Mohamed Larabi Date: Thu, 24 Oct 2013 16:04:20 +0200 Subject: [PATCH] put wsgi.py in myslice/ and propagate this change --- apache/__init__.py | 0 apache/myslice.conf | 2 +- debian/unfold.install | 1 - myslice/settings.py | 2 +- {apache => myslice}/wsgi.py | 0 setup.py | 2 +- 6 files changed, 3 insertions(+), 4 deletions(-) delete mode 100644 apache/__init__.py rename {apache => myslice}/wsgi.py (100%) diff --git a/apache/__init__.py b/apache/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/apache/myslice.conf b/apache/myslice.conf index a7f6f2ce..4331bcc5 100644 --- a/apache/myslice.conf +++ b/apache/myslice.conf @@ -1,5 +1,5 @@ - WSGIScriptAlias / /usr/share/unfold/apache/wsgi.py + WSGIScriptAlias / /usr/share/unfold/myslice/wsgi.py Order deny,allow diff --git a/debian/unfold.install b/debian/unfold.install index 8dc6fd85..a86e983a 100644 --- a/debian/unfold.install +++ b/debian/unfold.install @@ -12,4 +12,3 @@ usr/share/unfold/trash usr/share/unfold/debug_platform manage.py usr/share/unfold/ apache/myslice.conf /etc/apache2/sites-available -apache/wsgi.py usr/share/unfold/apache diff --git a/myslice/settings.py b/myslice/settings.py index 7b9e3c27..4878c0de 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 = 'apache.wsgi.application' +WSGI_APPLICATION = 'myslice.wsgi.application' TEMPLATE_DIRS = ( # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". diff --git a/apache/wsgi.py b/myslice/wsgi.py similarity index 100% rename from apache/wsgi.py rename to myslice/wsgi.py diff --git a/setup.py b/setup.py index 87b77886..157641a9 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/wsgi.py' ]), + ( 'apache', [ 'apache/myslice.conf' ]), ]) -- 2.43.0