I've upgraded python from 2.5 to 2.7 do I need to reinstall django?

7 views
Skip to first unread message

kierang

unread,
Aug 5, 2011, 5:23:43 PM8/5/11
to Django users
Hi all couldn't find this posted apologies if its been answered.

I have just installed python 2.7, there's packages I wat to use that
are reliant on json.

I have been using Django installed in 2.5 packages on my local
machine.
To get Django now working with 2.7 do I need to install Django and the
sql lib to 2.7?
Is that the correct thing to do?


Any advice would be great

Thanks
Kieran

Bill Freeman

unread,
Aug 5, 2011, 5:53:09 PM8/5/11
to django...@googlegroups.com
Probably. Depends on how you installed it.

If django was installed somewhere like /usr/lib/python2.5/... then, yes, the
new python install won't have access to it. That would be if you used
pip, eacy_install, or python setup.py as root to install it, and didn't give
any special arguments to install it elsewhere.

It's probably best to reinstall with the new python anyway, since there can
be dependencies that vary based on python version. Note that the .pyc
files in you project are only compatible with one version. 2.7 might deal
with this for you automatically, but it is probably best to remove them and
let 2.7 build its own.

2.7, IIRC, comes with sqlite, but if you are using, say, psycopg2 or mysql,
you will probably need to install the python packages for that as well.
The underlying lib files and DB installation should be fine as they are.

Bill

> --
> You received this message because you are subscribed to the Google Groups "Django users" group.
> To post to this group, send email to django...@googlegroups.com.
> To unsubscribe from this group, send email to django-users...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
>
>

kierang

unread,
Aug 5, 2011, 5:57:26 PM8/5/11
to django...@googlegroups.com
Great thanks Bill for the quick response.
I did install it with no special instructions so I'll just reinstall to 2.7


Thanks again
Kieran

kierang

unread,
Aug 5, 2011, 6:43:36 PM8/5/11
to django...@googlegroups.com
That worked perfect, just had to reinstall MySQL-python-1.2.3 and all modules

Didn't have to do anything to the existing Django projects

thanks again for the help

Cheers
Kieran
Reply all
Reply to author
Forward
0 new messages