learningequality / ka-lite

KA Lite: lightweight web server for serving core Khan Academy content (videos and exercises) without needing internet connectivity
https://learningequality.org/ka-lite/
Other
458 stars 305 forks source link

the last item from Progress Report won't unfold. #4987

Closed 66eli77 closed 7 years ago

66eli77 commented 8 years ago

Summary

if you have a long list, the last item won't unfold and you get this error screen shot 2016-03-10 at 2 48 48 pm

Branch or installer method

GET http://localhost:8000/api/coachreports/playlist_progress_detail/?user_id=9f…c6c56accb6e6ff&playlist_id=rational-numbers-introduction-1&_=1457649601673 500 (INTERNAL SERVER ERROR)send @ jquery.js:8630jQuery.extend.ajax @ jquery.js:8166Backbone.ajax @ backbone.js:13Backbone.sync @ backbone.js:1410Backbone.sync @ backbone-tastypie.js:98_.extend.sync @ backbone.js:795_.extend.fetch @ backbone.js:1030Backbone.View.extend.toggle_details @ views.js:64jQuery.event.dispatch @ jquery.js:4435elemData.handle @ jquery.js:4121
jquery.js:8630 XHR finished loading: GET "http://localhost:8000/api/coachreports/playlist_progress_detail/?user_id=9f…c6c56accb6e6ff&playlist_id=rational-numbers-introduction-1&_=1457649601673".send @ jquery.js:8630jQuery.extend.ajax @ jquery.js:8166Backbone.ajax @ backbone.js:13Backbone.sync @ backbone.js:1410Backbone.sync @ backbone-tastypie.js:98_.extend.sync @ backbone.js:795_.extend.fetch @ backbone.js:1030Backbone.View.extend.toggle_details @ views.js:64jQuery.event.dispatch @ jquery.js:4435elemData.handle @ jquery.js:4121
api.js:82 Response text: NotFound at /api/coachreports/playlist_progress_detail/
User playlist progress details with user ID '9fe2f30e4f374837a3c6c56accb6e6ff' and playlist ID 'rational-numbers-introduction-1' were not found.

Request Method: GET
Request URL: http://localhost:8000/api/coachreports/playlist_progress_detail/?user_id=9fe2f30e4f374837a3c6c56accb6e6ff&playlist_id=rational-numbers-introduction-1&_=1457649601673
Django Version: 1.5.1
Python Executable: /Users/Eli/Desktop/ka-lite/env/bin/python
Python Version: 2.7.6
Python Path: ['/Users/Eli/Desktop/ka-lite/python-packages', '/Users/Eli/Desktop/ka-lite/dist-packages', '/Users/Eli/Desktop/ka-lite/kalite', '/Users/Eli/Desktop/ka-lite', '/Users/Eli/Desktop/ka-lite/env/lib/python27.zip', '/Users/Eli/Desktop/ka-lite/env/lib/python2.7', '/Users/Eli/Desktop/ka-lite/env/lib/python2.7/plat-darwin', '/Users/Eli/Desktop/ka-lite/env/lib/python2.7/plat-mac', '/Users/Eli/Desktop/ka-lite/env/lib/python2.7/plat-mac/lib-scriptpackages', '/Users/Eli/Desktop/ka-lite/env/Extras/lib/python', '/Users/Eli/Desktop/ka-lite/env/lib/python2.7/lib-tk', '/Users/Eli/Desktop/ka-lite/env/lib/python2.7/lib-old', '/Users/Eli/Desktop/ka-lite/env/lib/python2.7/lib-dynload', '/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/lib-tk', '/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', '/Users/Eli/Desktop/ka-lite/env/lib/python2.7/site-packages']
Server time: Thu, 10 Mar 2016 14:40:26 -0800
Installed Applications:
['django.contrib.auth',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.admin',
 'django.contrib.staticfiles',
 'django.contrib.contenttypes',
 'tastypie',
 'django_js_reverse',
 'securesync',
 'south',
 'fle_utils.build',
 'fle_utils.django_utils',
 'fle_utils.config',
 'fle_utils.chronograph',
 'fle_utils.testing',
 'kalite.coachreports',
 'kalite.distributed',
 'kalite.main',
 'kalite.updates',
 'kalite.facility',
 'kalite.student_testing',
 'kalite.topic_tools',
 'kalite.contentload',
 'kalite.dynamic_assets',
 'kalite.remoteadmin',
 'kalite.inline',
 'kalite.i18n',
 'kalite.control_panel',
 'dbbackup',
 'kalite.testing',
 'kalite.testing.loadtesting',
 'kalite.basetests',
 'django_snippets',
 'debug_toolbar']
Installed Middleware:
['django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'kalite.i18n.middleware.SessionLanguage',
 'django.middleware.locale.LocaleMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'fle_utils.django_utils.middleware.GetNextParam',
 'kalite.facility.middleware.AuthFlags',
 'kalite.facility.middleware.FacilityCheck',
 'securesync.middleware.RegisteredCheck',
 'securesync.middleware.DBCheck',
 'django.middleware.common.CommonMiddleware',
 'kalite.distributed.middleware.LockdownCheck',
 'kalite.distributed.middleware.LogRequests',
 'django.middleware.gzip.GZipMiddleware',
 'django_snippets.session_timeout_middleware.SessionIdleTimeout',
 'debug_toolbar.middleware.DebugToolbarMiddleware',
 'fle_utils.django_utils.middleware.JsonAsHTML']

Traceback:
File "/Users/Eli/Desktop/ka-lite/python-packages/django/core/handlers/base.py" in get_response
  115.                         response = callback(request, *callback_args, **callback_kwargs)
File "/Users/Eli/Desktop/ka-lite/python-packages/django/views/decorators/csrf.py" in wrapped_view
  77.         return view_func(*args, **kwargs)
File "/Users/Eli/Desktop/ka-lite/python-packages/tastypie/resources.py" in wrapper
  195.                 response = callback(request, *args, **kwargs)
File "/Users/Eli/Desktop/ka-lite/python-packages/tastypie/resources.py" in dispatch_list
  426.         return self.dispatch('list', request, **kwargs)
File "/Users/Eli/Desktop/ka-lite/python-packages/tastypie/resources.py" in dispatch
  458.         response = method(request, **kwargs)
File "/Users/Eli/Desktop/ka-lite/python-packages/tastypie/resources.py" in get_list
  1266.         objects = self.obj_get_list(bundle=base_bundle, **self.remove_api_resource_names(kwargs))
File "/Users/Eli/Desktop/ka-lite/kalite/coachreports/api_resources.py" in obj_get_list
  29.         return self.get_object_list(bundle.request)
File "/Users/Eli/Desktop/ka-lite/kalite/coachreports/api_resources.py" in get_object_list
  78.             raise NotFound("User playlist progress details with user ID '%s' and playlist ID '%s' were not found." % (user_id, playlist_id))

Exception Type: NotFound at /api/coachreports/playlist_progress_detail/
Exception Value: User playlist progress details with user ID '9fe2f30e4f374837a3c6c56accb6e6ff' and playlist ID 'rational-numbers-introduction-1' were not found.
Request information:
GET:
playlist_id = u'rational-numbers-introduction-1'
user_id = u'9fe2f30e4f374837a3c6c56accb6e6ff'
_ = u'1457649601673'

POST: No POST data

FILES: No FILES data

COOKIES:
tabstyle = 'html-tab'
_ga = 'GA1.1.1558408373.1438101388'
banner_hidden = 'false'
djdt = 'hide'
sessionid = '.eJyNUl1z20QUTd00iZXmq6XlG4xxwS3FtfVlizc60M4QUPmYnXr6olntXllq5F3tapXgMGbgieZfcyU75oEHeNGs7p57zt1z7h-tpbrRJ0cJZVmemUUEv2alKd8QS8MMT6CBvyHHHBJa5SbKqZhVdAakBUK1yEkmSkPzPDqnecapqbGHGyomK2FOW-SIv8Y2uWlOW-RgA6pK0IzJYhGhoIUfJpFTV8xIbamb7AyZDQyu8YO55JCX1rP1P8F2S22zKIqrLDeZiCJLxq-BGUvdCv_6We0s1W6f7NUygs5B7U1bW1tb1CZH0T-DUpaCaqf_qWYpK21Y95fqdp8cltlMAI_OQZeZFOrg9AbZblQOpyeo8jLLSyk63-YwB2GoXpBdpAO0SR1dkd3GH9DqOCQ7EfpoQJ2wlVcDHq-1BzEtwfqhPv9SQyx15-Gf6u5SvdUnO5TzTMzUvSvS4rG6X9M3Oam3q5gcX0oB-Mg8jyk7izKu3glJO5dilpmKg3o3JNuXUs7VeyG5vX5JvKhx74fkDlJrKMtISD1HUy5x5g-m-KYtYtVersJVH4bkAAMzlJkI5jTL1UcrULsmpKbSoD4OyV5OzUq0g1rXDY1Tn6zwG5YixalVd1Vt4TCfTjt4DILAD9yEJ8MgdkfOmNpewLk9coau47u-S3bXA6veqnWfQ8l0Vpg6mAdNDT2xkkyXa-XPpjex-BREirmlGMi_tlx93iwLCHJLSAOl6k9_x__fumUBaJZMohyoFhhB96vOcOB7wWTkTGzXHXr2xPYed7q1EN51K8FSDALEDHgX6yabQ4TLWmg503TetE-c8cQeuuPAsb2hPfYRBkkiNc4D55A3mKG3TI_D9CStl-DhUj3qp_eu0vsp5p1iulZWRgbqbdbqi6sUc9zfLDla-fj_WdnO6bVHX07b2HGKj5QX5VmW1lkWtCwvpOZqMHXwsld4Z3YvYG6v-N7Tp4tc9eSPXvH0a-e5EunF4MXAIy9e_RQu4Lsn7jfJ8-krj-zNtKyKeqQnzUj-JOATn45G3pi5MU3iIU8CGNnM9eIJjCBdL0ECduIMwU2csYt2UYf5zPMpY7EPfpJUcTX4G-Eui-c:1ae9Fo:y0KKdswLsHlfwhYXyj8klcUceqo'
csrftoken = '13XcoY6AqPwp3StWVBznEVPQIWPFgNNC'

META:
wsgi.multiprocess = False
RUN_MAIN = 'true'
HTTP_REFERER = 'http://localhost:8000/coachreports/student/'
VERSIONER_PYTHON_PREFER_32_BIT = 'no'
SERVER_SOFTWARE = 'WSGIServer/0.1 Python/2.7.6'
TERM_PROGRAM_VERSION = '343.7'
REQUEST_METHOD = 'GET'
LOGNAME = 'Eli'
USER = 'Eli'
HOME = '/Users/Eli'
QUERY_STRING = 'user_id=9fe2f30e4f374837a3c6c56accb6e6ff&playlist_id=rational-numbers-introduction-1&_=1457649601673'
PATH = '/Users/Eli/Desktop/ka-lite/env/bin:/Library/Frameworks/Python.framework/Versions/3.5/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin'
PS1 = '(env)\\h:\\W \\u\\$ '
DISPLAY = '/private/tmp/com.apple.launchd.I6StfDhbnB/org.macosforge.xquartz:0'
TERM_PROGRAM = 'Apple_Terminal'
LANG = 'en_US.UTF-8'
VIRTUAL_ENV = '/Users/Eli/Desktop/ka-lite/env'
SHELL = '/bin/bash'
KALITE_PYTHON = '/Users/Eli/Desktop/ka-lite/env/bin/python'
HTTP_COOKIE = '_ga=GA1.1.1558408373.1438101388; banner_hidden=false; tabstyle=html-tab; djdt=hide; csrftoken=13XcoY6AqPwp3StWVBznEVPQIWPFgNNC; sessionid=".eJyNUl1z20QUTd00iZXmq6XlG4xxwS3FtfVlizc60M4QUPmYnXr6olntXllq5F3tapXgMGbgieZfcyU75oEHeNGs7p57zt1z7h-tpbrRJ0cJZVmemUUEv2alKd8QS8MMT6CBvyHHHBJa5SbKqZhVdAakBUK1yEkmSkPzPDqnecapqbGHGyomK2FOW-SIv8Y2uWlOW-RgA6pK0IzJYhGhoIUfJpFTV8xIbamb7AyZDQyu8YO55JCX1rP1P8F2S22zKIqrLDeZiCJLxq-BGUvdCv_6We0s1W6f7NUygs5B7U1bW1tb1CZH0T-DUpaCaqf_qWYpK21Y95fqdp8cltlMAI_OQZeZFOrg9AbZblQOpyeo8jLLSyk63-YwB2GoXpBdpAO0SR1dkd3GH9DqOCQ7EfpoQJ2wlVcDHq-1BzEtwfqhPv9SQyx15-Gf6u5SvdUnO5TzTMzUvSvS4rG6X9M3Oam3q5gcX0oB-Mg8jyk7izKu3glJO5dilpmKg3o3JNuXUs7VeyG5vX5JvKhx74fkDlJrKMtISD1HUy5x5g-m-KYtYtVersJVH4bkAAMzlJkI5jTL1UcrULsmpKbSoD4OyV5OzUq0g1rXDY1Tn6zwG5YixalVd1Vt4TCfTjt4DILAD9yEJ8MgdkfOmNpewLk9coau47u-S3bXA6veqnWfQ8l0Vpg6mAdNDT2xkkyXa-XPpjex-BREirmlGMi_tlx93iwLCHJLSAOl6k9_x__fumUBaJZMohyoFhhB96vOcOB7wWTkTGzXHXr2xPYed7q1EN51K8FSDALEDHgX6yabQ4TLWmg503TetE-c8cQeuuPAsb2hPfYRBkkiNc4D55A3mKG3TI_D9CStl-DhUj3qp_eu0vsp5p1iulZWRgbqbdbqi6sUc9zfLDla-fj_WdnO6bVHX07b2HGKj5QX5VmW1lkWtCwvpOZqMHXwsld4Z3YvYG6v-N7Tp4tc9eSPXvH0a-e5EunF4MXAIy9e_RQu4Lsn7jfJ8-krj-zNtKyKeqQnzUj-JOATn45G3pi5MU3iIU8CGNnM9eIJjCBdL0ECduIMwU2csYt2UYf5zPMpY7EPfpJUcTX4G-Eui-c:1ae9Fo:y0KKdswLsHlfwhYXyj8klcUceqo"'
SERVER_NAME = '1.0.0.127.in-addr.arpa'
VERSIONER_PYTHON_VERSION = '2.7'
SHLVL = '1'
XPC_FLAGS = '0x0'
wsgi.url_scheme = 'http'
_ = '/Users/Eli/Desktop/ka-lite/env/bin/kalite'
SERVER_PORT = '8000'
KALITE_HOME = '/Users/Eli/.kalite'
CONTENT_LENGTH = ''
TERM_SESSION_ID = '2AFC2DBC-3D27-499C-BAA3-8021D754109E'
SSH_AUTH_SOCK = '/private/tmp/com.apple.launchd.euR7uaUXDH/Listeners'
HTTP_PRAGMA = 'no-cache'
HTTP_X_REQUESTED_WITH = 'XMLHttpRequest'
XPC_SERVICE_NAME = '0'
TERM = 'xterm-256color'
wsgi.input = <socket._fileobject object at 0x1060147d0>
Apple_PubSub_Socket_Render = '/private/tmp/com.apple.launchd.QPg1WxWWMI/Render'
HTTP_HOST = 'localhost:8000'
SCRIPT_NAME = u''
wsgi.multithread = True
HTTP_CONNECTION = 'keep-alive'
HTTP_CACHE_CONTROL = 'no-cache'
TMPDIR = '/var/folders/kv/glrsykkd519chpxxwbvgv9x40000gn/T/'
HTTP_ACCEPT = 'application/json, text/javascript, */*; q=0.01'
KALITE_LISTEN_PORT = '8008'
wsgi.version = 
HTTP_USER_AGENT = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116 Safari/537.36'
GATEWAY_INTERFACE = 'CGI/1.1'
wsgi.run_once = False
CSRF_COOKIE = u'13XcoY6AqPwp3StWVBznEVPQIWPFgNNC'
KALITE_DIR = '/Users/Eli/Desktop/ka-lite'
REMOTE_ADDR = '127.0.0.1'
HTTP_ACCEPT_LANGUAGE = 'en-US,en;q=0.8,zh;q=0.6'
wsgi.errors = <open file '<stderr>', mode 'w' at 0x10106d1e0>
__CF_USER_TEXT_ENCODING = '0x1F5:0x0:0x0'
PWD = '/Users/Eli/Desktop/ka-lite'
SERVER_PROTOCOL = 'HTTP/1.1'
DJANGO_SETTINGS_MODULE = 'kalite.project.settings.dev'
CONTENT_TYPE = 'text/plain'
wsgi.file_wrapper = ''
REMOTE_HOST = ''
HTTP_ACCEPT_ENCODING = 'gzip, deflate, sdch'
PATH_INFO = u'/api/coachreports/playlist_progress_detail/'

