Closed mjptak closed 10 years ago
This is SO BIZARRE, I'm guessing this is a caching issue. :) Try setting CACHE_TIME=0
in your local_settings
, and I assume things will get better.
As for the key error... can you give any more info? The error page should have a full call stack.
KeyError at /update/videos/
u'pt_br'
Request Method:GETRequest URL:http://127.0.0.1:8008/update/videos/Django Version:1.4.2Exception Type:KeyErrorException Value:
u'pt_br'
Exception Location:/Users/markptak/kav11/kalite/../python-packages/collections.py in pop, line 143Python Executable:/usr/bin/pythonPython Version:2.7.2Python Path:
['/Users/markptak/kav11/kalite', '/Users/markptak/kav11/kalite/../', '/Users/markptak/kav11/kalite/../python-packages/', '/Users/markptak/kav11/kalite', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages', '/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload', '/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC', '/Library/Python/2.7/site-packages']
Server time:Sab, 22 Fev 2014 13:40:20 -0600 Traceback Switch to copy-and-paste viewhttp://127.0.0.1:8008/update/videos/#
- /Users/markptak/kav11/kalite/../python-packages/django/core/handlers/base.py in get_response 1.
response = callback(request,
_callback_args, *_callback_kwargs)
...
▶ Local vars http://127.0.0.1:8008/update/videos/#
/Users/markptak/kav11/kalite/shared/decorators/auth.py in wrapper_fn 1.
return handler(request, *args, **kwargs)
... ▶ Local vars http://127.0.0.1:8008/update/videos/#
/Users/markptak/kav11/kalite/securesync/devices/init.py in wrapper_fn 1.
return handler(request, *args, **kwargs)
... ▶ Local vars http://127.0.0.1:8008/update/videos/#
/Users/markptak/kav11/kalite/../python-packages/annoying/decorators.py in wrapper 1.
output = function(request, *args, **kwargs)
... ▶ Local vars http://127.0.0.1:8008/update/videos/#
/Users/markptak/kav11/kalite/updates/views.py in update_videos 1.
default_language_name =
lang_best_name(installed_languages.pop(request.session["default_language"]))
... ▶ Local vars http://127.0.0.1:8008/update/videos/#
/Users/markptak/kav11/kalite/../python-packages/collections.py in pop 1.
raise KeyError(key)
... ▶ Local vars http://127.0.0.1:8008/update/videos/#
Request informationGET
No GET data POST
No POST data FILES
No FILES data COOKIESVariableValue__utmz
'96992031.1383775809.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)'
csrftoken_central
'ZTZ5z97cGSJWUQp8lFBjcV4HcE1hYzNH'
_ga
'GA1.1.1551614650.1383775809'
_gauges_unique_year
'1'
sessionid
'f32b1df86b1e7204f009c09ff2cdb6f8'
__utma
'96992031.1551614650.1383775809.1383775809.1383775809.1'
csrftoken
'LqEods4ZVzzj4iP3L78DvddScMgwrPKv'
_gauges_unique
'1'
METAVariableValuewsgi.multiprocess
False
RUN_MAIN
'true'
HTTP_REFERER
'http://127.0.0.1:8008/easyadmin/'
VERSIONER_PYTHON_PREFER_32_BIT
'no'
SERVER_SOFTWARE
'WSGIServer/0.1 Python/2.7.2'
TERM_PROGRAM_VERSION
'309'
REQUEST_METHOD
'GET'
LOGNAME
'markptak'
USER
'markptak'
PATH
'/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/local/git/bin'
QUERY_STRING
''
HOME
'/Users/markptak'
DISPLAY
'/tmp/launch-Vjn0uo/org.macosforge.xquartz:0'
TERM_PROGRAM
'Apple_Terminal'
LANG
'en_US.UTF-8'
TERM
'xterm-256color'
SHELL
'/bin/bash'
HTTP_CONNECTION
'keep-alive'
HTTP_COOKIE
'utma=96992031.1551614650.1383775809.1383775809.1383775809.1; utmz=96992031.1383775809.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); _gauges_unique_year=1; _gauges_unique=1; csrftoken_central=ZTZ5z97cGSJWUQp8lFBjcV4HcE1hYzNH; _ga=GA1.1.1551614650.1383775809; csrftoken=LqEods4ZVzzj4iP3L78DvddScMgwrPKv; sessionid=f32b1df86b1e7204f009c09ff2cdb6f8'
SERVER_NAME
'1.0.0.127.in-addr.arpa'
VERSIONER_PYTHON_VERSION
'2.7'
SHLVL
'1'
MACOSX_DEPLOYMENT_TARGET
'10.8'
wsgi.url_scheme
'http'
_
'./manage.py'
SERVER_PORT
'8008'
PATH_INFO
u'/update/videos/'
CONTENT_LENGTH
''
TERM_SESSION_ID
'A7682903-59B3-4807-89AC-23B9ED7F47FE'
SSH_AUTH_SOCK
'/tmp/launch-LbfLro/Listeners'
wsgi.input
<socket._fileobject object at 0x108d41ed0>
Apple_PubSub_Socket_Render
'/tmp/launch-RwCWF0/Render'
HTTP_HOST
'127.0.0.1:8008'
SCRIPT_NAME
u''
wsgi.multithread
True
TMPDIR
'/var/folders/nd/ttdgb2913pngds607zl243jr0000gn/T/'
HTTP_ACCEPT
'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8'
wsgi.version
(1, 0)
HTTP_USER_AGENT
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.107 Safari/537.36'
GATEWAY_INTERFACE
'CGI/1.1'
wsgi.run_once
False
CSRF_COOKIE
'LqEods4ZVzzj4iP3L78DvddScMgwrPKv'
OLDPWD
'/Users/markptak/kav11'
REMOTE_ADDR
'127.0.0.1'
HTTP_ACCEPT_LANGUAGE
'en-US,en;q=0.8'
wsgi.errors
<open file '
__CF_USER_TEXT_ENCODING
'0x1F5:0:0'
Apple_Ubiquity_Message
'/tmp/launch-4NmluP/Apple_Ubiquity_Message'
PWD
'/Users/markptak/kav11/kalite'
SERVER_PROTOCOL
'HTTP/1.1'
DJANGO_SETTINGS_MODULE
'kalite.settings'
CONTENT_TYPE
'text/plain'
wsgi.file_wrapper
''
REMOTE_HOST
''
HTTP_ACCEPT_ENCODING
'gzip,deflate,sdch'
COMMAND_MODE
'unix2003'
SettingsUsing settings module kalite.settingsSettingValue CENTRAL_CONTACT_EMAIL
'info@learningequality.org'
USE_L10N
False
ROOT_UUID_NAMESPACE
UUID('a8f052c7-8790-5bed-ab15-fe2d3b1ede41')
USE_THOUSAND_SEPARATOR
False
BACKUP_THUMBNAIL_SOURCE
None
CSRF_COOKIE_SECURE
False
LANGUAGE_CODE
'en'
ROOT_URLCONF
'main.urls'
MANAGERS
(('KA Lite Team', 'errors@learningequality.org'),)
USER_LOG_SUMMARY_FREQUENCY
(1, 'months')
SYNCING_MAX_RECORDS_PER_REQUEST
100
DEFAULT_CHARSET
'utf-8'
SCRIPTS_PATH
'/Users/markptak/kav11/kalite/../scripts'
CENTRAL_SUBSCRIBE_URL
'http://adhocsync.us6.list-manage.com/subscribe/post?u=023b9af05922dfc7f47a4fffb&id=97a379de16'
CENTRAL_WIKI_URL
'http://kalitewiki.learningequality.org/'
CACHE_NAME
'file_based_cache'
CACHE_LOCATION
'/private/var/folders/nd/ttdgb2913pngds607zl243jr0000gn/T/kalite_web_cache_markptak/988c66f3c93c54c7299f78f3238287a97999837f/'
MESSAGE_STORAGE
'utils.django_utils.NoDuplicateMessagesSessionStorage'
EMAIL_SUBJECT_PREFIX
'[Django] '
SEND_BROKEN_LINK_EMAILS
False
URL_VALIDATOR_USER_AGENT
'Django/1.4.2 (https://www.djangoproject.com)'
STATICFILES_FINDERS
('django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder')
CRONSERVER_FREQUENCY
600
DATA_PATH
'/Users/markptak/kav11/kalite/static/data/'
FILE_UPLOAD_HANDLERS
('django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler')
SESSION_COOKIE_NAME
'sessionid'
CENTRAL_ADMIN_EMAIL
'errors@learningequality.org'
ADMIN_FOR
()
TIME_INPUT_FORMATS
('%H:%M:%S', '%H:%M')
DATABASES
{'default': {'ENGINE': 'django.db.backends.sqlite3', 'HOST': '', 'NAME': '/Users/markptak/kav11/kalite/database/data.sqlite', 'OPTIONS': {'timeout': 60}, 'PASSWORD': u'****', 'PORT': '', 'TEST_CHARSET': None, 'TEST_COLLATION': None, 'TEST_MIRROR': None, 'TEST_NAME': None, 'TIME_ZONE': None, 'USER': ''}}
KEY_PREFIX
u'****'
FILE_UPLOAD_PERMISSIONS
None
TIME_FORMAT
'P'
INSTALL_ADMIN_USERNAME
None
DEFAULT_CONTENT_TYPE
'text/html'
USE_MPLAYER
False
SYNCING_THROTTLE_WAIT_TIME
None
APPEND_SLASH
True
FIRST_DAY_OF_WEEK
0
DATABASE_ROUTERS
[]
PASSWORD_ITERATIONS_STUDENT
u'****'
YEAR_MONTH_FORMAT
'F Y'
STATICFILES_STORAGE
'django.contrib.staticfiles.storage.StaticFilesStorage'
CACHES
{'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}, 'file_based_cache': {'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache', 'LOCATION': '/private/var/folders/nd/ttdgb2913pngds607zl243jr0000gn/T/kalite_web_cache_markptak/988c66f3c93c54c7299f78f3238287a97999837f/', 'OPTIONS': {'MAX_ENTRIES': 10000}, 'TIMEOUT': 100000}, 'mem_cache': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache', 'LOCATION': 'unique-snowflake', 'OPTIONS': {'MAX_ENTRIES': 10000}, 'TIMEOUT': 100000}}
SERVER_EMAIL
'root@localhost'
SESSION_COOKIE_PATH
'/'
MIDDLEWARE_CLASSES
('django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'kalite.middleware.GetNextParam', 'django.middleware.csrf.CsrfViewMiddleware', 'facility.middleware.AuthFlags', 'facility.middleware.FacilityCheck', 'securesync.middleware.RegisteredCheck', 'securesync.middleware.DBCheck', 'kalite.i18n.middleware.SessionLanguage', 'facility.middleware.LockdownCheck', 'i18n.middleware.SessionLanguage', 'django.middleware.locale.LocaleMiddleware', 'django_snippets.profiling_middleware.ProfileMiddleware')
USE_I18N
True
THOUSAND_SEPARATOR
','
SECRET_KEY
u'****'
LANGUAGE_COOKIE_NAME
'django_language'
FILE_UPLOAD_TEMP_DIR
None
HTTPS_PROXY
None
TRANSACTIONS_MANAGED
False
LOGGING_CONFIG
'django.utils.log.dictConfig'
SYNC_SESSIONS_MAX_RECORDS
10
TEMPLATE_LOADERS
('django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader')
WSGI_APPLICATION
None
TEMPLATE_DEBUG
True
X_FRAME_OPTIONS
'SAMEORIGIN'
CSRF_COOKIE_NAME
'csrftoken'
LOGGING_LEVEL
10
FORCE_SCRIPT_NAME
None
USE_X_FORWARDED_HOST
False
USE_ETAGS
False
SIGNING_BACKEND
'django.core.signing.TimestampSigner'
SESSION_COOKIE_SECURE
False
ZERO_CONFIG
False
CACHE_TIME
100000
CSRF_COOKIE_DOMAIN
None
FILE_CHARSET
'utf-8'
DEBUG
True
LANG_LOOKUP_FILEPATH
'/Users/markptak/kav11/data/i18n/languagelookup.json'
SESSION_FILE_PATH
None
DEFAULT_FILE_STORAGE
'django.core.files.storage.FileSystemStorage'
INSTALLED_APPS
('django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.admin', 'django.contrib.humanize', 'django.contrib.messages', 'django.contrib.staticfiles', 'django_extensions', 'south', 'chronograph', 'django_cherrypy_wsgiserver', 'securesync', 'facility', 'config', 'main', 'control_panel', 'coachreports', 'khanload', 'updates', 'i18n', 'kalite', 'django_snippets', 'i18n', 'testing', 'testing.loadtesting')
LANGUAGES_BIDI
('he', 'ar', 'fa')
COMMENTS_ALLOW_PROFANITIES
False
STATIC_ROOT
'/Users/markptak/kav11/kalite/static/'
LOCKDOWN
False
STATICFILES_DIRS
()
HTTP_PROXY
None
PREPEND_WWW
False
SECURE_PROXY_SSL_HEADER
None
PASSWORD_ITERATIONS_STUDENT_SYNCED
u'****'
ENABLE_CLOCK_SET
False
SESSION_COOKIE_HTTPONLY
True
PASSWORD_CONSTRAINTS
u'****'
DEBUG_PROPAGATE_EXCEPTIONS
False
MONTH_DAY_FORMAT
'F j'
CENTRAL_DEPLOYMENT_EMAIL
'deployments@learningequality.org'
LOGIN_URL
'/accounts/login/'
SESSION_EXPIRE_AT_BROWSER_CLOSE
False
CHERRYPY_THREAD_COUNT
5
INSTALL_FACILITY_NAME
None
CENTRAL_SUPPORT_EMAIL
'support@learningequality.org'
DATE_INPUT_FORMATS
('%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', '%b %d %Y', '%b %d, %Y', '%d %b %Y', '%d %b, %Y', '%B %d %Y', '%B %d, %Y', '%d %B %Y', '%d %B, %Y')
AUTHENTICATION_BACKENDS
('django.contrib.auth.backends.ModelBackend',)
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.cached_db'
CONFIG_PACKAGE
[]
CSRF_FAILURE_VIEW
'django.views.csrf.csrf_failure'
CSRF_COOKIE_PATH
'/'
LOGIN_REDIRECT_URL
'/accounts/profile/'
DECIMAL_SEPARATOR
'.'
IGNORABLE_404_URLS
()
LOCALE_PATHS
('/Users/markptak/kav11/locale/',)
TEMPLATE_STRING_IF_INVALID
''
DISALLOWED_USER_AGENTS
()
LOGOUT_URL
'/accounts/logout/'
EMAIL_USE_TLS
False
CENTRAL_SERVER
False
FIXTURE_DIRS
()
EMAIL_HOST
'localhost'
DATE_FORMAT
'N j, Y'
SECURESYNC_PROTOCOL
'http'
LOGGING
{'disable_existing_loggers': False, 'filters': {'require_debug_false': {'()': 'django.utils.log.RequireDebugFalse'}}, 'handlers': {'mail_admins': {'class': 'django.utils.log.AdminEmailHandler', 'filters': ['require_debug_false'], 'level': 'ERROR'}}, 'loggers': {'django.request': {'handlers': ['mail_admins'], 'level': 'ERROR', 'propagate': True}}, 'version': 1}
MEDIA_ROOT
'/Users/markptak/kav11/kalite/media/'
AUTO_LOAD_TEST
False
DEFAULT_EXCEPTION_REPORTER_FILTER
'django.views.debug.SafeExceptionReporterFilter'
ADMINS
(('KA Lite Team', 'errors@learningequality.org'),)
FORMAT_MODULE_PATH
None
DEFAULT_FROM_EMAIL
'webmaster@localhost'
CENTRAL_DEV_EMAIL
'dev@learningequality.org'
MEDIA_URL
'/media/'
DATETIME_FORMAT
'N j, Y, P'
TEMPLATE_DIRS
('/Users/markptak/kav11/kalite/templates/',)
LOG
<logging.Logger object at 0x106147210>
CENTRAL_INFO_EMAIL
'info@learningequality.org'
ALLOWED_INCLUDE_ROOTS
()
INSTALL_ADMIN_PASSWORD
u'****'
SHORT_DATE_FORMAT
'm/d/Y'
PRODUCTION_PORT
8008
PASSWORD_ITERATIONS_TEACHER_SYNCED
u'****'
TEST_RUNNER
'kalite.testing.testrunner.KALiteTestRunner'
DATA_PATH_SECURE
'/Users/markptak/kav11/data/'
CACHE_MIDDLEWARE_KEY_PREFIX
u'****'
TIME_ZONE
None
FILE_UPLOAD_MAX_MEMORY_SIZE
2621440
CENTRAL_SERVER_DOMAIN
'adhocsync.com'
EMAIL_BACKEND
'django.core.mail.backends.smtp.EmailBackend'
USER_LOG_MAX_RECORDS_PER_USER
1
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', 'main.custom_context_processors.custom', 'i18n.custom_context_processors.languages', 'i18n.custom_context_processors.languages')
CONTENT_ROOT
'/Users/markptak/kav11/content/'
PROJECT_PATH
'/Users/markptak/kav11/kalite/'
PASSWORD_ITERATIONS_TEACHER
u'****'
SESSION_COOKIE_AGE
1209600
SETTINGS_MODULE
'kalite.settings'
CENTRAL_SERVER_HOST
'kalite.learningequality.org:7007'
CONTENT_URL
'/content/'
BACKUP_VIDEO_SOURCE
None
LANGUAGES
set([(u'aa', u'Afar'), (u'ab', u'Abkhaz'), (u'ae', u'Avestan'), (u'af', u'Afrikaans'), (u'ak', u'Akan'), (u'aka', u'Akan'), (u'am', u'Amharic'), (u'an', u'Aragonese'), (u'ar', u'Arabic'), (u'as', u'Assamese'), (u'av', u'Avaric'), (u'ay', u'Aymara'), (u'az', u'Azerbaijani'), (u'ba', u'Bashkir'), (u'be', u'Belarusian'), (u'bg', u'Bulgarian'), (u'bh', u'Bihari'), (u'bi', u'Bislama'), (u'bm', u'Bambara'), (u'bn', u'Bengali'), (u'bo', u'Tibetan Standard, Tibetan, Central'), (u'br', u'Breton'), (u'bs', u'Bosnian'), (u'bug', u'Buginese'), (u'ca', u'Catalan; Valencian'), (u'ce', u'Chechen'), (u'ceb', u'Cebuano'), (u'ch', u'Chamorro'), (u'cho', u'Choctaw'), (u'co', u'Corsican'), (u'cr', u'Cree'), (u'cs', u'Czech'), (u'cu', u'Old Church Slavonic, Church Slavic, Church Slavonic, Old Bulgarian, Old Slavonic'), (u'cv', u'Chuvash'), (u'cy', u'Welsh'), (u'da', u'Danish'), (u'de', u'German'), (u'dv', u'Divehi; Dhivehi; Maldivian;'), (u'ee', u'Ewe'), (u'efi', u'Efik'), (u'el', u'Greek, Modern'), (u'en', u'English'), (u'en_gb', u'English, Britain'), (u'en_pt', u'English, Pirate'), (u'eo', u'Esperanto'), (u'es', u'Spanish; Castilian'), (u'es_ar', u'Spanish, Argentina'), (u'es_es', u'Spanish, Spain'), (u'es_mx', u'Spanish, Mexico'), (u'es_ni', u'Spanish, Nicaraguan'), (u'et', u'Estonian'), (u'eu', u'Basque'), (u'fa', u'Persian'), (u'ff', u'Fula; Fulah; Pulaar; Pular'), (u'fi', u'Finnish'), (u'fil', u'Filipino'), (u'fj', u'Fijian'), (u'fo', u'Faroese'), (u'fr', u'French'), (u'fr_ca', u'French, Canada'), (u'ful', u'Fula'), (u'fy', u'Western Frisian'), (u'fy_nl', u'Frisian'), (u'ga', u'Irish'), (u'gd', u'Scottish Gaelic; Gaelic'), (u'gl', u'Galician'), (u'gn', u'Guaran\xed'), (u'gu', u'Gujarati'), (u'gv', u'Manx'), (u'ha', u'Hausa'), (u'hau', u'Hausa'), (u'he', u'Hebrew (modern)'), (u'hi', u'Hindi'), (u'ho', u'Hiri Motu'), (u'hr', u'Croatian'), (u'ht', u'Haitian; Haitian Creole'), (u'hu', u'Hungarian'), (u'hy', u'Armenian'), (u'hz', u'Herero'), (u'ia', u'Interlingua'), (u'ibo', u'Igbo'), (u'id', u'Indonesian'), (u'ie', u'Interlingue'), (u'ig', u'Igbo'), (u'ii', u'Nuosu'), (u'ik', u'Inupiaq'), (u'io', u'Ido'), (u'is', u'Icelandic'), (u'it', u'Italian'), (u'iu', u'Inuktitut'), (u'ja', u'Japanese'), (u'jv', u'Javanese'), (u'ka', u'Georgian'), (u'kg', u'Kongo'), (u'ki', u'Kikuyu, Gikuyu'), (u'kik', u'Kikuyu'), (u'kj', u'Kwanyama, Kuanyama'), (u'kk', u'Kazakh'), (u'kl', u'Kalaallisut, Greenlandic'), (u'km', u'Khmer'), (u'kn', u'Kannada'), (u'ko', u'Korean'), (u'kon', u'Kongo'), (u'kr', u'Kanuri'), (u'ks', u'Kashmiri'), (u'ku', u'Kurdish'), (u'kv', u'Komi'), (u'kw', u'Cornish'), (u'ky', u'Kirghiz, Kyrgyz'), (u'la', u'Latin'), (u'lb', u'Luxembourgish, Letzeburgesch'), (u'lg', u'Luganda'), (u'li', u'Limburgish, Limburgan, Limburger'), (u'lin', u'Lingala'), (u'ln', u'Lingala'), (u'lo', u'Lao'), (u'lt', u'Lithuanian'), (u'lu', u'Luba-Katanga'), (u'lv', u'Latvian'), (u'mg', u'Malagasy'), (u'mh', u'Marshallese'), (u'mi', u'M\u0101ori'), (u'mk', u'Macedonian'), (u'ml', u'Malayalam'), (u'mlg', u'Malagasy'), (u'mn', u'Mongolian'), (u'mr', u'Marathi (Mar\u0101\u1e6dh\u012b)'), (u'ms', u'Malay'), (u'mt', u'Maltese'), (u'my', u'Burmese'), (u'na', u'Nauru'), (u'nb', u'Norwegian Bokm\xe5l'), (u'nd', u'North Ndebele'), (u'ne', u'Nepali'), (u'ne_np', u'Nepali'), (u'ng', u'Ndonga'), (u'nl', u'Dutch'), (u'nn', u'Norwegian Nynorsk'), (u'no', u'Norwegian'), (u'nr', u'South Ndebele'), (u'nv', u'Navajo, Navaho'), (u'ny', u'Chichewa; Chewa; Nyanja'), (u'nya', u'Chichewa'), (u'oc', u'Occitan'), (u'oj', u'Ojibwe, Ojibwa'), (u'oji', u'Ojibwe'), (u'om', u'Oromo'), (u'or', u'Oriya'), (u'os', u'Ossetian, Ossetic'), (u'pa', u'Panjabi, Punjabi'), (u'pi', u'P\u0101li'), (u'pl', u'Polish'), (u'pnb', u'Punjabi'), (u'ps', u'Pashto, Pushto'), (u'pt', u'Portuguese'), (u'pt_br', u'Portuguese, Brazil'), (u'pt_pt', u'Portuguese, Portugal'), (u'qu', u'Quechua'), (u'que', u'Quechua'), (u'rm', u'Romansh'), (u'rn', u'Kirundi'), (u'ro', u'Romanian, Moldavian, Moldovan'), (u'ru', u'Russian'), (u'rw', u'Kinyarwanda'), (u'sa', u'Sanskrit (Sa\u1e41sk\u1e5bta)'), (u'sc', u'Sardinian'), (u'sd', u'Sindhi'), (u'se', u'Northern Sami'), (u'sg', u'Sango'), (u'si', u'Sinhala, Sinhalese'), (u'sk', u'Slovak'), (u'sl', u'Slovene'), (u'sm', u'Samoan'), (u'sn', u'Shona'), (u'sna', u'Shona'), (u'so', u'Somali'), (u'som', u'Somali'), (u'sot', u'Southern Sotho'), (u'sq', u'Albanian'), (u'sr', u'Serbian'), (u'sr_cs', u'Serbian, Cyrillic'), (u'sr_latn', u'Serbian, Latin'), (u'ss', u'Swati'), (u'st', u'Southern Sotho'), (u'su', u'Sundanese'), (u'sv', u'Swedish'), (u'sv_se', u'Swedish'), (u'sw', u'Swahili'), (u'swa', u'Swahili'), (u'ta', u'Tamil'), (u'te', u'Telugu'), (u'tg', u'Tajik'), (u'th', u'Thai'), (u'ti', u'Tigrinya'), (u'tir', u'Tigrinya'), (u'tk', u'Turkmen'), (u'tl', u'Tagalog'), (u'tn', u'Tswana'), (u'to', u'Tonga (Tonga Islands)'), (u'tr', u'Turkish'), (u'ts', u'Tsonga'), (u'tsn', u'Tswana'), (u'tt', u'Tatar'), (u'tw', u'Twi'), (u'ty', u'Tahitian'), (u'ug', u'Uighur, Uyghur'), (u'uk', u'Ukrainian'), (u'ur', u'Urdu'), (u'ur_pk', u'Swedish'), (u'uz', u'Uzbek'), (u've', u'Venda'), (u'vi', u'Vietnamese'), (u'vo', u'Volap\xfck'), (u'wa', u'Walloon'), (u'wo', u'Wolof'), (u'wol', u'Wolof'), (u'xh', u'Xhosa'), (u'xho', u'Xhosa'), (u'yi', u'Yiddish'), (u'yo', u'Yoruba'), (u'yor', u'Yoruba'), (u'za', u'Zhuang, Chuang'), (u'zh', u'Chinese'), (u'zh_cn', u'Chinese, Simplified'), (u'zh_tw', u'Chinese, Traditional'), (u'zul', u'Zulu')])
DEFAULT_INDEX_TABLESPACE
''
INTERNAL_IPS
('127.0.0.1',)
STATIC_URL
'/static/'
EMAIL_PORT
25
USE_TZ
False
SHORT_DATETIME_FORMAT
'm/d/Y P'
SESSION_COOKIE_DOMAIN
None
PASSWORD_HASHERS
u'****'
ABSOLUTE_URL_OVERRIDES
{}
CENTRAL_FROM_EMAIL
'kalite@adhocsync.com'
DEFAULT_ENCODING
'utf-8'
CACHE_MIDDLEWARE_SECONDS
600
PROXY_PORT
None
DATETIME_INPUT_FORMATS
('%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M:%S.%f', '%Y-%m-%d %H:%M', '%Y-%m-%d', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M:%S.%f', '%m/%d/%Y %H:%M', '%m/%d/%Y', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M:%S.%f', '%m/%d/%y %H:%M', '%m/%d/%y')
TESTS_TO_SKIP
['long']
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.
On Sat, Feb 22, 2014 at 1:44 PM, Ben Cipollini notifications@github.comwrote:
This is SO BIZARRE, I'm guessing this is a caching issue. :) Try setting CACHE_TIME=0 in your local_settings, and I assume things will get better.
As for the key error... can you give any more info? The error page should have a full call stack.
— Reply to this email directly or view it on GitHubhttps://github.com/learningequality/ka-lite/issues/1600#issuecomment-35812310 .
Someday I'm gonna figure out what you guys mean by the full stack.
On Sat, Feb 22, 2014 at 1:48 PM, mark ptak mjptak@gmail.com wrote:
KeyError at /update/videos/
u'pt_br'
Request Method:GET Request URL:http://127.0.0.1:8008/update/videos/ Django Version: 1.4.2Exception Type: KeyErrorException Value:
u'pt_br'
Exception Location:/Users/markptak/kav11/kalite/../python-packages/collections.py in pop, line 143 Python Executable:/usr/bin/python Python Version:2.7.2Python Path:
['/Users/markptak/kav11/kalite', '/Users/markptak/kav11/kalite/../', '/Users/markptak/kav11/kalite/../python-packages/', '/Users/markptak/kav11/kalite', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages', '/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload', '/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC', '/Library/Python/2.7/site-packages']
Server time: Sab, 22 Fev 2014 13:40:20 -0600 Traceback Switch to copy-and-paste viewhttp://127.0.0.1:8008/update/videos/#
- /Users/markptak/kav11/kalite/../python-packages/django/core/handlers/base.py in get_response 1.
response = callback(request, *callback_args, **callback_kwargs) ...
▶ Local vars http://127.0.0.1:8008/update/videos/#
/Users/markptak/kav11/kalite/shared/decorators/auth.py in wrapper_fn 1.
return handler(request, *args, **kwargs)
... ▶ Local vars http://127.0.0.1:8008/update/videos/#
/Users/markptak/kav11/kalite/securesync/devices/init.py in wrapper_fn 1.
return handler(request, *args, **kwargs)
...
▶ Local vars http://127.0.0.1:8008/update/videos/
/Users/markptak/kav11/kalite/../python-packages/annoying/decorators.py in wrapper 1.
output = function(request, *args, **kwargs)
... ▶ Local vars http://127.0.0.1:8008/update/videos/#
/Users/markptak/kav11/kalite/updates/views.py in update_videos 1.
default_language_name = lang_best_name(installed_languages.pop(request.session["default_language"]))
... ▶ Local vars http://127.0.0.1:8008/update/videos/#
/Users/markptak/kav11/kalite/../python-packages/collections.py in pop 1.
raise KeyError(key)
... ▶ Local vars http://127.0.0.1:8008/update/videos/#
Request informationGET
No GET data POST
No POST data FILES
No FILES data COOKIES VariableValue __utmz
'96992031.1383775809.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)'
csrftoken_central
'ZTZ5z97cGSJWUQp8lFBjcV4HcE1hYzNH'
_ga
'GA1.1.1551614650.1383775809'
_gauges_unique_year
'1'
sessionid
'f32b1df86b1e7204f009c09ff2cdb6f8'
__utma
'96992031.1551614650.1383775809.1383775809.1383775809.1'
csrftoken
'LqEods4ZVzzj4iP3L78DvddScMgwrPKv'
_gauges_unique
'1'
META VariableValue wsgi.multiprocess
False
RUN_MAIN
'true'
HTTP_REFERER
'http://127.0.0.1:8008/easyadmin/'
VERSIONER_PYTHON_PREFER_32_BIT
'no'
SERVER_SOFTWARE
'WSGIServer/0.1 Python/2.7.2'
TERM_PROGRAM_VERSION
'309'
REQUEST_METHOD
'GET'
LOGNAME
'markptak'
USER
'markptak'
PATH
'/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/local/git/bin'
QUERY_STRING
''
HOME
'/Users/markptak'
DISPLAY
'/tmp/launch-Vjn0uo/org.macosforge.xquartz:0'
TERM_PROGRAM
'Apple_Terminal'
LANG
'en_US.UTF-8'
TERM
'xterm-256color'
SHELL
'/bin/bash'
HTTP_CONNECTION
'keep-alive'
HTTP_COOKIE
'utma=96992031.1551614650.1383775809.1383775809.1383775809.1; utmz=96992031.1383775809.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); _gauges_unique_year=1; _gauges_unique=1; csrftoken_central=ZTZ5z97cGSJWUQp8lFBjcV4HcE1hYzNH; _ga=GA1.1.1551614650.1383775809; csrftoken=LqEods4ZVzzj4iP3L78DvddScMgwrPKv; sessionid=f32b1df86b1e7204f009c09ff2cdb6f8'
SERVER_NAME
'1.0.0.127.in-addr.arpa'
VERSIONER_PYTHON_VERSION
'2.7'
SHLVL
'1'
MACOSX_DEPLOYMENT_TARGET
'10.8'
wsgi.url_scheme
'http'
_
'./manage.py'
SERVER_PORT
'8008'
PATH_INFO
u'/update/videos/'
CONTENT_LENGTH
''
TERM_SESSION_ID
'A7682903-59B3-4807-89AC-23B9ED7F47FE'
SSH_AUTH_SOCK
'/tmp/launch-LbfLro/Listeners'
wsgi.input
<socket._fileobject object at 0x108d41ed0>
Apple_PubSub_Socket_Render
'/tmp/launch-RwCWF0/Render'
HTTP_HOST
'127.0.0.1:8008'
SCRIPT_NAME
u''
wsgi.multithread
True
TMPDIR
'/var/folders/nd/ttdgb2913pngds607zl243jr0000gn/T/'
HTTP_ACCEPT
'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8'
wsgi.version
(1, 0)
HTTP_USER_AGENT
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.107 Safari/537.36'
GATEWAY_INTERFACE
'CGI/1.1'
wsgi.run_once
False
CSRF_COOKIE
'LqEods4ZVzzj4iP3L78DvddScMgwrPKv'
OLDPWD
'/Users/markptak/kav11'
REMOTE_ADDR
'127.0.0.1'
HTTP_ACCEPT_LANGUAGE
'en-US,en;q=0.8'
wsgi.errors
<open file '
', mode 'w' at 0x105cab270> __CF_USER_TEXT_ENCODING
'0x1F5:0:0'
Apple_Ubiquity_Message
'/tmp/launch-4NmluP/Apple_Ubiquity_Message'
PWD
'/Users/markptak/kav11/kalite'
SERVER_PROTOCOL
'HTTP/1.1'
DJANGO_SETTINGS_MODULE
'kalite.settings'
CONTENT_TYPE
'text/plain'
wsgi.file_wrapper
''
REMOTE_HOST
''
HTTP_ACCEPT_ENCODING
'gzip,deflate,sdch'
COMMAND_MODE
'unix2003'
Settings Using settings module kalite.settings SettingValue CENTRAL_CONTACT_EMAIL
'info@learningequality.org'
USE_L10N
False
ROOT_UUID_NAMESPACE
UUID('a8f052c7-8790-5bed-ab15-fe2d3b1ede41')
USE_THOUSAND_SEPARATOR
False
BACKUP_THUMBNAIL_SOURCE
None
CSRF_COOKIE_SECURE
False
LANGUAGE_CODE
'en'
ROOT_URLCONF
'main.urls'
MANAGERS
(('KA Lite Team', 'errors@learningequality.org'),)
USER_LOG_SUMMARY_FREQUENCY
(1, 'months')
SYNCING_MAX_RECORDS_PER_REQUEST
100
DEFAULT_CHARSET
'utf-8'
SCRIPTS_PATH
'/Users/markptak/kav11/kalite/../scripts'
CENTRAL_SUBSCRIBE_URL
'http://adhocsync.us6.list-manage.com/subscribe/post?u=023b9af05922dfc7f47a4fffb&id=97a379de16 http://adhocsync.us6.list-manage.com/subscribe/post?u=023b9af05922dfc7f47a4fffb&id=97a379de16'
CENTRAL_WIKI_URL
'http://kalitewiki.learningequality.org/'
CACHE_NAME
'file_based_cache'
CACHE_LOCATION
'/private/var/folders/nd/ttdgb2913pngds607zl243jr0000gn/T/kalite_web_cache_markptak/988c66f3c93c54c7299f78f3238287a97999837f/'
MESSAGE_STORAGE
'utils.django_utils.NoDuplicateMessagesSessionStorage'
EMAIL_SUBJECT_PREFIX
'[Django] '
SEND_BROKEN_LINK_EMAILS
False
URL_VALIDATOR_USER_AGENT
'Django/1.4.2 (https://www.djangoproject.com)'
STATICFILES_FINDERS
('django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder')
CRONSERVER_FREQUENCY
600
DATA_PATH
'/Users/markptak/kav11/kalite/static/data/'
FILE_UPLOAD_HANDLERS
('django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler')
SESSION_COOKIE_NAME
'sessionid'
CENTRAL_ADMIN_EMAIL
'errors@learningequality.org'
ADMIN_FOR
()
TIME_INPUT_FORMATS
('%H:%M:%S', '%H:%M')
DATABASES
{'default': {'ENGINE': 'django.db.backends.sqlite3', 'HOST': '', 'NAME': '/Users/markptak/kav11/kalite/database/data.sqlite', 'OPTIONS': {'timeout': 60}, 'PASSWORD': u'****', 'PORT': '', 'TEST_CHARSET': None, 'TEST_COLLATION': None, 'TEST_MIRROR': None, 'TEST_NAME': None, 'TIME_ZONE': None, 'USER': ''}}
KEY_PREFIX
u'****'
FILE_UPLOAD_PERMISSIONS
None
TIME_FORMAT
'P'
INSTALL_ADMIN_USERNAME
None
DEFAULT_CONTENT_TYPE
'text/html'
USE_MPLAYER
False
SYNCING_THROTTLE_WAIT_TIME
None
APPEND_SLASH
True
FIRST_DAY_OF_WEEK
0
DATABASE_ROUTERS
[]
PASSWORD_ITERATIONS_STUDENT
u'****'
YEAR_MONTH_FORMAT
'F Y'
STATICFILES_STORAGE
'django.contrib.staticfiles.storage.StaticFilesStorage'
CACHES
{'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}, 'file_based_cache': {'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache', 'LOCATION': '/private/var/folders/nd/ttdgb2913pngds607zl243jr0000gn/T/kalite_web_cache_markptak/988c66f3c93c54c7299f78f3238287a97999837f/', 'OPTIONS': {'MAX_ENTRIES': 10000}, 'TIMEOUT': 100000}, 'mem_cache': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache', 'LOCATION': 'unique-snowflake', 'OPTIONS': {'MAX_ENTRIES': 10000}, 'TIMEOUT': 100000}}
SERVER_EMAIL
'root@localhost'
SESSION_COOKIE_PATH
'/'
MIDDLEWARE_CLASSES
('django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'kalite.middleware.GetNextParam', 'django.middleware.csrf.CsrfViewMiddleware', 'facility.middleware.AuthFlags', 'facility.middleware.FacilityCheck', 'securesync.middleware.RegisteredCheck', 'securesync.middleware.DBCheck', 'kalite.i18n.middleware.SessionLanguage', 'facility.middleware.LockdownCheck', 'i18n.middleware.SessionLanguage', 'django.middleware.locale.LocaleMiddleware', 'django_snippets.profiling_middleware.ProfileMiddleware')
USE_I18N
True
THOUSAND_SEPARATOR
','
SECRET_KEY
u'****'
LANGUAGE_COOKIE_NAME
'django_language'
FILE_UPLOAD_TEMP_DIR
None
HTTPS_PROXY
None
TRANSACTIONS_MANAGED
False
LOGGING_CONFIG
'django.utils.log.dictConfig'
SYNC_SESSIONS_MAX_RECORDS
10
TEMPLATE_LOADERS
('django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader')
WSGI_APPLICATION
None
TEMPLATE_DEBUG
True
X_FRAME_OPTIONS
'SAMEORIGIN'
CSRF_COOKIE_NAME
'csrftoken'
LOGGING_LEVEL
10
FORCE_SCRIPT_NAME
None
USE_X_FORWARDED_HOST
False
USE_ETAGS
False
SIGNING_BACKEND
'django.core.signing.TimestampSigner'
SESSION_COOKIE_SECURE
False
ZERO_CONFIG
False
CACHE_TIME
100000
CSRF_COOKIE_DOMAIN
None
FILE_CHARSET
'utf-8'
DEBUG
True
LANG_LOOKUP_FILEPATH
'/Users/markptak/kav11/data/i18n/languagelookup.json'
SESSION_FILE_PATH
None
DEFAULT_FILE_STORAGE
'django.core.files.storage.FileSystemStorage'
INSTALLED_APPS
('django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.admin', 'django.contrib.humanize', 'django.contrib.messages', 'django.contrib.staticfiles', 'django_extensions', 'south', 'chronograph', 'django_cherrypy_wsgiserver', 'securesync', 'facility', 'config', 'main', 'control_panel', 'coachreports', 'khanload', 'updates', 'i18n', 'kalite', 'django_snippets', 'i18n', 'testing', 'testing.loadtesting')
LANGUAGES_BIDI
('he', 'ar', 'fa')
COMMENTS_ALLOW_PROFANITIES
False
STATIC_ROOT
'/Users/markptak/kav11/kalite/static/'
LOCKDOWN
False
STATICFILES_DIRS
()
HTTP_PROXY
None
PREPEND_WWW
False
SECURE_PROXY_SSL_HEADER
None
PASSWORD_ITERATIONS_STUDENT_SYNCED
u'****'
ENABLE_CLOCK_SET
False
SESSION_COOKIE_HTTPONLY
True
PASSWORD_CONSTRAINTS
u'****'
DEBUG_PROPAGATE_EXCEPTIONS
False
MONTH_DAY_FORMAT
'F j'
CENTRAL_DEPLOYMENT_EMAIL
'deployments@learningequality.org'
LOGIN_URL
'/accounts/login/'
SESSION_EXPIRE_AT_BROWSER_CLOSE
False
CHERRYPY_THREAD_COUNT
5
INSTALL_FACILITY_NAME
None
CENTRAL_SUPPORT_EMAIL
'support@learningequality.org'
DATE_INPUT_FORMATS
('%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', '%b %d %Y', '%b %d, %Y', '%d %b %Y', '%d %b, %Y', '%B %d %Y', '%B %d, %Y', '%d %B %Y', '%d %B, %Y')
AUTHENTICATION_BACKENDS
('django.contrib.auth.backends.ModelBackend',)
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.cached_db'
CONFIG_PACKAGE
[]
CSRF_FAILURE_VIEW
'django.views.csrf.csrf_failure'
CSRF_COOKIE_PATH
'/'
LOGIN_REDIRECT_URL
'/accounts/profile/'
DECIMAL_SEPARATOR
'.'
IGNORABLE_404_URLS
()
LOCALE_PATHS
('/Users/markptak/kav11/locale/',)
TEMPLATE_STRING_IF_INVALID
''
DISALLOWED_USER_AGENTS
()
LOGOUT_URL
'/accounts/logout/'
EMAIL_USE_TLS
False
CENTRAL_SERVER
False
FIXTURE_DIRS
()
EMAIL_HOST
'localhost'
DATE_FORMAT
'N j, Y'
SECURESYNC_PROTOCOL
'http'
LOGGING
{'disable_existing_loggers': False, 'filters': {'require_debug_false': {'()': 'django.utils.log.RequireDebugFalse'}}, 'handlers': {'mail_admins': {'class': 'django.utils.log.AdminEmailHandler', 'filters': ['require_debug_false'], 'level': 'ERROR'}}, 'loggers': {'django.request': {'handlers': ['mail_admins'], 'level': 'ERROR', 'propagate': True}}, 'version': 1}
MEDIA_ROOT
'/Users/markptak/kav11/kalite/media/'
AUTO_LOAD_TEST
False
DEFAULT_EXCEPTION_REPORTER_FILTER
'django.views.debug.SafeExceptionReporterFilter'
ADMINS
(('KA Lite Team', 'errors@learningequality.org'),)
FORMAT_MODULE_PATH
None
DEFAULT_FROM_EMAIL
'webmaster@localhost'
CENTRAL_DEV_EMAIL
'dev@learningequality.org'
MEDIA_URL
'/media/'
DATETIME_FORMAT
'N j, Y, P'
TEMPLATE_DIRS
('/Users/markptak/kav11/kalite/templates/',)
LOG
<logging.Logger object at 0x106147210>
CENTRAL_INFO_EMAIL
'info@learningequality.org'
ALLOWED_INCLUDE_ROOTS
()
INSTALL_ADMIN_PASSWORD
u'****'
SHORT_DATE_FORMAT
'm/d/Y'
PRODUCTION_PORT
8008
PASSWORD_ITERATIONS_TEACHER_SYNCED
u'****'
TEST_RUNNER
'kalite.testing.testrunner.KALiteTestRunner'
DATA_PATH_SECURE
'/Users/markptak/kav11/data/'
CACHE_MIDDLEWARE_KEY_PREFIX
u'****'
TIME_ZONE
None
FILE_UPLOAD_MAX_MEMORY_SIZE
2621440
CENTRAL_SERVER_DOMAIN
'adhocsync.com'
EMAIL_BACKEND
'django.core.mail.backends.smtp.EmailBackend'
USER_LOG_MAX_RECORDS_PER_USER
1
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', 'main.custom_context_processors.custom', 'i18n.custom_context_processors.languages', 'i18n.custom_context_processors.languages')
CONTENT_ROOT
'/Users/markptak/kav11/content/'
PROJECT_PATH
'/Users/markptak/kav11/kalite/'
PASSWORD_ITERATIONS_TEACHER
u'****'
SESSION_COOKIE_AGE
1209600
SETTINGS_MODULE
'kalite.settings'
CENTRAL_SERVER_HOST
'kalite.learningequality.org:7007'
CONTENT_URL
'/content/'
BACKUP_VIDEO_SOURCE
None
LANGUAGES
set([(u'aa', u'Afar'), (u'ab', u'Abkhaz'), (u'ae', u'Avestan'), (u'af', u'Afrikaans'), (u'ak', u'Akan'), (u'aka', u'Akan'), (u'am', u'Amharic'), (u'an', u'Aragonese'), (u'ar', u'Arabic'), (u'as', u'Assamese'), (u'av', u'Avaric'), (u'ay', u'Aymara'), (u'az', u'Azerbaijani'), (u'ba', u'Bashkir'), (u'be', u'Belarusian'), (u'bg', u'Bulgarian'), (u'bh', u'Bihari'), (u'bi', u'Bislama'), (u'bm', u'Bambara'), (u'bn', u'Bengali'), (u'bo', u'Tibetan Standard, Tibetan, Central'), (u'br', u'Breton'), (u'bs', u'Bosnian'), (u'bug', u'Buginese'), (u'ca', u'Catalan; Valencian'), (u'ce', u'Chechen'), (u'ceb', u'Cebuano'), (u'ch', u'Chamorro'), (u'cho', u'Choctaw'), (u'co', u'Corsican'), (u'cr', u'Cree'), (u'cs', u'Czech'), (u'cu', u'Old Church Slavonic, Church Slavic, Church Slavonic, Old Bulgarian, Old Slavonic'), (u'cv', u'Chuvash'), (u'cy', u'Welsh'), (u'da', u'Danish'), (u'de', u'German'), (u'dv', u'Divehi; Dhivehi; Maldivian;'), (u'ee', u'Ewe'), (u'efi', u'Efik'), (u'el', u'Greek, Modern'), (u'en', u'English'), (u'en_gb', u'English, Britain'), (u'en_pt', u'English, Pirate'), (u'eo', u'Esperanto'), (u'es', u'Spanish; Castilian'), (u'es_ar', u'Spanish, Argentina'), (u'es_es', u'Spanish, Spain'), (u'es_mx', u'Spanish, Mexico'), (u'es_ni', u'Spanish, Nicaraguan'), (u'et', u'Estonian'), (u'eu', u'Basque'), (u'fa', u'Persian'), (u'ff', u'Fula; Fulah; Pulaar; Pular'), (u'fi', u'Finnish'), (u'fil', u'Filipino'), (u'fj', u'Fijian'), (u'fo', u'Faroese'), (u'fr', u'French'), (u'fr_ca', u'French, Canada'), (u'ful', u'Fula'), (u'fy', u'Western Frisian'), (u'fy_nl', u'Frisian'), (u'ga', u'Irish'), (u'gd', u'Scottish Gaelic; Gaelic'), (u'gl', u'Galician'), (u'gn', u'Guaran\xed'), (u'gu', u'Gujarati'), (u'gv', u'Manx'), (u'ha', u'Hausa'), (u'hau', u'Hausa'), (u'he', u'Hebrew (modern)'), (u'hi', u'Hindi'), (u'ho', u'Hiri Motu'), (u'hr', u'Croatian'), (u'ht', u'Haitian; Haitian Creole'), (u'hu', u'Hungarian'), (u'hy', u'Armenian'), (u'hz', u'Herero'), (u'ia', u'Interlingua'), (u'ibo', u'Igbo'), (u'id', u'Indonesian'), (u'ie', u'Interlingue'), (u'ig', u'Igbo'), (u'ii', u'Nuosu'), (u'ik', u'Inupiaq'), (u'io', u'Ido'), (u'is', u'Icelandic'), (u'it', u'Italian'), (u'iu', u'Inuktitut'), (u'ja', u'Japanese'), (u'jv', u'Javanese'), (u'ka', u'Georgian'), (u'kg', u'Kongo'), (u'ki', u'Kikuyu, Gikuyu'), (u'kik', u'Kikuyu'), (u'kj', u'Kwanyama, Kuanyama'), (u'kk', u'Kazakh'), (u'kl', u'Kalaallisut, Greenlandic'), (u'km', u'Khmer'), (u'kn', u'Kannada'), (u'ko', u'Korean'), (u'kon', u'Kongo'), (u'kr', u'Kanuri'), (u'ks', u'Kashmiri'), (u'ku', u'Kurdish'), (u'kv', u'Komi'), (u'kw', u'Cornish'), (u'ky', u'Kirghiz, Kyrgyz'), (u'la', u'Latin'), (u'lb', u'Luxembourgish, Letzeburgesch'), (u'lg', u'Luganda'), (u'li', u'Limburgish, Limburgan, Limburger'), (u'lin', u'Lingala'), (u'ln', u'Lingala'), (u'lo', u'Lao'), (u'lt', u'Lithuanian'), (u'lu', u'Luba-Katanga'), (u'lv', u'Latvian'), (u'mg', u'Malagasy'), (u'mh', u'Marshallese'), (u'mi', u'M\u0101ori'), (u'mk', u'Macedonian'), (u'ml', u'Malayalam'), (u'mlg', u'Malagasy'), (u'mn', u'Mongolian'), (u'mr', u'Marathi (Mar\u0101\u1e6dh\u012b)'), (u'ms', u'Malay'), (u'mt', u'Maltese'), (u'my', u'Burmese'), (u'na', u'Nauru'), (u'nb', u'Norwegian Bokm\xe5l'), (u'nd', u'North Ndebele'), (u'ne', u'Nepali'), (u'ne_np', u'Nepali'), (u'ng', u'Ndonga'), (u'nl', u'Dutch'), (u'nn', u'Norwegian Nynorsk'), (u'no', u'Norwegian'), (u'nr', u'South Ndebele'), (u'nv', u'Navajo, Navaho'), (u'ny', u'Chichewa; Chewa; Nyanja'), (u'nya', u'Chichewa'), (u'oc', u'Occitan'), (u'oj', u'Ojibwe, Ojibwa'), (u'oji', u'Ojibwe'), (u'om', u'Oromo'), (u'or', u'Oriya'), (u'os', u'Ossetian, Ossetic'), (u'pa', u'Panjabi, Punjabi'), (u'pi', u'P\u0101li'), (u'pl', u'Polish'), (u'pnb', u'Punjabi'), (u'ps', u'Pashto, Pushto'), (u'pt', u'Portuguese'), (u'pt_br', u'Portuguese, Brazil'), (u'pt_pt', u'Portuguese, Portugal'), (u'qu', u'Quechua'), (u'que', u'Quechua'), (u'rm', u'Romansh'), (u'rn', u'Kirundi'), (u'ro', u'Romanian, Moldavian, Moldovan'), (u'ru', u'Russian'), (u'rw', u'Kinyarwanda'), (u'sa', u'Sanskrit (Sa\u1e41sk\u1e5bta)'), (u'sc', u'Sardinian'), (u'sd', u'Sindhi'), (u'se', u'Northern Sami'), (u'sg', u'Sango'), (u'si', u'Sinhala, Sinhalese'), (u'sk', u'Slovak'), (u'sl', u'Slovene'), (u'sm', u'Samoan'), (u'sn', u'Shona'), (u'sna', u'Shona'), (u'so', u'Somali'), (u'som', u'Somali'), (u'sot', u'Southern Sotho'), (u'sq', u'Albanian'), (u'sr', u'Serbian'), (u'sr_cs', u'Serbian, Cyrillic'), (u'sr_latn', u'Serbian, Latin'), (u'ss', u'Swati'), (u'st', u'Southern Sotho'), (u'su', u'Sundanese'), (u'sv', u'Swedish'), (u'sv_se', u'Swedish'), (u'sw', u'Swahili'), (u'swa', u'Swahili'), (u'ta', u'Tamil'), (u'te', u'Telugu'), (u'tg', u'Tajik'), (u'th', u'Thai'), (u'ti', u'Tigrinya'), (u'tir', u'Tigrinya'), (u'tk', u'Turkmen'), (u'tl', u'Tagalog'), (u'tn', u'Tswana'), (u'to', u'Tonga (Tonga Islands)'), (u'tr', u'Turkish'), (u'ts', u'Tsonga'), (u'tsn', u'Tswana'), (u'tt', u'Tatar'), (u'tw', u'Twi'), (u'ty', u'Tahitian'), (u'ug', u'Uighur, Uyghur'), (u'uk', u'Ukrainian'), (u'ur', u'Urdu'), (u'ur_pk', u'Swedish'), (u'uz', u'Uzbek'), (u've', u'Venda'), (u'vi', u'Vietnamese'), (u'vo', u'Volap\xfck'), (u'wa', u'Walloon'), (u'wo', u'Wolof'), (u'wol', u'Wolof'), (u'xh', u'Xhosa'), (u'xho', u'Xhosa'), (u'yi', u'Yiddish'), (u'yo', u'Yoruba'), (u'yor', u'Yoruba'), (u'za', u'Zhuang, Chuang'), (u'zh', u'Chinese'), (u'zh_cn', u'Chinese, Simplified'), (u'zh_tw', u'Chinese, Traditional'), (u'zul', u'Zulu')])
DEFAULT_INDEX_TABLESPACE
''
INTERNAL_IPS
('127.0.0.1',)
STATIC_URL
'/static/'
EMAIL_PORT
25
USE_TZ
False
SHORT_DATETIME_FORMAT
'm/d/Y P'
SESSION_COOKIE_DOMAIN
None
PASSWORD_HASHERS
u'****'
ABSOLUTE_URL_OVERRIDES
{}
CENTRAL_FROM_EMAIL
'kalite@adhocsync.com'
DEFAULT_ENCODING
'utf-8'
CACHE_MIDDLEWARE_SECONDS
600
PROXY_PORT
None
DATETIME_INPUT_FORMATS
('%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M:%S.%f', '%Y-%m-%d %H:%M', '%Y-%m-%d', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M:%S.%f', '%m/%d/%Y %H:%M', '%m/%d/%Y', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M:%S.%f', '%m/%d/%y %H:%M', '%m/%d/%y')
TESTS_TO_SKIP
['long']
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.
On Sat, Feb 22, 2014 at 1:44 PM, Ben Cipollini notifications@github.comwrote:
This is SO BIZARRE, I'm guessing this is a caching issue. :) Try setting CACHE_TIME=0 in your local_settings, and I assume things will get better.
As for the key error... can you give any more info? The error page should have a full call stack.
— Reply to this email directly or view it on GitHubhttps://github.com/learningequality/ka-lite/issues/1600#issuecomment-35812310 .
@mjptak - full stack means the call stack - the list of embedded function calls that led to the error. In what you pasted, it' severything that started with "local vars", including this key one:
▶ Local vars <http://127.0.0.1:8008/update/videos/#>
- /Users/markptak/kav11/kalite/updates/views.py in update_videos
1.
default_language_name =
lang_best_name(installed_languages.pop(request.session["default_language"]))
I've merged what I think is a fix to both the develop and release-0.11 branches. Can you pull and retry?
so far so good. I'll stop trying to break your incredible tools with my homebrew exercise but I figured some of this stuff probably helps to find relevant issues anyway.
On Sat, Feb 22, 2014 at 2:06 PM, Ben Cipollini notifications@github.comwrote:
@mjptak https://github.com/mjptak - full stack means the call stack - the list of embedded function calls that led to the error. In what you pasted, it' severything that started with "local vars", including this key one:
▶ Local vars http://127.0.0.1:8008/update/videos/#
/Users/markptak/kav11/kalite/updates/views.py in update_videos 1.
default_language_name =
lang_best_name(installed_languages.pop(request.session["default_language"]))
I've merged what I think is a fix to both the develop and release-0.11 branches. Can you pull and retry?
— Reply to this email directly or view it on GitHubhttps://github.com/learningequality/ka-lite/issues/1600#issuecomment-35813041 .
It's awesome to see what you do, and please don't stop trying things out! Your explorations and interest keep us (me!) motivated and really REALLY help out. Thanks Mark!
on startup
on switch to Portuguese on switch back to English but then upon login