Skip to content
Browse files

Updated .wsgi scripts and moved them to a better location.

Also killed the crontab since it's moved into chef.
  • Loading branch information...
1 parent 13719c4 commit d585fb3b65149defaa9f463100ff245cdf7e4021 @jacobian jacobian committed
Showing with 4 additions and 12 deletions.
  1. 0 config/code.wsgi
  2. +0 −8 config/crontab
  3. +2 −2 {config → wsgi-scripts}/docs.wsgi
  4. +2 −2 {config → wsgi-scripts}/www.wsgi
View
0 config/code.wsgi
No changes.
View
8 config/crontab
@@ -1,8 +0,0 @@
-# Crontab for djangoproject.com.
-# Symlink into /etc/cron.d/
-
-PYTHONPATH=/home/djangoproject.com/
-DJANGO_SETTINGS_MODULE=django_website.settings
-
-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
4 config/docs.wsgi → wsgi-scripts/docs.wsgi
@@ -2,7 +2,7 @@ import os
import sys
import site
-SITE_PACKAGES = '/home/djangoproject.com/lib/python2.6/site-packages'
+SITE_PACKAGES = '/home/www/djangoproject.com/lib/python2.6/site-packages'
# Remember original sys.path.
prev_sys_path = list(sys.path)
@@ -22,7 +22,7 @@ sys.path[:0] = new_sys_path
here = os.path.dirname(__file__)
parent = os.path.dirname(here)
sys.path.append(parent)
-os.environ['DJANGO_SETTINGS_MODULE'] = 'djangodocs.settings'
+os.environ['DJANGO_SETTINGS_MODULE'] = 'django_website.settings.docs'
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()
View
4 config/www.wsgi → wsgi-scripts/www.wsgi
@@ -2,7 +2,7 @@ import os
import sys
import site
-SITE_PACKAGES = '/home/djangoproject.com/lib/python2.6/site-packages'
+SITE_PACKAGES = '/home/www/djangoproject.com/lib/python2.6/site-packages'
# Remember original sys.path.
prev_sys_path = list(sys.path)
@@ -22,7 +22,7 @@ sys.path[:0] = new_sys_path
here = os.path.dirname(__file__)
parent = os.path.dirname(here)
sys.path.append(parent)
-os.environ['DJANGO_SETTINGS_MODULE'] = 'django_website.settings'
+os.environ['DJANGO_SETTINGS_MODULE'] = 'django_website.settings.www'
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()

0 comments on commit d585fb3

Please sign in to comment.
Something went wrong with that request. Please try again.