Settings:
Using settings module kalite.project.settings.dev
DEBUG_TOOLBAR_PANELS = 
USE_L10N = False
I18N_DATA_PATH = '/Users/Eli/Desktop/ka-lite/kalite/i18n/data'
IN_CONTEXT_LOCALIZED = False
USE_THOUSAND_SEPARATOR = False
BACKUP_THUMBNAIL_SOURCE = None
CSRF_COOKIE_SECURE = False
USER_LOG_SUMMARY_FREQUENCY = 
LANGUAGE_CODE = 'en'
DUBBED_VIDEOS_MAPPING_FILEPATH = '/Users/Eli/Desktop/ka-lite/locale/dubbed_video_mappings.json'
MANAGERS = 
HTTP_PORT = '8008'
SYNCING_MAX_RECORDS_PER_REQUEST = 100
EMAIL_HOST_PASSWORD = u'********************'
DEFAULT_CHARSET = 'utf-8'
RESTRICTED_TEACHER_PERMISSIONS = False
STATIC_ROOT = '/Users/Eli/Desktop/ka-lite/kalite/static'
DISABLE_SELF_ADMIN = False
IS_SOURCE = True
CENTRAL_WIKI_URL = 'http://kalitewiki.learningequality.org/'
USER_DATA_ROOT = '/Users/Eli/Desktop/ka-lite'
CACHE_LOCATION = '/Users/Eli/Desktop/ka-lite/cache'
ALLOWED_HOSTS = ['*']
MESSAGE_STORAGE = 'fle_utils.django_utils.classes.NoDuplicateMessagesSessionStorage'
EMAIL_SUBJECT_PREFIX = '[Django] '
SEND_BROKEN_LINK_EMAILS = False
STATICFILES_FINDERS = 
CRONSERVER_FREQUENCY = 600
INSTALL_ADMIN_USERNAME = None
SESSION_COOKIE_NAME = 'sessionid'
ROOT_UUID_NAMESPACE = UUID('a8f052c7-8790-5bed-ab15-fe2d3b1ede41')
GIT_UPDATE_REPO_URL = 'https://github.com/learningequality/ka-lite.git'
ADMIN_FOR = 
TIME_INPUT_FORMATS = 
DATABASES = {'default': {'ENGINE': 'django.db.backends.sqlite3', 'TEST_MIRROR': None, 'NAME': '/Users/Eli/Desktop/ka-lite/kalite/database/data.sqlite', 'TEST_CHARSET': None, 'TIME_ZONE': None, 'TEST_COLLATION': None, 'OPTIONS': {'timeout': 60}, 'HOST': '', 'USER': '', 'TEST_NAME': None, 'PASSWORD': u'********************', 'PORT': ''}}
USER_WRITABLE_LOCALE_DIR = '/Users/Eli/Desktop/ka-lite/locale'
KEY_PREFIX = u'********************'
FILE_UPLOAD_PERMISSIONS = None
TIME_FORMAT = 'P'
FILE_UPLOAD_HANDLERS = 
TEMPLATE_CONTEXT_PROCESSORS = ['django.core.context_processors.i18n', 'kalite.i18n.custom_context_processors.languages', 'django.contrib.auth.context_processors.auth', 'django.core.context_processors.request', 'kalite.distributed.custom_context_processors.custom', 'django.contrib.messages.context_processors.messages', 'django.core.context_processors.debug']
DEFAULT_CONTENT_TYPE = 'text/html'
SYNCING_THROTTLE_WAIT_TIME = None
TASTYPIE_FULL_DEBUG = True
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': {'LOCATION': 'unique-snowflake', 'TIMEOUT': 86400, 'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}}
SECRET_KEY_FILE = u'********************'
SERVER_EMAIL = 'root@localhost'
SESSION_COOKIE_PATH = '/'
ROOT_URLCONF = 'kalite.distributed.urls'
MIDDLEWARE_CLASSES = ['django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'kalite.i18n.middleware.SessionLanguage', 'django.middleware.locale.LocaleMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'fle_utils.django_utils.middleware.GetNextParam', 'kalite.facility.middleware.AuthFlags', 'kalite.facility.middleware.FacilityCheck', 'securesync.middleware.RegisteredCheck', 'securesync.middleware.DBCheck', 'django.middleware.common.CommonMiddleware', 'kalite.distributed.middleware.LockdownCheck', 'kalite.distributed.middleware.LogRequests', 'django.middleware.gzip.GZipMiddleware', 'django_snippets.session_timeout_middleware.SessionIdleTimeout', 'debug_toolbar.middleware.DebugToolbarMiddleware', 'fle_utils.django_utils.middleware.JsonAsHTML']
USE_I18N = True
THOUSAND_SEPARATOR = ','
SECRET_KEY = u'********************'
USER_FACING_PORT = '8008'
PDFJS = True
LANGUAGE_COOKIE_NAME = 'django_language'
DEFAULT_INDEX_TABLESPACE = ''
RUNNING_IN_TRAVIS = False
BACKUP_VIDEO_SOURCE = None
POINTS_PER_VIDEO = 750
LOGGING_CONFIG = 'django.utils.log.dictConfig'
SYNC_SESSIONS_MAX_RECORDS = 10
TEMPLATE_LOADERS = 
WSGI_APPLICATION = None
TEMPLATE_DEBUG = True
X_FRAME_OPTIONS = 'SAMEORIGIN'
CSRF_COOKIE_NAME = 'csrftoken'
SIMPLIFIED_LOGIN = False
LOGGING_LEVEL = 20
FORCE_SCRIPT_NAME = None
USE_X_FORWARDED_HOST = False
USE_ETAGS = False
CHERRYPY_PORT = '8008'
SIGNING_BACKEND = 'django.core.signing.TimestampSigner'
JS_REVERSE_JS_MINIFY = False
SESSION_COOKIE_SECURE = False
ZERO_CONFIG = False
CACHE_TIME = 3153600000
DBBACKUP_BACKUP_DIRECTORY = '/Users/Eli/ka-lite-backups'
FILE_CHARSET = 'utf-8'
DEBUG = True
LANG_LOOKUP_FILEPATH = '/Users/Eli/Desktop/ka-lite/kalite/i18n/data/languagelookup.json'
DEFAULT_DATABASE_PATH = '/Users/Eli/Desktop/ka-lite/kalite/database/data.sqlite'
DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage'
INSTALLED_APPS = ['django.contrib.auth', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.admin', 'django.contrib.staticfiles', 'django.contrib.contenttypes', 'tastypie', 'django_js_reverse', 'securesync', 'south', 'fle_utils.build', 'fle_utils.django_utils', 'fle_utils.config', 'fle_utils.chronograph', 'fle_utils.testing', 'kalite.coachreports', 'kalite.distributed', 'kalite.main', 'kalite.updates', 'kalite.facility', 'kalite.student_testing', 'kalite.topic_tools', 'kalite.contentload', 'kalite.dynamic_assets', 'kalite.remoteadmin', 'kalite.inline', 'kalite.i18n', 'kalite.control_panel', 'dbbackup', 'kalite.testing', 'kalite.testing.loadtesting', 'kalite.basetests', 'django_snippets', 'debug_toolbar']
LANGUAGES_BIDI = 
COMMENTS_ALLOW_PROFANITIES = False
LOCKDOWN = False
STATICFILES_DIRS = 
PREPEND_WWW = False
SECURE_PROXY_SSL_HEADER = None
PASSWORD_ITERATIONS_STUDENT_SYNCED = u'********************'
CENTRAL_SERVER_DOMAIN = 'learningequality.org'
BACKUP_DIRPATH = '/Users/Eli/ka-lite-backups'
PASSWORD_CONSTRAINTS = u'********************'
DEBUG_PROPAGATE_EXCEPTIONS = False
CSRF_COOKIE_DOMAIN = None
SOURCE_DIR = '/Users/Eli/Desktop/ka-lite'
MONTH_DAY_FORMAT = 'F j'
LOGIN_URL = '/?login=true'
SESSION_EXPIRE_AT_BROWSER_CLOSE = False
SOUTH_TESTS_MIGRATE = False
GIT_UPDATE_REMOTE_NAME = 'updates'
CHERRYPY_THREAD_COUNT = 18
INSTALL_FACILITY_NAME = None
AUTH_USER_MODEL = 'auth.User'
DATE_INPUT_FORMATS = 
TASTYPIE_DEFAULT_FORMATS = ['json']
AUTHENTICATION_BACKENDS = 'django.contrib.auth.backends.ModelBackend'
DB_TEMPLATE_DIR = '/Users/Eli/Desktop/ka-lite/kalite/database/templates'
STREAK_CORRECT_NEEDED = 8
PASSWORD_RESET_TIMEOUT_DAYS = u'********************'
SESSION_FILE_PATH = None
CACHE_MIDDLEWARE_ALIAS = 'default'
SESSION_SAVE_EVERY_REQUEST = True
NUMBER_GROUPING = 0
SESSION_ENGINE = 'django.contrib.sessions.backends.signed_cookies'
CONFIG_PACKAGE = []
CSRF_FAILURE_VIEW = 'django.views.csrf.csrf_failure'
CSRF_COOKIE_PATH = '/'
LOGIN_REDIRECT_URL = '/accounts/profile/'
CONTENT_DATA_URL = '/data/'
DEFAULT_DATABASE_DIR = '/Users/Eli/Desktop/ka-lite/kalite/database'
DECIMAL_SEPARATOR = '.'
KALITE_TEST_RUNNER = 'kalite.testing.testrunner.KALiteTestRunner'
CACHE_MIDDLEWARE_KEY_PREFIX = u'********************'
LOCALE_PATHS = '/Users/Eli/Desktop/ka-lite/locale/'
TEMPLATE_STRING_IF_INVALID = ''
LOGOUT_URL = '/securesync/api/user/logout/'
EMAIL_USE_TLS = False
CENTRAL_SERVER = False
FIXTURE_DIRS = 
EMAIL_HOST = 'localhost'
DATE_FORMAT = 'N j, Y'
LOGGING = {'loggers': {'cherrypy.error': {'handlers': ['console'], 'propagate': False, 'level': 20}, '': {'handlers': ['console'], 'propagate': False, 'level': 'INFO'}, 'cherrypy.console': {'handlers': ['console'], 'propagate': False, 'level': 20}, 'django': {'handlers': ['null'], 'propagate': True, 'level': 'INFO'}, 'kalite': {'handlers': ['console'], 'propagate': False, 'level': 20}, 'cherrypy.access': {'handlers': ['console'], 'propagate': False, 'level': 20}, 'django.request': {'handlers': ['console'], 'propagate': False, 'level': 'DEBUG'}}, 'version': 1, 'formatters': {'simple': {'format': '%(levelname)s %(message)s'}, 'verbose': {'format': '%(levelname)s %(asctime)s %(module)s %(process)d %(thread)d %(message)s'}, 'standard': {'format': '[%(levelname)s] [%(asctime)s] %(name)s: %(message)s'}}, 'disable_existing_loggers': True, 'handlers': {'null': {'class': 'django.utils.log.NullHandler', 'level': 'DEBUG'}, 'console': {'formatter': 'standard', 'class': 'logging.StreamHandler', 'level': 'DEBUG'}}}
SECURESYNC_PROTOCOL = 'http'
KALITE_CHANNEL_CONTEXT_DATA = {'channel_license': u'CC-BY-NC-SA', 'head_line': <django.utils.functional.__proxy__ object at 0x101b36f90>, 'header_logo': '/static/images/horizontal-logo-small.png', 'channel_name': <django.utils.functional.__proxy__ object at 0x101b36dd0>, 'frontpage_splash': '/static/images/logo_10_enlarged_2.png', 'footer_text': <django.utils.functional.__proxy__ object at 0x101b36e50>, 'tag_line': <django.utils.functional.__proxy__ object at 0x101b36d90>}
MEDIA_ROOT = '/Users/Eli/Desktop/ka-lite/kalite/media'
AUTO_LOAD_TEST = False
DEFAULT_EXCEPTION_REPORTER_FILTER = 'django.views.debug.SafeExceptionReporterFilter'
ADMINS = 
FORMAT_MODULE_PATH = None
DEFAULT_FROM_EMAIL = 'webmaster@localhost'
GIT_UPDATE_BRANCH = 'master'
DB_CONTENT_ITEM_TEMPLATE_DIR = '/Users/Eli/Desktop/ka-lite/kalite/database/templates/content_items'
MEDIA_URL = '/media/'
DATETIME_FORMAT = 'N j, Y, P'
TEMPLATE_DIRS = '/Users/Eli/Desktop/ka-lite/kalite/distributed/templates'
LOG = <logging.Logger object at 0x101b361d0>
DISALLOWED_USER_AGENTS = 
ALLOWED_INCLUDE_ROOTS = 
API_LIMIT_PER_PAGE = u'********************'
DOCS_EXIST = True
INSTALL_ADMIN_PASSWORD = u'********************'
DEBUG_ALLOW_DELETIONS = False
SHORT_DATE_FORMAT = 'm/d/Y'
CONTENT_DATA_PATH = '/Users/Eli/Desktop/ka-lite/data'
PASSWORD_ITERATIONS_TEACHER_SYNCED = u'********************'
TEST_RUNNER = 'kalite.testing.testrunner.KALiteTestRunner'
IGNORABLE_404_URLS = 
SHOW_DELETED_OBJECTS = False
TIME_ZONE = None
FILE_UPLOAD_MAX_MEMORY_SIZE = 2621440
SESSION_CACHE_ALIAS = 'default'
USER_STATIC_FILES = '/Users/Eli/Desktop/ka-lite/static-updates'
SESSION_IDLE_TIMEOUT = 0
ROOT_DATA_PATH = '/Users/Eli/Desktop/ka-lite/env/share/kalite'
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
USER_LOG_MAX_RECORDS_PER_USER = 1
DEFAULT_TABLESPACE = ''
SESSION_COOKIE_HTTPONLY = True
CONTENT_ROOT = '/Users/Eli/Desktop/ka-lite/content'
PROJECT_PATH = '/Users/Eli/Desktop/ka-lite/kalite'
FIXED_BLOCK_EXERCISES = 0
PASSWORD_ITERATIONS_TEACHER = u'********************'
SESSION_COOKIE_AGE = 1800
SETTINGS_MODULE = 'kalite.project.settings.dev'
CENTRAL_SERVER_HOST = 'staging.learningequality.org'
CONTENT_URL = '/content/'
SESSION_COOKIE_DOMAIN = None
LANGUAGES = set([(u'que', u'Quechua'), (u'sq', u'Albanian'), (u'et', u'Estonian'), (u'io', u'Ido'), (u'ts', u'Tsonga'), (u'ru', u'Russian'), (u'ay', u'Aymara'), (u'nv', u'Navajo, Navaho'), (u'hu', u'Hungarian'), (u'ful', u'Fula'), (u'ku', u'Kurdish'), (u'is', u'Icelandic'), (u'ml', u'Malayalam'), (u'rw', u'Kinyarwanda'), (u'cs', u'Czech'), (u'ti', u'Tigrinya'), (u'ff', u'Fula; Fulah; Pulaar; Pular'), (u'swa', u'Swahili'), (u'yor', u'Yoruba'), (u'en_pt', u'English, Pirate'), (u'or', u'Oriya'), (u'pnb', u'Punjabi'), (u'tk', u'Turkmen'), (u'id', u'Indonesian'), (u'gu', u'Gujarati'), (u'sr_latn', u'Serbian, Latin'), (u'gn', u'Guaran\xed'), (u'mr', u'Marathi (Mar\u0101\u1e6dh\u012b)'), (u'ky', u'Kirghiz, Kyrgyz'), (u'kv', u'Komi'), (u'ceb', u'Cebuano'), (u'la', u'Latin'), (u'rn', u'Kirundi'), (u'sw', u'Swahili'), (u'be', u'Belarusian'), (u'co', u'Corsican'), (u'na', u'Nauru'), (u'rm', u'Romansh'), (u'wo', u'Wolof'), (u'vo', u'Volap\xfck'), (u'jv', u'Javanese'), (u'ha', u'Hausa'), (u'pl', u'Polish'), (u'zul', u'Zulu'), (u'pi', u'P\u0101li'), (u'bg', u'Bulgarian'), (u'es_es', u'Spanish, Spain'), (u'aka', u'Akan'), (u'si', u'Sinhala, Sinhalese'), (u'tsn', u'Tswana'), (u'pt', u'Portuguese'), (u'cu', u'Old Church Slavonic, Church Slavic, Church Slavonic, Old Bulgarian, Old Slavonic'), (u'hr', u'Croatian'), (u'pa', u'Panjabi, Punjabi'), (u'ks', u'Kashmiri'), (u'am', u'Amharic'), (u'fr', u'French'), (u'bi', u'Bislama'), (u'ar', u'Arabic'), (u'yi', u'Yiddish'), (u'az', u'Azerbaijani'), (u'en', u'English'), (u'th', u'Thai'), (u'pt_br', u'Portuguese, Brazil'), (u'tir', u'Tigrinya'), (u'bm', u'Bambara'), (u'fo', u'Faroese'), (u'sd', u'Sindhi'), (u'uz', u'Uzbek'), (u'he', u'Hebrew (modern)'), (u'tn', u'Tswana'), (u'ta', u'Tamil'), (u'ee', u'Ewe'), (u'ur', u'Urdu'), (u'ms', u'Malay'), (u'ii', u'Nuosu'), (u'fj', u'Fijian'), (u'hy', u'Armenian'), (u'to', u'Tonga (Tonga Islands)'), (u'mi', u'M\u0101ori'), (u'no', u'Norwegian'), (u'oc', u'Occitan'), (u'lt', u'Lithuanian'), (u'pt_pt', u'Portuguese, Portugal'), (u'vi', u'Vietnamese'), (u'oji', u'Ojibwe'), (u'cr', u'Cree'), (u'cho', u'Choctaw'), (u'kl', u'Kalaallisut, Greenlandic'), (u'bo', u'Tibetan Standard, Tibetan, Central'), (u'fy', u'Western Frisian'), (u'ko', u'Korean'), (u'yo', u'Yoruba'), (u'sv_se', u'Swedish'), (u'bs', u'Bosnian'), (u'kr', u'Kanuri'), (u'ty', u'Tahitian'), (u'mn', u'Mongolian'), (u'kw', u'Cornish'), (u'sot', u'Southern Sotho'), (u'ibo', u'Igbo'), (u'tt', u'Tatar'), (u'tl', u'Tagalog'), (u'nya', u'Chichewa'), (u'tr', u'Turkish'), (u'ba', u'Bashkir'), (u'as', u'Assamese'), (u'qu', u'Quechua'), (u'efi', u'Efik'), (u'tg', u'Tajik'), (u'zh_cn', u'Chinese, Simplified'), (u'sn', u'Shona'), (u'ia', u'Interlingua'), (u'bug', u'Buginese'), (u'an', u'Aragonese'), (u'en_gb', u'English, Britain'), (u'ga', u'Irish'), (u'es_ni', u'Spanish, Nicaraguan'), (u'zh', u'Chinese'), (u'de', u'German'), (u'st', u'Southern Sotho'), (u'kn', u'Kannada'), (u'hau', u'Hausa'), (u'oj', u'Ojibwe, Ojibwa'), (u'wa', u'Walloon'), (u'ie', u'Interlingue'), (u've', u'Venda'), (u'es_mx', u'Spanish, Mexico'), (u'za', u'Zhuang, Chuang'), (u'ca', u'Catalan; Valencian'), (u'ne_np', u'Nepali'), (u'kg', u'Kongo'), (u'br', u'Breton'), (u'mk', u'Macedonian'), (u'my', u'Burmese'), (u'fa', u'Persian'), (u'mg', u'Malagasy'), (u'el', u'Greek, Modern'), (u'mt', u'Maltese'), (u'da', u'Danish'), (u'fr_ca', u'French, Canada'), (u'gv', u'Manx'), (u'fy_nl', u'Frisian'), (u'sr_cs', u'Serbian, Cyrillic'), (u'li', u'Limburgish, Limburgan, Limburger'), (u'it', u'Italian'), (u'fil', u'Filipino'), (u'ht', u'Haitian; Haitian Creole'), (u'lb', u'Luxembourgish, Letzeburgesch'), (u'nd', u'North Ndebele'), (u'km', u'Khmer'), (u'ps', u'Pashto, Pushto'), (u'ho', u'Hiri Motu'), (u'dv', u'Divehi; Dhivehi; Maldivian;'), (u'lo', u'Lao'), (u'ur_pk', u'Swedish'), (u'sm', u'Samoan'), (u'tw', u'Twi'), (u'sc', u'Sardinian'), (u'om', u'Oromo'), (u'se', u'Northern Sami'), (u'mh', u'Marshallese'), (u'aa', u'Afar'), (u'lu', u'Luba-Katanga'), (u'mlg', u'Malagasy'), (u'zh_tw', u'Chinese, Traditional'), (u'ik', u'Inupiaq'), (u'nb', u'Norwegian Bokm\xe5l'), (u'ss', u'Swati'), (u'xho', u'Xhosa'), (u'ak', u'Akan'), (u'cy', u'Welsh'), (u'som', u'Somali'), (u'av', u'Avaric'), (u'hi', u'Hindi'), (u'ug', u'Uighur, Uyghur'), (u'fi', u'Finnish'), (u'ig', u'Igbo'), (u'ki', u'Kikuyu, Gikuyu'), (u'os', u'Ossetian, Ossetic'), (u'so', u'Somali'), (u'kj', u'Kwanyama, Kuanyama'), (u'sr', u'Serbian'), (u'sg', u'Sango'), (u'lv', u'Latvian'), (u'cv', u'Chuvash'), (u'kon', u'Kongo'), (u'sl', u'Slovene'), (u'ny', u'Chichewa; Chewa; Nyanja'), (u'es_ar', u'Spanish, Argentina'), (u'iu', u'Inuktitut'), (u'ae', u'Avestan'), (u'af', u'Afrikaans'), (u'bh', u'Bihari'), (u'nr', u'South Ndebele'), (u'bn', u'Bengali'), (u'te', u'Telugu'), (u'ng', u'Ndonga'), (u'sk', u'Slovak'), (u'su', u'Sundanese'), (u'lg', u'Luganda'), (u'eo', u'Esperanto'), (u'ro', u'Romanian, Moldavian, Moldovan'), (u'wol', u'Wolof'), (u'xh', u'Xhosa'), (u'sna', u'Shona'), (u'ka', u'Georgian'), (u'kik', u'Kikuyu'), (u'sa', u'Sanskrit (Sa\u1e41sk\u1e5bta)'), (u'ln', u'Lingala'), (u'ne', u'Nepali'), (u'gl', u'Galician'), (u'nl', u'Dutch'), (u'es', u'Spanish; Castilian'), (u'eu', u'Basque'), (u'kk', u'Kazakh'), (u'sv', u'Swedish'), (u'lin', u'Lingala'), (u'ab', u'Abkhaz'), (u'nn', u'Norwegian Nynorsk'), (u'hz', u'Herero'), (u'gd', u'Scottish Gaelic; Gaelic'), (u'ch', u'Chamorro'), (u'uk', u'Ukrainian'), (u'ja', u'Japanese'), (u'ce', u'Chechen')])
FILE_UPLOAD_TEMP_DIR = None
INTERNAL_IPS = '127.0.0.1'
STATIC_URL = '/static/'
CENTRAL_SERVER_URL = 'http://staging.learningequality.org'
EMAIL_PORT = 25
USE_TZ = False
SHORT_DATETIME_FORMAT = 'm/d/Y P'
PASSWORD_HASHERS = u'********************'
ABSOLUTE_URL_OVERRIDES = {}
DB_TEMPLATE_DEFAULT = '/Users/Eli/Desktop/ka-lite/kalite/database/templates/data.sqlite'
DEFAULT_ENCODING = 'utf-8'
CACHE_MIDDLEWARE_SECONDS = 600
ASSESSMENT_ITEMS_ZIP_URL = 'https://learningequality.org/downloads/ka-lite/0.16/content/assessment.zip'
DEBUG_TOOLBAR_CONFIG = {'ENABLE_STACKTRACES': True}
DATETIME_INPUT_FORMATS = 
TRANSACTIONS_MANAGED = False
TESTS_TO_SKIP = ['medium', '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.

api.js:83 SyntaxError: Unexpected token N(…)

How to reproduce

  1. run kalite manage generaterealdata to create some users
  2. login with on user and go to progress report
  3. scroll down to the last item and click the unfold button.
benjaoming commented 7 years ago

Not able to reproduce with generaterealdata and a user with 21 items in list.