Monday, June 1, 2015

Re: need to upgrade django1.4.5-->django1.5, but apt-get install django tells me i'm running latest version

On 2/06/2015 3:17 AM, arthur sherman wrote:
> i get the following errors in the apache2 error.log:
>
> VersionConflict: (Django 1.4.5 (/usr/lib/python2.7/dist-packages),
> Requirement.parse('Django>=1.5'))
>
> but when i attempt upgradinging django apt-get install reports that i'm
> at the latest version:
> apt-get install python-django
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> python-django is already the newest version.
> The following package was automatically installed and is no longer required:
> libmysqlclient16
> Use 'apt-get autoremove' to remove it.

Uninstall using sudo apt-get remove django

You probably want to stop your web server for the duration of the
process. Sometimes having it running will prevent upgrades.

Re-install using pip rather than apt-get ...

pip install django==1.4.5
pip install <any other Django-related packages>

Prove everything still works (temporarily start the web server)

pip install --upgrade django==1.5.x

Re-start your web server

If you use apt-get you are stuck with the version of Django which the
package maintainers originally settled on for your distro. Using pip you
can manage it all yourself.

Andreas' advice to use virtualenv is excellent and you should follow it.

Good luck

>
> any suggestions?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to django-users+unsubscribe@googlegroups.com
> <mailto:django-users+unsubscribe@googlegroups.com>.
> To post to this group, send email to django-users@googlegroups.com
> <mailto:django-users@googlegroups.com>.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/7fd56253-482e-4cdb-8a26-c98d9d03805c%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/7fd56253-482e-4cdb-8a26-c98d9d03805c%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/556CD939.4070701%40dewhirst.com.au.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment