[Django]-Error: No module named messages after installing python-django-debug-toolbar

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
πŸ‘€Alasdair

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.

πŸ‘€AndrewR

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 deb packages

πŸ‘€Jeshurun

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

πŸ‘€Sandip

Leave a comment