I have installed Python 2.7 and Django 1.4 in my CentOS machine and installed all dependencies for my existing project. When I run python manage.py runserver
, I am getting the following traceback in my console
[root@localhost bv]# python manage.py runserver
Validating models...Unhandled exception in thread started by <bound method Command.inner_run of <django.contrib.staticfiles.management.commands.runserver.Command object at 0x8ddd7ec>>
Traceback (most recent call last):File "/usr/local/lib/python2.7/site-packages/django/core/management/commands/runserver.py", line 91, in inner_runself.validate(display_num_errors=True)File "/usr/local/lib/python2.7/site-packages/django/core/management/base.py", line 266, in validatenum_errors = get_validation_errors(s, app)File "/usr/local/lib/python2.7/site-packages/django/core/management/validation.py", line 30, in get_validation_errorsfor (app_name, error) in get_app_errors().items():File "/usr/local/lib/python2.7/site-packages/django/db/models/loading.py", line 158, in get_app_errorsself._populate()File "/usr/local/lib/python2.7/site-packages/django/db/models/loading.py", line 67, in _populateself.load_app(app_name)File "/usr/local/lib/python2.7/site-packages/django/db/models/loading.py", line 88, in load_appmodels = import_module('.models', app_name)File "/usr/local/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module__import__(name)File "/usr/local/lib/python2.7/site-packages/debug_toolbar/models.py", line 6, in <module>from debug_toolbar.toolbar.loader import load_panel_classesFile "/usr/local/lib/python2.7/site-packages/debug_toolbar/toolbar/loader.py", line 12, in <module>from debug_toolbar.utils.settings import CONFIGFile "/usr/local/lib/python2.7/site-packages/debug_toolbar/utils/__init__.py", line 9, in <module>from django.utils.encoding import force_text
ImportError: cannot import name force_text