KeyError at /

"Unknown language code 'hu-hu'."
Request Method: GET
Request URL: http://csillagpont2013.reformatus.hu/
Django Version: 1.4.5
Exception Type: KeyError
Exception Value:
"Unknown language code 'hu-hu'."
Exception Location: /home/reformatus/csp2013/env/lib/python2.7/site-packages/django/utils/translation/__init__.py in get_language_info, line 165
Python Executable: /usr/bin/python
Python Version: 2.7.3
Python Path:
['/home/reformatus/csp2013/env/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg',
 '/home/reformatus/csp2013/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg',
 '/home/reformatus/csp2013/env/lib/python2.7/site-packages',
 '/home/reformatus/csp2013/env/lib/python2.7/site-packages/PIL',
 '/usr/lib/python2.7',
 '/usr/lib/python2.7/plat-linux2',
 '/usr/lib/python2.7/lib-tk',
 '/usr/lib/python2.7/lib-old',
 '/usr/lib/python2.7/lib-dynload',
 '/usr/local/lib/python2.7/dist-packages',
 '/usr/local/lib/python2.7/dist-packages/setuptools-0.6c11-py2.7.egg-info',
 '/usr/lib/python2.7/dist-packages',
 '/usr/lib/python2.7/dist-packages/PIL',
 '/usr/lib/python2.7/dist-packages/gtk-2.0',
 '/usr/lib/pymodules/python2.7',
 '/home/reformatus/csp2013/env/lib/python2.7/site-packages',
 '/home/reformatus/csp2013/esolportal',
 '/home/reformatus/csp2013',
 '/home/reformatus/csp2013/csillagpont']
Server time: kedd, 19 Már 2024 11:48:22 +0100

Error during template rendering

In template /home/reformatus/csp2013/csillagpont/templates/index.html, error at line 9

Unknown language code 'hu-hu'.

1 {% extends "layout/index.html" %}
2 {% load general_tags %}
3 {% load pagination_tags %}
4 {% load thumbnail %}
5 {% load url from future %}
6 {% load i18n %}
7
8 {% block content %}
9 {% get_language_info for LANGUAGE_CODE as lang %}
10 {% endblock %}
11

Traceback Switch to copy-and-paste view



Request information

GET

No GET data

POST

No POST data

FILES

No FILES data

No cookie data

META

Variable Value
mod_wsgi.listener_port
'80'
HTTP_REFERER
'http://csillagpont2015.reformatus.hu/2013'
SERVER_SOFTWARE
'Apache/2.2.22 (Ubuntu)'
SCRIPT_NAME
u''
mod_wsgi.handler_script
''
SERVER_SIGNATURE
'<address>Apache/2.2.22 (Ubuntu) Server at csillagpont2013.reformatus.hu Port 80</address>\n'
REQUEST_METHOD
'GET'
PATH_INFO
u'/'
SERVER_PROTOCOL
'HTTP/1.1'
QUERY_STRING
''
HTTP_USER_AGENT
'claudebot'
SERVER_NAME
'csillagpont2013.reformatus.hu'
REMOTE_ADDR
'3.235.199.19'
mod_wsgi.request_handler
'wsgi-script'
wsgi.url_scheme
'http'
PATH_TRANSLATED
'/home/reformatus/csp2013/csillagpont/csillagpont/wsgi.py/'
SERVER_PORT
'80'
wsgi.multiprocess
False
mod_wsgi.input_chunked
'0'
SERVER_ADDR
'192.168.9.54'
DOCUMENT_ROOT
'/home/reformatus/csp2013'
mod_wsgi.process_group
'csp2013.reformatus.hu'
SCRIPT_FILENAME
'/home/reformatus/csp2013/csillagpont/csillagpont/wsgi.py'
SERVER_ADMIN
'root@reformatus.hu'
wsgi.input
<mod_wsgi.Input object at 0xae490250>
HTTP_HOST
'csillagpont2013.reformatus.hu'
wsgi.multithread
True
mod_wsgi.callable_object
'application'
X-ESOLR-ORIGPATH
u'/'
REQUEST_URI
'/'
HTTP_ACCEPT
'*/*'
wsgi.version
(1, 1)
GATEWAY_INTERFACE
'CGI/1.1'
wsgi.run_once
False
wsgi.errors
<mod_wsgi.Log object at 0xad01df48>
REMOTE_PORT
'49694'
mod_wsgi.listener_host
''
mod_wsgi.version
(3, 3)
mod_wsgi.application_group
'csillagpont2013.reformatus.hu|'
mod_wsgi.script_reloading
'1'
wsgi.file_wrapper
''
CSRF_COOKIE
'4jzkddzqHXiDqPbnC3YDQwhD2IUgRcCI'

Settings

Using settings module csillagpont.settings

Setting Value
USE_L10N
True
HAYSTACK_SEARCH_ENGINE
'whoosh'
HAYSTACK_WHOOSH_PATH
'/home/reformatus/csp2013/csillagpont/csillagpont/whoosh_index'
CSRF_COOKIE_SECURE
False
LANGUAGE_CODE
'hu-HU'
ROOT_URLCONF
'csillagpont.urls'
MANAGERS
()
DEFAULT_CHARSET
'utf-8'
STATIC_ROOT
'/home/reformatus/csp2013/csillagpont/static'
USE_THOUSAND_SEPARATOR
False
ALLOWED_HOSTS
['*']
FORBIDDEN_SUBDOMAINS
('lap',
 'mutat',
 'view',
 'admin',
 'public',
 'static',
 'special',
 'hidden',
 'ftp',
 'mail')
MESSAGE_STORAGE
'django.contrib.messages.storage.fallback.FallbackStorage'
WSGI_APPLICATION
'csillagpont.wsgi.application'
FACEBOOK_APP_SECRET
u'********************'
SEND_BROKEN_LINK_EMAILS
False
URL_VALIDATOR_USER_AGENT
'Django/1.4.5 (https://www.djangoproject.com)'
STATICFILES_FINDERS
('django.contrib.staticfiles.finders.FileSystemFinder',
 'django.contrib.staticfiles.finders.AppDirectoriesFinder')
SESSION_COOKIE_DOMAIN
None
SESSION_COOKIE_NAME
'sessionid'
THUMBNAIL_ALIASES
{'': {'normal': {'crop': False, 'size': (500, 0)},
      'small': {'crop': True, 'size': (140, 140)},
      'wide': {'crop': False, 'size': (600, 0)}}}
ADMIN_FOR
()
TIME_INPUT_FORMATS
('%H:%M',)
DATABASES
{'default': {'ENGINE': 'django.db.backends.mysql',
             'HOST': '',
             'NAME': 'csillagpont',
             'OPTIONS': {'init_command': 'SET storage_engine=MYISAM'},
             'PASSWORD': u'********************',
             'PORT': '',
             'TEST_CHARSET': None,
             'TEST_COLLATION': None,
             'TEST_MIRROR': None,
             'TEST_NAME': None,
             'TIME_ZONE': 'Europe/Budapest',
             'USER': 'root'}}
KEY_PREFIX
u'********************'
FILE_UPLOAD_PERMISSIONS
None
FILE_UPLOAD_HANDLERS
('django.core.files.uploadhandler.MemoryFileUploadHandler',
 'django.core.files.uploadhandler.TemporaryFileUploadHandler')
DEFAULT_CONTENT_TYPE
'text/html'
APPEND_SLASH
True
FIRST_DAY_OF_WEEK
0
DATABASE_ROUTERS
[]
DEFAULT_PORTLET_WIDTH
290
YEAR_MONTH_FORMAT
'F Y'
STATICFILES_STORAGE
'django.contrib.staticfiles.storage.StaticFilesStorage'
CACHES
{'default': {'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache',
             'LOCATION': '/tmp/cache_csp/'}}
SERVER_EMAIL
'root@localhost'
SESSION_COOKIE_PATH
'/'
MIDDLEWARE_CLASSES
('django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.locale.LocaleMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'pagination.middleware.PaginationMiddleware',
 'esolportal.navigation.middleware.UrlRewriteMiddleware',
 'esolportal.common.middleware.SiteDetectionMiddleware')
