Error: no module named messages after installing python-django-debug-toolbar

My version of Django 1.2.5 works in Python 2.6.5. I installed debug_toolbar from the Ubuntu Software Center, and it crashed with the error "No module with messages." With the debug_toolbar version of Django - 1.1.1 without debug_toolbar - 1.2.5. When I deleted it, Django works well. What happened to debug_toolbar? How can i fix this?

Before installation:

>>> import django
>>> django.VERSION
(1, 2, 5, 'final', 0) 

i159@i159-desktop:~/djproj/pastebin$ python2.6 manage.py runserver
Validating models...
0 errors found
...

After installation:

>>> import django
>>> django.VERSION
(1, 1, 1, 'final', 0)

i159@i159-desktop:~/djproj/pastebin$ python2.6 manage.py runserver
Error: No module named messages
+3
source share
4 answers

The Ubuntu package for the debug toolbar has a dependency on python-django, and for your version of Ubuntu it installs Django 1.1.1. The Messages application was installed in version 1.2, therefore, an error occurred after installing the debug panel package.

debug_toolbar pip.

# Install pip if you don't already have it 
sudo apt-get install python-pip
pip install django_debug_toolbar
+6

2 , ,

sudo apt-get purge python-django
pip install django

, .

+2

Or you can also install django> 1.2 manually, and not from the repositories.

Clean up your existing django installation first sudo apt-get purge python-django. Then select a mirror from the following link:

Django deb packages

+1
source
sudo apt-get install build-essential libncursesw5-dev libreadline5-dev libssl-dev    libgdbm-dev libc6-dev libsqlite3-dev tk-dev  

and upgrade djangoto1.3.1

django.VERSION
(1, 3, 1, 'final', 0)

worked for me

0
source

All Articles