WebFaction
Community site: login faq

I get a 500 error

I'm new to all this and don't really understand the log file... any help would be appreicated... what do i do here?

[Thu Jun 30 10:01:52 2011] [error] [client 127.0.0.1]     output = self.filter_expression.resolve(context)
[Thu Jun 30 10:01:52 2011] [error] [client 127.0.0.1]   File "/home/maccabi/webapps/macabbi/lib/python2.7/django/template/base.py", line 536, in resolve
[Thu Jun 30 10:01:52 2011] [error] [client 127.0.0.1]     new_obj = func(obj, *arg_vals)
[Thu Jun 30 10:01:52 2011] [error] [client 127.0.0.1]   File "/home/maccabi/webapps/macabbi/lib/python2.7/django/template/defaultfilters.py", line 695, in date
[Thu Jun 30 10:01:52 2011] [error] [client 127.0.0.1]     return format(value, arg)
[Thu Jun 30 10:01:52 2011] [error] [client 127.0.0.1]   File "/home/maccabi/webapps/macabbi/lib/python2.7/django/utils/dateformat.py", line 285, in format
[Thu Jun 30 10:01:52 2011] [error] [client 127.0.0.1]     return df.format(format_string)
[Thu Jun 30 10:01:52 2011] [error] [client 127.0.0.1]   File "/home/maccabi/webapps/macabbi/lib/python2.7/django/utils/dateformat.py", line 30, in format
[Thu Jun 30 10:01:52 2011] [error] [client 127.0.0.1]     pieces.append(force_unicode(getattr(self, piece)()))
[Thu Jun 30 10:01:52 2011] [error] [client 127.0.0.1]   File "/home/maccabi/webapps/macabbi/lib/python2.7/django/utils/dateformat.py", line 191, in r
[Thu Jun 30 10:01:52 2011] [error] [client 127.0.0.1]     return self.format('D, j M Y H:i:s O')
[Thu Jun 30 10:01:52 2011] [error] [client 127.0.0.1]   File "/home/maccabi/webapps/macabbi/lib/python2.7/django/utils/dateformat.py", line 30, in format
[Thu Jun 30 10:01:52 2011] [error] [client 127.0.0.1]     pieces.append(force_unicode(getattr(self, piece)()))
[Thu Jun 30 10:01:52 2011] [error] [client 127.0.0.1]   File "/home/maccabi/webapps/macabbi/lib/python2.7/django/utils/encoding.py", line 71, in force_unicode
[Thu Jun 30 10:01:52 2011] [error] [client 127.0.0.1]     s = unicode(s)
[Thu Jun 30 10:01:52 2011] [error] [client 127.0.0.1]   File "/home/maccabi/webapps/macabbi/lib/python2.7/django/utils/functional.py", line 206, in __unicode_cast
[Thu Jun 30 10:01:52 2011] [error] [client 127.0.0.1]     return self.__func(*self.__args, **self.__kw)
[Thu Jun 30 10:01:52 2011] [error] [client 127.0.0.1]   File "/home/maccabi/webapps/macabbi/lib/python2.7/django/utils/translation/__init__.py", line 81, in ugettext
[Thu Jun 30 10:01:52 2011] [error] [client 127.0.0.1]     return _trans.ugettext(message)
[Thu Jun 30 10:01:52 2011] [error] [client 127.0.0.1]   File "/home/maccabi/webapps/macabbi/lib/python2.7/django/utils/translation/trans_real.py", line 286, in ugettext
[Thu Jun 30 10:01:52 2011] [error] [client 127.0.0.1]     return do_translate(message, 'ugettext')
[Thu Jun 30 10:01:52 2011] [error] [client 127.0.0.1]   File "/home/maccabi/webapps/macabbi/lib/python2.7/django/utils/translation/trans_real.py", line 276, in do_translate
[Thu Jun 30 10:01:52 2011] [error] [client 127.0.0.1]     _default = translation(settings.LANGUAGE_CODE)
[Thu Jun 30 10:01:52 2011] [error] [client 127.0.0.1]   File "/home/maccabi/webapps/macabbi/lib/python2.7/django/utils/translation/trans_real.py", line 185, in translation
[Thu Jun 30 10:01:52 2011] [error] [client 127.0.0.1]     default_translation = _fetch(settings.LANGUAGE_CODE)
[Thu Jun 30 10:01:52 2011] [error] [client 127.0.0.1]   File "/home/maccabi/webapps/macabbi/lib/python2.7/django/utils/translation/trans_real.py", line 162, in _fetch
[Thu Jun 30 10:01:52 2011] [error] [client 127.0.0.1]     app = import_module(appname)
[Thu Jun 30 10:01:52 2011] [error] [client 127.0.0.1]   File "/home/maccabi/webapps/macabbi/lib/python2.7/django/utils/importlib.py", line 35, in import_module
[Thu Jun 30 10:01:52 2011] [error] [client 127.0.0.1]     __import__(name)
[Thu Jun 30 10:01:52 2011] [error] [client 127.0.0.1] TemplateSyntaxError: Caught ImportError while rendering: No module named mcapp

asked 30 Jun '11, 09:29

wahwahpedal
111
accept rate: 0%


The error basically says that Python cannot load a module called "mcapp".

The usual reason for this is the module not being present on your Python path (the collection of directories that Python checks when it imports module). The fix is to add the path to folder that contains the "mcapp" directory/module to the Python path. You can follow the instructions in our docs to accomplish this.

permanent link

answered 30 Jun '11, 09:38

tie
1.4k13
accept rate: 44%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×909
×225

question asked: 30 Jun '11, 09:29

question was seen: 3,729 times

last updated: 21 Jan '12, 01:25

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM