Thursday, December 30, 2010

django using wrong python???

Hi,

I'm on centos and have two pythons 2.5 and 2.6.

I tried in models.py:

from fractions import Fraction

and got the error: No module named fractions

But when i use shell and type "from fractions import Fraction" it's OK, it uses python2.6 installation.

How can i modify django installation to use python2.6???

I already defined alias in bash_profile for python2.6, but it seems it doesnt work for django.

Thanks,

--
You received this message because you are subscribed to the Google Groups "Django users" group.
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.

No comments:

Post a Comment