Received: by 10.66.73.7 with SMTP id h7mr508845pav.6.1352219201889; Tue, 06 Nov 2012 08:26:41 -0800 (PST) X-BeenThere: django-users@googlegroups.com Received: by 10.68.201.133 with SMTP id ka5ls2161527pbc.3.gmail; Tue, 06 Nov 2012 08:26:22 -0800 (PST) Received: by 10.66.90.37 with SMTP id bt5mr579976pab.40.1352219182527; Tue, 06 Nov 2012 08:26:22 -0800 (PST) Received: by 10.66.90.37 with SMTP id bt5mr579975pab.40.1352219182508; Tue, 06 Nov 2012 08:26:22 -0800 (PST) Return-Path: Received: from mail-pa0-f50.google.com (mail-pa0-f50.google.com [209.85.220.50]) by gmr-mx.google.com with ESMTPS id uz6si4799406pbc.0.2012.11.06.08.26.22 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 06 Nov 2012 08:26:22 -0800 (PST) Received-SPF: pass (google.com: domain of tlockhart1...@gmail.com designates 209.85.220.50 as permitted sender) client-ip=209.85.220.50; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of tlockhart1...@gmail.com designates 209.85.220.50 as permitted sender) smtp.mail=tlockhart1...@gmail.com; dkim=pass header...@gmail.com Received: by mail-pa0-f50.google.com with SMTP id hz11so482792pad.37 for ; Tue, 06 Nov 2012 08:26:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=6PIACzqzwgh4/71Axksl54XqUDddWBtu3DjsCzPQeb8=; b=YK0uO1B270wY4cMaC3ssY7KERc2TQybKmbQ4w947wsMhVtEXq91cg8OqsUsEh6/S6N UAab3XdcjJ3IX4pVBDYc74coQ5eGV78adOi4SXTPJ00BquCJxkjNqI0qXyONCw8fG60G z0XivQoeP397T81dYyGm5JQWRCSRotDXhkhd2KiMA6ecFnAmaYVIq7w0QqfOGhSpzljc Oeju/lwdxd5ZcxsvOOCVo/jihjjrPA47aQPdyng9jMIN+YNBTnu/hxRF9fmgKt1qw0dj U0fK3kqL7Jcmp5aGIfwMZeZVFMRZLWBi7rOLvFWU+SIQnFHutW4GrausOgjaYHGQ4fwC yDNw== Received: by 10.66.85.67 with SMTP id f3mr4173553paz.0.1352219182430; Tue, 06 Nov 2012 08:26:22 -0800 (PST) Return-Path: Received: from aerie.local (wraith.fourpalms.org. [208.127.222.58]) by mx.google.com with ESMTPS id mn5sm12569020pbc.12.2012.11.06.08.26.21 (version=SSLv3 cipher=OTHER); Tue, 06 Nov 2012 08:26:21 -0800 (PST) Message-ID: <50993A2C.3020...@gmail.com> Date: Tue, 06 Nov 2012 08:26:20 -0800 From: Thomas Lockhart User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:16.0) Gecko/20121026 Thunderbird/16.0.2 MIME-Version: 1.0 To: django-users@googlegroups.com Subject: Re: Incorrect Python Version Being Used References: <4e82dccb-81e2-4442-9c36-67d5cded9224@googlegroups.com> In-Reply-To: <4e82dccb-81e2-4442-9c36-67d5cded9224@googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 11/6/12 7:09 AM, Bestrafung wrote: > I have been running into this problem for a long while trying to setup > my first Django project and I keep coming back to this problem. I am > relatively new when it come to Linux, I'm learning but still have a > long way to go. I am using CentOS 5.8 cPanel which comes with Python > 2.4. Following instructions I found online for setting up Django with > cPanel I compiled/installed Python 2.7 from source to /opt/python2.7 > and set an alias (alias python="/opt/python2.7/bin/python") in the > root and user's .bash_profile and python 2.7 launches as expected when > you use the python command. Every time I try to start a project or > work with it however the system default python 2.4 keeps popping up. I > think this may be the single cause of all of my issues. When starting > a project I have just appended the python command to make sure it > started with the correct version. I believe that once the project is > started it isn't working because everything is still trying to use > 2.4. Is there a way to make Django use my 2.7 install instead of 2.4 > without breaking the system by making the 2.7 system default? Use virtualenv. Always. - Tom > -- > You received this message because you are subscribed to the Google > Groups "Django users" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/django-users/-/WqpZIEJqalcJ. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en.