cccs-web / core

CCCS' customized django web application
4 stars 11 forks source link

internal server error on crisit: no module named taggit #150

Closed cccs-ip closed 10 years ago

cccs-ip commented 10 years ago

I attempted to pull in changes to cristi.crossculturalconsult.com, but I received the following error in the process:

$ django collectstatic
Traceback (most recent call last):
  File "/home/cristi/.virtualenvs/cccs/bin/django-admin.py", line 5, in <module>
    management.execute_from_command_line()
  File "/home/cristi/.virtualenvs/cccs/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 399, in execute_from_command_line
    utility.execute()
  File "/home/cristi/.virtualenvs/cccs/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 392, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/home/cristi/.virtualenvs/cccs/local/lib/python2.7/site-packages/django/core/management/base.py", line 242, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/home/cristi/.virtualenvs/cccs/local/lib/python2.7/site-packages/django/core/management/base.py", line 280, in execute
    translation.activate('en-us')
  File "/home/cristi/.virtualenvs/cccs/local/lib/python2.7/site-packages/django/utils/translation/__init__.py", line 130, in activate
    return _trans.activate(language)
  File "/home/cristi/.virtualenvs/cccs/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 188, in activate
    _active.value = translation(language)
  File "/home/cristi/.virtualenvs/cccs/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 177, in translation
    default_translation = _fetch(settings.LANGUAGE_CODE)
  File "/home/cristi/.virtualenvs/cccs/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 159, in _fetch
    app = import_module(appname)
  File "/home/cristi/.virtualenvs/cccs/local/lib/python2.7/site-packages/django/utils/importlib.py", line 40, in import_module
    __import__(name)
ImportError: No module named taggit

The result is that cristi.crossculturalconsult.com is now producing an internal server error.

Please help us to correct it.

cccs-ip commented 10 years ago

I fixed this on the server by running pip install django-taggit and then restarting the service. You will probably need to do the same locally.

pwhipp commented 10 years ago

Always look at the result of a git pull. If the requirements.txt changes you need to pip install -r requirements.txt to accommodate the changes.