Django 1.5 Upgrade

Home » CentOS » Django 1.5 Upgrade
CentOS 2 Comments

Anyone here using django on CentOS.

On my Mac, running python 2.7, I upgraded from 1.4 to 1.5 by doing this:

rm -rf /Library/Python/2.7/site-packages/django

Followed by python setup.py install in the dir I untar-ed Django-1.5.1 to. This all worked fine.

On a CentOS system running python 2.6 I did:

rm -rf /usr/lib/python2.6/site-packages/django followed by the setup.py install. My django app is working, and appears to be running 1.5, however anytime I use manage.py (for collectstatic or syncdb or test, for example) I get these messages:

/usr/lib/python2.6/site-packages/django/core/management/__init__.py:465:
DeprecationWarning: The ‘execute_manager’ function is deprecated, you likely need to update your ‘manage.py’; please see the Django 1.4
release notes (https://docs.djangoproject.com/en/dev/releases/1.4/).
DeprecationWarning)
/usr/lib/python2.6/site-packages/django/core/management/__init__.py:409:
DeprecationWarning: The ‘setup_environ’ function is deprecated, you likely need to update your ‘manage.py’; please see the Django 1.4
release notes (https://docs.djangoproject.com/en/dev/releases/1.4/).
DeprecationWarning)

So it seems I still have some 1.4 stuff around. I don’t get this on my Mac. How can I get rid of these messages?

2 thoughts on - Django 1.5 Upgrade

  • Django is not a CentOS package. It is very likely that you installed it from a third-party repository or by hand. In the future you should try to post to a more appropriate location (like the django mailing list where you already posted this question).

    This was probably the wrong thing to do. Use yum to upgrade if you installed from a repo, or use the official Django upgrade docs if you installed by hand:

    https://docs.djangoproject.com/en/1.5/howto/upgrade-version/

    –keith

  • Yes, I realize that.

    Yes, I installed it by hand.

    As I am having a problem with it under CentOS I think it’s appropriate to post here. Someone else may have had and solved my issue.

    The way I installed it did come from the official Django upgrade docs:

    https://docs.djangoproject.com/en/1.5/topics/install/#removing-old-versions-of-django

    In any case, I did try following the instructions at the link you gave, and I got:

    Requirement already up-to-date: Django in /usr/local/python2.6/site-packages

LEAVE A COMMENT