First time here? Check out the FAQ!

odyssey's profile - activity

7 years ago received badge Famous Question (source)
8 years ago received badge Notable Question (source)
10 years ago received badge Famous Question (source)
10 years ago received badge Popular Question (source)
10 years ago received badge Notable Question (source)
10 years ago received badge Popular Question (source)
10 years ago received badge Notable Question (source)
11 years ago received badge Popular Question (source)
11 years ago received badge Famous Question (source)
11 years ago received badge Famous Question (source)
11 years ago received badge Famous Question (source)
11 years ago received badge Student (source)
11 years ago received badge Nice Answer ( source )
11 years ago received badge Teacher ( source )
11 years ago answered a question Server runs for some minutes and then 500 error

Create a static robots.txt file served by apache, I observed that when a request for robots.txt hits django an exception is thrown and the app does not go back working normally afterwards. I did not dig into what generates this error but doing this solves it.

11 years ago asked a question format requires a mapping exception

I have changed the words question/questions to the locale I'm using in askbot settings page and also the po files for the locale. When there is a request to /feeds/question/21/ for example the following exception is thrown from:

askbot-devel/askbot/feed.py in title _('Individual %(question)s feed') % askbot_settings.WORDS_QUESTION_SINGULAR

Django Version: 1.5 Exception Type: TypeError Exception Value:
format requires a mapping Exception Location: /home/user/projects/askbot-devel/askbot/feed.py in title, line 35

Are there some entries that should not be translated in po files ?

11 years ago asked a question format requires a mapping

I have changed the words question/questions to the locale I'm using in askbot settings page and also the po files for the locale. When there is a request to /feeds/question/21/ for example the following exception is thrown from:

askbot-devel/askbot/feed.py in title _('Individual %(question)s feed') % askbot_settings.WORDS_QUESTION_SINGULAR

Django Version: 1.5 Exception Type: TypeError Exception Value:
format requires a mapping Exception Location: /home/user/projects/askbot-devel/askbot/feed.py in title, line 35

Are there some entries that should not be translated in po files ?

11 years ago asked a question format requires a mapping

I have changed the words question/questions to the locale I'm using in askbot settings page and also the po files for the locale. When there is a request to /feeds/question/21/ for example the following exception is thrown from:

askbot-devel/askbot/feed.py in title _('Individual %(question)s feed') % askbot_settings.WORDS_QUESTION_SINGULAR

Django Version: 1.5 Exception Type: TypeError Exception Value:
format requires a mapping Exception Location: /home/user/projects/askbot-devel/askbot/feed.py in title, line 35 Python Executable: /usr/bin/uwsgi-core Python Version: 2.7.3

Are there some entries that should not be translated in po files ?

11 years ago asked a question format requires a mapping exception

I have changed the words question/questions to the locale I'm using in askbot settings page and also the po files for the locale. When there is a request to /feeds/question/21/ for example the following exception is thrown from:

askbot-devel/askbot/feed.py in title _('Individual %(question)s feed') % askbot_settings.WORDS_QUESTION_SINGULAR

Django Version: 1.5 Exception Type: TypeError Exception Value:
format requires a mapping Exception Location: /home/user/projects/askbot-devel/askbot/feed.py in title, line 35 Python Executable: /usr/bin/uwsgi-core Python Version: 2.7.3

Are there some entries that should not be translated in po files ?

11 years ago commented answer Unable to add a user as a moderator using the admin portal

Any reason for this? I would like to contribute if possible, any discussions on this?

11 years ago commented question changing email of user via admin interface throws exception

Excellent, thanks

11 years ago asked a question changing email of user via admin interface throws exception

This is what I see as error

IntegrityError at /admin/auth/user/2/ update or delete on table "auth_user_groups" violates foreign key constraint "authusergroups_ptr_id_refs_id_e728db87" on table "askbot_groupmembership" DETAIL: Key (id)=(5) is still referenced from table "askbot_groupmembership".

Is it not possible to change the email address of user via admin?

11 years ago commented answer AttributeError: SMTP instance has no attribute 'sock'

nope, there seems to be some other concealed exceptions. How one deals with those mysterious errors I am yet to find out.. For example following the advice on skin creation at wiki I made a skin folder copying templates and stuff. Now when I update the email of a user for example via admin interface i get jinja2.exceptions.UndefinedError: 'skin' is undefined I wonder if this has anything to do with skins

11 years ago commented answer How to localize month names?

Arghh, thats right, thanks a lot.

11 years ago received badge Scholar ( source )
11 years ago commented question How to localize month names?

Update: When I change LANGUAGE_CODE to de, the month names change accordingly to german, but not with 'tr', turkish language, Can this be related to some issue with django's own po files?

11 years ago asked a question How to localize month names?

setting LANGUAGE_CODE to the correct locale does not seem to change the month names. I'm running it on ubuntu. Any suggestions?

11 years ago asked a question AttributeError: SMTP instance has no attribute 'sock'

After some minutes starting the server (tried with gunicorn, uwsgi, mod_wsgi) I get this error. Why does it work normally but stop working after some time?