USE_I18N
True
THOUSAND_SEPARATOR
','
SECRET_KEY
u'********************'
LANGUAGE_COOKIE_NAME
'django_language'
DEFAULT_INDEX_TABLESPACE
''
TRANSACTIONS_MANAGED
False
LOGGING_CONFIG
'django.utils.log.dictConfig'
TEMPLATE_LOADERS
('django.template.loaders.filesystem.Loader',
 'django.template.loaders.app_directories.Loader')
ADMIN_WYSIWYG_NAME
'ckeditor'
TEMPLATE_DEBUG
True
X_FRAME_OPTIONS
'SAMEORIGIN'
AUTHENTICATION_BACKENDS
('django.contrib.auth.backends.ModelBackend',)
HAYSTACK_CONNECTIONS
{'default': {'ENGINE': 'haystack.backends.whoosh_backend.WhooshEngine',
             'PATH': '/home/reformatus/csp2013/csillagpont/csillagpont/whoosh_index'}}
FORCE_SCRIPT_NAME
None
USE_X_FORWARDED_HOST
False
SUBDOMAIN_DIR
'lap'
SIGNING_BACKEND
'django.core.signing.TimestampSigner'
SESSION_COOKIE_SECURE
False
BASE_PATH
'/home/reformatus/csp2013/csillagpont'
CSRF_COOKIE_DOMAIN
None
FILE_CHARSET
'utf-8'
DEBUG
True
SESSION_FILE_PATH
None
VALID_VIDEO_EXTENSIONS
['.avi', '.mov', '.mpg', '.mpeg', '.mp4', '.vfw', '.xvid', '.dv', '.m4v']
DEFAULT_FILE_STORAGE
'django.core.files.storage.FileSystemStorage'
INSTALLED_APPS
('django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'guardian',
 'taggit',
 'mptt',
 'easy_thumbnails',
 'pagination',
 'south',
 'rest_framework',
 'form_utils',
 'haystack',
 'esolportal.common',
 'esolportal.content',
 'esolportal.layout',
 'esolportal.portlet',
 'esolportal.navigation',
 'esolportal.news',
 'esolportal.article',
 'esolportal.gallery',
 'esolportal.calendar',
 'video',
 'event',
 'siteadmin',
 'feedutil',
 'django_filters',
 'custom',
 'newsletter')
LANGUAGES
(('hu', u'Magyar'), ('en', u'English'), ('de', u'Deutsch'))
COMMENTS_ALLOW_PROFANITIES
False
STATICFILES_DIRS
('/home/reformatus/csp2013/csillagpont/templates/static',)
ESOLPORTAL_MENU_CSSCLASSES
(('', u'Norm\xe1l men\xfcpont'), ('light', u'Kiemelt men\xfcpont'))
PREPEND_WWW
False
SECURE_PROXY_SSL_HEADER
None
SESSION_COOKIE_HTTPONLY
True
FACEBOOK_APP_ID
'525871727452810'
DEBUG_PROPAGATE_EXCEPTIONS
False
TIME_FORMATS
('%H:%M',)
EMAIL_FILE_PATH
'/home/reformatus/csp2013/csillagpont/log/email'
MONTH_DAY_FORMAT
'F j'
LOGIN_URL
'/admin/login/'
SESSION_EXPIRE_AT_BROWSER_CLOSE
False
TIME_FORMAT
'P'
HAYSTACK_SITECONF
'custom.search_sites'
DATE_INPUT_FORMATS
('%Y-%m-%d',
 '%Y/%m/%d',
 '%Y.%m.%d.',
 '%Y. %m. %d.',
 '%Y.%m.%d',
 '%Y. %m. %d',
 '%Y %B %d',
 '%Y. %B %d.')
