views:

154

answers:

3

Hi

On my development system, I have python 2.6, python 1.1 and GAE.

  • I have three projects running on python 2.6 and django 1.1.
  • And 1 project using GAE, Python 2.6 and django 1.1.

I have heard that, my set-up for running GAE using python 2.6 may create some head scratching problems while deploying it on the production server, because GAE supports only python 2.5. And using 2.6 is not recommended.

Can I develop GAE application using python 2.6? If not what should be the solution, I am using Window vista as my development system.

Please note : I dont want to disturb my other projects in development, which uses python 2.6 and dajango 1.1.

+1  A: 

Use virtualenv to isolate your development environments, so you can have one running 2.5 and the others running 2.6.

Edited to add: once 2.5 is installed, you can initialize your virtualenv to use it with the -p option:

virtualenv -p /path/to/python2.5/python.exe destination_dir
Daniel Roseman
I have installed python 2.5 and 2.6 on my windows system. How do I create virutualenv that uses 2.5. I searched the google but didnt find answer... Can you help me out?
Software Enthusiastic
My default python is 2.6...
Software Enthusiastic
See my edit above.
Daniel Roseman
I have run this command in directory d:\testenv\ [virtualenv -p "c:\Python25\python.exe" .] But it give error: [c:\Python25\python.exe: can't open file 'C:\program': [Errno 2] No such file or directory]
Software Enthusiastic
A: 

Unless you are using python 2.6 specific syntax/code your application is safe to run on GAE.

Ilian Iliev
A: 

Re virtualenv question above: virtualenv have a parameter --python=PYTHON_EXE that you can point to the interpreter you'd like it to use. Running virtualenv without parameters or with an --help option whill show you which options you may pass it.

Jacob Oscarson