Traceback (most recent call last):
  File "/home/wiseguy/projects/venv/local/lib/python2.7/site-packages/gunicorn/workers/sync.py", line 131, in handle_request
    respiter = self.wsgi(environ, resp.start_response)
  File "/home/wiseguy/projects/venv/local/lib/python2.7/site-packages/Django-1.5-py2.7.egg/django/core/handlers/wsgi.py", line 255, in __call__
    response = self.get_response(request)
  File "/home/wiseguy/projects/venv/local/lib/python2.7/site-packages/Django-1.5-py2.7.egg/django/core/handlers/base.py", line 178, in get_response
    response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
  File "/home/wiseguy/projects/venv/local/lib/python2.7/site-packages/Django-1.5-py2.7.egg/django/core/handlers/base.py", line 212, in handle_uncaught_exception
    'request': request
  File "/usr/lib/python2.7/logging/__init__.py", line 1166, in error
    self._log(ERROR, msg, args, **kwargs)
  File "/usr/lib/python2.7/logging/__init__.py", line 1258, in _log
    self.handle(record)
  File "/usr/lib/python2.7/logging/__init__.py", line 1268, in handle
    self.callHandlers(record)
  File "/usr/lib/python2.7/logging/__init__.py", line 1308, in callHandlers
    hdlr.handle(record)
  File "/usr/lib/python2.7/logging/__init__.py", line 748, in handle
    self.emit(record)
  File "/home/wiseguy/projects/venv/local/lib/python2.7/site-packages/Django-1.5-py2.7.egg/django/utils/log.py", line 113, in emit
    mail.mail_admins(subject, message, fail_silently=True, html_message=html_message)
  File "/home/wiseguy/projects/venv/local/lib/python2.7/site-packages/Django-1.5-py2.7.egg/django/core/mail/__init__.py", line 98, in mail_admins
    mail.send(fail_silently=fail_silently)
  File "/home/wiseguy/projects/venv/local/lib/python2.7/site-packages/Django-1.5-py2.7.egg/django/core/mail/message.py", line 255, in send
    return self.get_connection(fail_silently).send_messages([self])
  File "/home/wiseguy/projects/venv/local/lib/python2.7/site-packages/Django-1.5-py2.7.egg/django/core/mail/backends/smtp.py", line 99, in send_messages
    self.close()
  File "/home/wiseguy/projects/venv/local/lib/python2.7/site-packages/Django-1.5-py2.7.egg/django/core/mail/backends/smtp.py", line 72, in close
    self.connection.close()
  File "/usr/lib/python2.7/smtplib.py", line 747, in close
    if self.sock:
AttributeError: SMTP instance has no attribute 'sock'
11 years ago asked a question jinja2.exceptions.UndefinedError: 'skin' is undefined

I am getting this error after some time starting the server, what might be the reason? using code from github

Traceback (most recent call last):
  File "/home/myuser/projects/venv/local/lib/python2.7/site-packages/Django-1.5-py2.7.egg/django/core/handlers/wsgi.py", line 255, in __call__
    response = self.get_response(request)
  File "/home/myuser/projects/venv/local/lib/python2.7/site-packages/Django-1.5-py2.7.egg/django/core/handlers/base.py", line 178, in get_response
    response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
  File "/home/myuser/projects/venv/local/lib/python2.7/site-packages/Django-1.5-py2.7.egg/django/core/handlers/base.py", line 224, in handle_uncaught_exception
    return callback(request, **param_dict)
  File "/home/myuser/projects/venv/local/lib/python2.7/site-packages/Django-1.5-py2.7.egg/django/utils/decorators.py", line 91, in _wrapped_view
    response = view_func(request, *args, **kwargs)
  File "/home/myuser/projects/venv/local/lib/python2.7/site-packages/Django-1.5-py2.7.egg/django/views/defaults.py", line 41, in server_error
    return http.HttpResponseServerError(template.render(Context({})))
  File "/home/myuser/projects/venv/local/lib/python2.7/site-packages/Coffin-0.3.8-py2.7.egg/coffin/template/__init__.py", line 55, in render
    return super(Template, self).render(**context)
  File "/home/myuser/projects/venv/local/lib/python2.7/site-packages/Jinja2-2.7.1-py2.7.egg/jinja2/environment.py", line 969, in render
    return self.environment.handle_exception(exc_info, True)
  File "/home/myuser/projects/venv/local/lib/python2.7/site-packages/Jinja2-2.7.1-py2.7.egg/jinja2/environment.py", line 742, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "./askbot/templates/500.html", line 1, in top-level template code
    {% extends "two_column_body.html" %}
  File "./askbot/templates/two_column_body.html", line 1, in top-level template code
    {% extends "base.html" %}
  File "./askbot/templates/base.html", line 27, in top-level template code
    {% include "meta/html_head_stylesheets.html" %}
  File "./askbot/templates/meta/html_head_stylesheets.html", line 7, in top-level template code
    {% compress css %}
  File "/home/myuser/projects/venv/local/lib/python2.7/site-packages/django_compressor-1.2-py2.7.egg/compressor/contrib/jinja2ext.py", line 40, in _compress
    original_content = caller()
  File "./askbot/templates/meta/html_head_stylesheets.html", line 9, in template
    {{ skin.get_extra_css_link() }}
  File "/home/myuser/projects/venv/local/lib/python2.7/site-packages/Jinja2-2.7.1-py2.7.egg/jinja2/environment.py", line 397, in getattr
    return getattr(obj, attribute)
