Przeniesienie wolnelektury.fcgi i wolnelektury.wsgi do katalogu głównego.
authorMarek Stępniowski <marek@stepniowski.com>
Sun, 11 Oct 2009 00:04:09 +0000 (02:04 +0200)
committerMarek Stępniowski <marek@stepniowski.com>
Sun, 11 Oct 2009 00:04:09 +0000 (02:04 +0200)
wolnelektury/deploy/wolnelektury.fcgi [deleted file]
wolnelektury/deploy/wolnelektury.wsgi [deleted file]
wolnelektury/wolnelektury.fcgi [new file with mode: 0644]
wolnelektury/wolnelektury.wsgi [new file with mode: 0644]

diff --git a/wolnelektury/deploy/wolnelektury.fcgi b/wolnelektury/deploy/wolnelektury.fcgi
deleted file mode 100644 (file)
index 1f9c621..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/usr/bin/env python
-import os
-from os.path import abspath, dirname, join
-import sys
-
-# Redirect sys.stdout to sys.stderr for bad libraries like geopy that use
-# print statements for optional import exceptions.
-sys.stdout = sys.stderr
-
-# Add apps and lib directories to PYTHONPATH
-sys.path.insert(0, abspath(join(dirname(__file__), '../../apps')))
-sys.path.insert(0, abspath(join(dirname(__file__), '../../lib')))
-
-# Emulate manage.py path hacking.
-sys.path.insert(0, abspath(join(dirname(__file__), "../../")))
-sys.path.insert(0, abspath(join(dirname(__file__), "../")))
-
-# Run Django
-os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
-
-from django.core.servers.fastcgi import runfastcgi
-runfastcgi(method='threaded', daemonize='false')
-
diff --git a/wolnelektury/deploy/wolnelektury.wsgi b/wolnelektury/deploy/wolnelektury.wsgi
deleted file mode 100644 (file)
index 590d36b..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/usr/bin/env python
-import os
-from os.path import abspath, dirname, join
-import sys
-
-# Redirect sys.stdout to sys.stderr for bad libraries like geopy that use
-# print statements for optional import exceptions.
-sys.stdout = sys.stderr
-
-# Add apps and lib directories to PYTHONPATH
-sys.path.insert(0, abspath(join(dirname(__file__), '../../apps')))
-sys.path.insert(0, abspath(join(dirname(__file__), '../../lib')))
-
-# Emulate manage.py path hacking.
-sys.path.insert(0, abspath(join(dirname(__file__), "../../")))
-sys.path.insert(0, abspath(join(dirname(__file__), "../")))
-
-# Run Django
-os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
-
-from django.core.handlers.wsgi import WSGIHandler
-application = WSGIHandler()
-
diff --git a/wolnelektury/wolnelektury.fcgi b/wolnelektury/wolnelektury.fcgi
new file mode 100644 (file)
index 0000000..1f9c621
--- /dev/null
@@ -0,0 +1,23 @@
+#!/usr/bin/env python
+import os
+from os.path import abspath, dirname, join
+import sys
+
+# Redirect sys.stdout to sys.stderr for bad libraries like geopy that use
+# print statements for optional import exceptions.
+sys.stdout = sys.stderr
+
+# Add apps and lib directories to PYTHONPATH
+sys.path.insert(0, abspath(join(dirname(__file__), '../../apps')))
+sys.path.insert(0, abspath(join(dirname(__file__), '../../lib')))
+
+# Emulate manage.py path hacking.
+sys.path.insert(0, abspath(join(dirname(__file__), "../../")))
+sys.path.insert(0, abspath(join(dirname(__file__), "../")))
+
+# Run Django
+os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
+
+from django.core.servers.fastcgi import runfastcgi
+runfastcgi(method='threaded', daemonize='false')
+
diff --git a/wolnelektury/wolnelektury.wsgi b/wolnelektury/wolnelektury.wsgi
new file mode 100644 (file)
index 0000000..590d36b
--- /dev/null
@@ -0,0 +1,23 @@
+#!/usr/bin/env python
+import os
+from os.path import abspath, dirname, join
+import sys
+
+# Redirect sys.stdout to sys.stderr for bad libraries like geopy that use
+# print statements for optional import exceptions.
+sys.stdout = sys.stderr
+
+# Add apps and lib directories to PYTHONPATH
+sys.path.insert(0, abspath(join(dirname(__file__), '../../apps')))
+sys.path.insert(0, abspath(join(dirname(__file__), '../../lib')))
+
+# Emulate manage.py path hacking.
+sys.path.insert(0, abspath(join(dirname(__file__), "../../")))
+sys.path.insert(0, abspath(join(dirname(__file__), "../")))
+
+# Run Django
+os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
+
+from django.core.handlers.wsgi import WSGIHandler
+application = WSGIHandler()
+