Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added basic .wsgi files, and updated deployment infrastructure somewhat.

  • Loading branch information...
commit 65bdca7e181c1ef49512e0441b9e88808e85fdeb 1 parent f63e29c
@jacobian jacobian authored
View
0  config/code.wsgi
No changes.
View
4 config/crontab
@@ -3,4 +3,6 @@
PYTHONPATH=/home/djangoproject.com/
DJANGO_SETTINGS_MODULE=django_website.settings
-15,45 * * * * root python /home/djangoproject.com/django_website/manage.py update_feeds
+
+15,45 * * * * root /home/djangoproject/bin/python /home/djangoproject.com/manage-www.py update_feeds
+25,55 * * * * root /home/djangoproject/bin/python /home/djangoproject.com/manage-www.py update_docs
View
28 config/docs.wsgi
@@ -0,0 +1,28 @@
+import os
+import sys
+import site
+
+SITE_PACKAGES = '/home/djangoproject.com/lib/python2.6/site-packages'
+
+# Remember original sys.path.
+prev_sys_path = list(sys.path)
+
+# Add each new site-packages directory.
+site.addsitedir(SITE_PACKAGES)
+
+# Reorder sys.path so new directories at the front.
+new_sys_path = []
+for item in list(sys.path):
+ if item not in prev_sys_path:
+ new_sys_path.append(item)
+ sys.path.remove(item)
+sys.path[:0] = new_sys_path
+
+# Bootstrap Django
+here = os.path.dirname(__file__)
+parent = os.path.dirname(here)
+sys.path.append(parent)
+os.environ['DJANGO_SETTINGS_MODULE'] = 'djangodocs.settings'
+
+import django.core.handlers.wsgi
+application = django.core.handlers.wsgi.WSGIHandler()
View
28 config/www.wsgi
@@ -0,0 +1,28 @@
+import os
+import sys
+import site
+
+SITE_PACKAGES = '/home/djangoproject.com/lib/python2.6/site-packages'
+
+# Remember original sys.path.
+prev_sys_path = list(sys.path)
+
+# Add each new site-packages directory.
+site.addsitedir(SITE_PACKAGES)
+
+# Reorder sys.path so new directories at the front.
+new_sys_path = []
+for item in list(sys.path):
+ if item not in prev_sys_path:
+ new_sys_path.append(item)
+ sys.path.remove(item)
+sys.path[:0] = new_sys_path
+
+# Bootstrap Django
+here = os.path.dirname(__file__)
+parent = os.path.dirname(here)
+sys.path.append(parent)
+os.environ['DJANGO_SETTINGS_MODULE'] = 'django_website.settings'
+
+import django.core.handlers.wsgi
+application = django.core.handlers.wsgi.WSGIHandler()
Please sign in to comment.
Something went wrong with that request. Please try again.