jinja2.exceptions.UndefinedError: 'skin' is undefined
11 years ago received badge Enthusiast
11 years ago asked a question tiny_mce editor does not fit the "edit group description" area

When you add a group and then try to edit the description tiny_mce editor opens in that area, but it does not fit, making the page look broken. Is this a known issue, any fixes?

11 years ago received badge Organizer (source)
11 years ago commented question 500 Error, Custom skin, "UndefinedError: 'skin' is undefined", nginx, gunicorn

actually after some time I don't always get it but sometimes :S so a page refresh either gives me "Internal Server Error" or it works, mysterious...

11 years ago asked a question 404 page google widget

In this 404.html template the following code does not seem to fill in with correct values

var GOOG_FIXURL_LANG = '{{ language_code }}';
var GOOG_FIXURL_SITE = '{{ site_url }}';

Am I forgetting to set up some variables somewhere? I set base url in askbot's settings page and LANGUAGE_CODE in settings.py

11 years ago received badge Editor (source)
11 years ago asked a question 500 Error, Custom skin, "UndefinedError: 'skin' is undefined", nginx, gunicorn

This is an error I get after some time starting server, I'm using memcached, gunicorn, nginx.

Can it be related to cache? Because I don't see it immediately after start, it works normally. I'm using a custom skin that I develop placed in myskins folder inside project root.

The traceback is as follows:

2013-12-02 11:14:55 [6068] [ERROR] Error handling request
Traceback (most recent call last):
  File "/opt/myenv/local/lib/python2.7/site-packages/gunicorn/workers/sync.py", line 131, in handle_request
    respiter = self.wsgi(environ, resp.start_response)
  File "/opt/myenv/local/lib/python2.7/site-packages/Django-1.5-py2.7.egg/django/core/handlers/wsgi.py", line 255, in __call__
    response = self.get_response(request)
  File "/opt/myenv/local/lib/python2.7/site-packages/Django-1.5-py2.7.egg/django/core/handlers/base.py", line 178, in get_response
    response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
  File "/opt/myenv/local/lib/python2.7/site-packages/Django-1.5-py2.7.egg/django/core/handlers/base.py", line 224, in handle_uncaught_exception
    return callback(request, **param_dict)
  File "/opt/myenv/local/lib/python2.7/site-packages/Django-1.5-py2.7.egg/django/utils/decorators.py", line 91, in _wrapped_view
    response = view_func(request, *args, **kwargs)
  File "/opt/myenv/local/lib/python2.7/site-packages/Django-1.5-py2.7.egg/django/views/defaults.py", line 41, in server_error
    return http.HttpResponseServerError(template.render(Context({})))
  File "/opt/myenv/local/lib/python2.7/site-packages/Coffin-0.3.8-py2.7.egg/coffin/template/__init__.py", line 55, in render
    return super(Template, self).render(**context)
  File "/opt/myenv/local/lib/python2.7/site-packages/Jinja2-2.7.1-py2.7.egg/jinja2/environment.py", line 969, in render
    return self.environment.handle_exception(exc_info, True)
  File "/opt/myenv/local/lib/python2.7/site-packages/Jinja2-2.7.1-py2.7.egg/jinja2/environment.py", line 742, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "/home/bitch/askbot_fromgit/myskins/mysite_skin/templates/500.html", line 1, in top-level template code
    {% extends "two_column_body.html" %}
  File "/home/bitch/askbot_fromgit/myskins/mysite_skin/templates/two_column_body.html", line 1, in top-level template code
    {% extends "base.html" %}
  File "/home/bitch/askbot_fromgit/myskins/mysite_skin/templates/base.html", line 27, in top-level template code
    {% include "meta/html_head_stylesheets.html" %}
  File "/home/bitch/askbot_fromgit/myskins/mysite_skin/templates/meta/html_head_stylesheets.html", line 7, in top-level template code
    {% compress css %}
  File "/opt/myenv/local/lib/python2.7/site-packages/django_compressor-1.2-py2.7.egg/compressor/contrib/jinja2ext.py", line 40, in _compress
    original_content = caller()
  File "/home/bitch/askbot_fromgit/myskins/mysite_skin/templates/meta/html_head_stylesheets.html", line 9, in template
    {{ skin.get_extra_css_link() }}
  File "/opt/myenv/local/lib/python2.7/site-packages/Jinja2-2.7.1-py2.7.egg/jinja2/environment.py", line 397, in getattr
    return getattr(obj, attribute)
UndefinedError: 'skin' is undefined