Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

My Django version is 1.2.5 it runs in Python 2.6.5. I installed debug_toolbar, from Ubuntu Software Center and it's fell down with No module named messages error. With debug_toolbar version of Django - 1.1.1, without debug_toolbar - 1.2.5. When I removed it, Django runs well. What is wrong with debug_toolbar? How can I fix it?

Before install:

>>> 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 install:

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

i159@i159-desktop:~/djproj/pastebin$ python2.6 manage.py runserver
Error: No module named messages
like image 424
I159 Avatar asked May 20 '26 20:05

I159


1 Answers

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
like image 120
Alasdair Avatar answered May 22 '26 17:05

Alasdair



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!