EMAIL_CONTACT
'istvan.farkas@gmail.com'
CSRF_COOKIE_NAME
'csrftoken'
EMAIL_HOST_PASSWORD
u'********************'
PASSWORD_RESET_TIMEOUT_DAYS
u'********************'
CACHE_MIDDLEWARE_ALIAS
'default'
SESSION_SAVE_EVERY_REQUEST
False
NUMBER_GROUPING
0
SESSION_ENGINE
'django.contrib.sessions.backends.db'
CSRF_FAILURE_VIEW
'django.views.csrf.csrf_failure'
CSRF_COOKIE_PATH
'/'
LOGIN_REDIRECT_URL
'/accounts/profile/'
FORBIDDEN_SLUGS
('lap', 'mutat', 'view', 'admin', 'public', 'static', 'special', 'hidden')
LOGGING
{'disable_existing_loggers': False,
 'filters': {'require_debug_false': {'()': 'django.utils.log.RequireDebugFalse'}},
 'handlers': {'console': {'class': 'logging.StreamHandler', 'level': 'DEBUG'},
              'mail_admins': {'class': 'django.utils.log.AdminEmailHandler',
                              'filters': ['require_debug_false'],
                              'level': 'ERROR'}},
 'loggers': {'django.request': {'handlers': ['mail_admins'],
                                'level': 'ERROR',
                                'propagate': True},
             'esolportal.debug': {'handlers': ['console'], 'level': 'DEBUG'}},
 'version': 1}
IGNORABLE_404_URLS
()
LOCALE_PATHS
()
TEMPLATE_STRING_IF_INVALID
''
LOGOUT_URL
'/accounts/logout/'
CACHE_TIMES
{'default': 30, 'forever': 120}
EMAIL_USE_TLS
False
TEMPLATE_DIRS
('/home/reformatus/csp2013/csillagpont/templates',)
MULTI_RSS_DEFAULT_VISIBLE
False
FIXTURE_DIRS
()
EMAIL_HOST
'localhost'
DATE_FORMAT
'N j, Y'
MEDIA_ROOT
'/home/reformatus/csp2013/csillagpont/data/'
DEFAULT_EXCEPTION_REPORTER_FILTER
'django.views.debug.SafeExceptionReporterFilter'
ADMINS
()
FORMAT_MODULE_PATH
None
DEFAULT_FROM_EMAIL
'webmaster@localhost'
REST_FRAMEWORK
{'FILTER_BACKEND': 'rest_framework.filters.DjangoFilterBackend'}
MEDIA_URL
'/data/'
DATETIME_FORMAT
'N j, Y, P'
EMAIL_SUBJECT_PREFIX
'[Django] '
SITE_ID
1
DISALLOWED_USER_AGENTS
()
ALLOWED_INCLUDE_ROOTS
()
DECIMAL_SEPARATOR
'.'
SHORT_DATE_FORMAT
'm/d/Y'
SITE_DOMAIN_NAME
'http://csillag.reformatus.hu'
TEST_RUNNER
'django.test.simple.DjangoTestSuiteRunner'
CACHE_MIDDLEWARE_KEY_PREFIX
u'********************'
TIME_ZONE
'Europe/Budapest'
FILE_UPLOAD_MAX_MEMORY_SIZE
2621440
EMAIL_BACKEND
'django.core.mail.backends.smtp.EmailBackend'
DEFAULT_TABLESPACE
''
TEMPLATE_CONTEXT_PROCESSORS
('django.contrib.auth.context_processors.auth',
 'django.core.context_processors.debug',
 'django.core.context_processors.i18n',
 'django.core.context_processors.media',
 'django.contrib.messages.context_processors.messages',
 'django.core.context_processors.request',
 'allauth.account.context_processors.account',
 'allauth.socialaccount.context_processors.socialaccount',
 'csillagpont.context_processors.common_elements')
SESSION_COOKIE_AGE
1209600
SETTINGS_MODULE
'csillagpont.settings'
USE_ETAGS
False
LANGUAGES_BIDI
('he', 'ar', 'fa')
FILE_UPLOAD_TEMP_DIR
None
INTERNAL_IPS
()
STATIC_URL
'/static/'
EMAIL_PORT
25
USE_TZ
False
SHORT_DATETIME_FORMAT
'm/d/Y P'
PASSWORD_HASHERS
u'********************'
ABSOLUTE_URL_OVERRIDES
{}
SUBDOMAINS_SUPPORTED
False
CACHE_MIDDLEWARE_SECONDS
600
ANONYMOUS_USER_ID
-1
DATETIME_INPUT_FORMATS
('%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M', '%Y-%m-%d')
EMAIL_HOST_USER
''
PROFANITIES_LIST
u'********************'

You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 500 page.