6
The Ubuntu package for debug toolbar has a dependency on python-django, and for your version of Ubuntu, it is installing Django 1.1.1. The Messages app was installed in version 1.2, hence the error after you have installed the debug toolbar package.
I recommend you install debug_toolbar using pip.
# Install pip if you don't already have it
sudo apt-get install python-pip
pip install django_debug_toolbar
2
Combining the 2 previous answers and tweaking a bit got me sorted,
sudo apt-get purge python-django
pip install django
I hope thatβs useful.
- [Django]-Why does Google ReCaptcha not prevent the submission of the form?
- [Django]-Django: is importing a view from a module slower than including it in the main views.py file?
- [Django]-How to test APIView in Django, Django Rest Framework
- [Django]-KeyError on relation field in Django-REST
- [Django]-Any clue on this error with generic relation using Django Orm?
1
Or you can also install django > 1.2 manually instead of from the repos.
First clean your existing django installation sudo apt-get purge python-django
. Then choose a mirror from the following link:
- [Django]-Django build_absolute_uri without query params
- [Django]-How to display multi-word app names properly (i.e. with spaces) in Django admin?
0
sudo apt-get install build-essential libncursesw5-dev libreadline5-dev libssl-dev libgdbm-dev libc6-dev libsqlite3-dev tk-dev
and upgrading django
to 1.3.1
django.VERSION
(1, 3, 1, 'final', 0)
worked for me
- [Django]-Many-To-One Relation Query in Django
- [Django]-Is it possible to use javascript to get data from django models db?
- [Django]-How do you decide on creating a new model vs a field in django?
- [Django]-Make Django not lazy-load module, for development convenience
- [Django]-TinyMCE popups not loading when using S3 and setting document.domain
Source:stackexchange.com