Note that there are some explanatory texts on larger screens.

plurals
  1. POupgrading python in ubuntu
    primarykey
    data
    text
    <p>Currently I have a working site on Ubuntu 10.04, python 2.6.5, Django 1.3, virtualenv and mod_wsgi. I also have nginx serving the static files, but I'm not sure that fits into this equation.</p> <p>I set this up over a year ago and really only learned enough to get it going, so I don't remember the exact steps I took to get it going initially.</p> <p>I have a need to start using python 2.7, but I'm not exactly sure the best way to go about that. From what I've read, it looks like I need to re-install mod_wsgi specifically for 2.7.</p> <p>I believe the steps to accomplish this are something like the following:</p> <ol> <li>uninstall mod_wsgi. </li> <li>insatll python 2.7 (I believe this can live alongside 2.6?) </li> <li>re-install mod_wsgi specifically for python 2.7.</li> <li>create a new virtualenv using 2.7 and re-install requirements.</li> </ol> <p>I'm also looking at my django.wsgi file that I had setup that apache points to (in my project):</p> <pre><code>import os, sys import site wsgi_dir = os.path.abspath(os.path.join(os.path.dirname(__file__))) project_dir = os.path.dirname(wsgi_dir) root_dir = os.path.join(project_dir, '..') site.addsitedir(os.path.join(root_dir, 'env/lib/python2.6/site-packages')) sys.path.append(project_dir) os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' import django.core.handlers.wsgi application = django.core.handlers.wsgi.WSGIHandler() </code></pre> <p>And I don't see anywhere that I specifically call out the python binary to use, so I think I need to add something in there for that.</p> <p>So my question is: What are the steps I need to take to upgrade my setup to python 2.7?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload