IndexError at /songs-creative/resources/how-to-use-bluetooth-beacons/using-physical-web/configuring-beacons/

list index out of range
Request Method:
Request URL: http://shadow.historyworks.tv
Django Version: 1.7
Exception Type: IndexError
Exception Value:
list index out of range
Exception Location: /var/www/djapp/singing/historyworks/base_content/models.py in get_meta_description, line 89
Python Executable: /usr/bin/python
Python Version: 2.7.6
Python Path:
['/var/www/Envs/foiresearch/src/django-ajax-selects-master',
 '/var/www/Envs/foiresearch/src/django-doctohtml',
 '/var/www/Envs/foiresearch/src/django-jimmypage-master',
 '/var/www/Envs/foiresearch/src/django-oembed',
 '/var/www/Envs/foiresearch/src/django-ordered-model',
 '/var/www/Envs/foiresearch/src/django-proxyfix',
 '/var/www/Envs/foiresearch/src/django-twync',
 '/var/www/Envs/foiresearch/src/django-forms-builder',
 '/var/www/Envs/foiresearch/src/django-staticgenerator',
 '/var/www/djapp/utils/django-translate',
 '/var/www/Envs/foiresearch/src/django-sitestructure-django17',
 '/var/www/Envs/foiresearch/src/django-filebrowser',
 '/var/www/Envs/foiresearch/src/django-cacheds3-storage',
 '/var/www/djapp/singing',
 '/var/www/Envs/foiresearch/lib/python2.7/site-packages',
 '/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/lib/python2.7/dist-packages']
Server time: Tue, 20 Sep 2016 16:05:58 +0100

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
SERVER_NAME
u'shadow.historyworks.tv'
SERVER_PORT
80

Settings

Using settings module historyworks.settings

Setting Value
FILEBROWSER_VERSIONS
{'admin_bar': {'height': 15, 'opts': 'crop upscale', 'width': ''},
 'banner_cover_pic': {'height': 150,
                      'opts': 'crop upscale',
                      'verbose_name': 'Long thin black+white banner pic (3000px)',
                      'width': 3000},
 'big': {'height': '',
         'opts': '',
         'verbose_name': 'Big (620px)',
         'width': 620},
 'cover_pic': {'height': '',
               'opts': 'crop upscale',
               'verbose_name': 'Banner image (1000px)',
               'width': 1000},
 'fb_thumb': {'height': 60,
              'opts': 'crop upscale',
              'verbose_name': 'Admin Thumbnail',
              'width': 60},
 'front_menu': {'height': 215,
                'opts': 'crop upscale',
                'verbose_name': 'Front page menu (215px)',
                'width': 215},
 'front_news_thumb': {'height': 100, 'opts': 'crop upscale', 'width': 100},
 'inner_thumbnail': {'height': 200,
                     'opts': 'crop upscale',
                     'verbose_name': 'Standard inner page thumbnail (200px)',
                     'width': 200},
 'ipup_thumb': {'height': 140, 'opts': 'crop upscale', 'width': 130},
 'large': {'height': '',
           'opts': '',
           'verbose_name': 'Big (620px)',
           'width': 620},
 'medium': {'height': '',
            'opts': '',
            'verbose_name': 'Medium (460px)',
            'width': 460},
 'meta_thumb': {'height': 200,
                'opts': 'crop upscale',
                'verbose_name': 'Meta property thumbnail',
                'width': 200},
 'news_index': {'height': 200, 'opts': 'crop upscale', 'width': 200},
 'person_detail': {'height': 180,
                   'opts': 'crop upscale',
                   'verbose_name': 'Main person pic',
                   'width': 200},
 'rhs_thumb': {'height': 110,
               'opts': 'crop upscale',
               'verbose_name': 'RHS menu thumb',
               'width': 125},
 'rhs_thumb_small': {'height': 80,
                     'opts': 'crop upscale',
                     'verbose_name': 'RHS menu thumb',
                     'width': 90},
 'small': {'height': '',
           'opts': '',
           'verbose_name': 'Small (300px)',
           'width': 300},
 'thumbnail': {'height': '',
               'opts': '',
               'verbose_name': 'Thumbnail (140px)',
               'width': 140},
 'training_person_thumb': {'height': 70,
                           'opts': 'crop upscale',
                           'verbose_name': 'Training person thumbnail (80px)',
                           'width': 100}}
USE_L10N
True
SITE_URL
'http://singinghistory.ricktaylordesign.co.uk'
CSRF_COOKIE_SECURE
False
LANGUAGE_CODE
'en-gb'
ROOT_URLCONF
'historyworks.urls'
MANAGERS
()
TWYNC_NUMBER
5
TEST_NON_SERIALIZED_APPS
[]
DEFAULT_CHARSET
'utf-8'
SESSION_SERIALIZER
'django.contrib.sessions.serializers.JSONSerializer'
STATIC_ROOT
'/var/www/djapp/singing/static/'
USE_THOUSAND_SEPARATOR
False
ALLOWED_HOSTS
['historyworks.tv']
MESSAGE_STORAGE
'django.contrib.messages.storage.fallback.FallbackStorage'
EMAIL_SUBJECT_PREFIX
'[Django] '
SEND_BROKEN_LINK_EMAILS
False
STATICFILES_FINDERS
('django.contrib.staticfiles.finders.FileSystemFinder',
 'django.contrib.staticfiles.finders.AppDirectoriesFinder')
FILEBROWSER_DIRECTORY
'uploads/'
SESSION_CACHE_ALIAS
'default'
SESSION_COOKIE_DOMAIN
None
SESSION_COOKIE_NAME
'sessionid'
AWS_STORAGE_BUCKET_NAME
'historyworks-media-01'
ADMIN_FOR
()
TIME_INPUT_FORMATS
('%H:%M:%S', '%H:%M:%S.%f', '%H:%M')
DATABASES
{'default': {'ATOMIC_REQUESTS': False,
             'AUTOCOMMIT': True,
             'CONN_MAX_AGE': 0,
             'ENGINE': 'django.db.backends.mysql',
             'HOST': 'tenar',
             'NAME': 'singinghistory',
             'OPTIONS': {},
             'PASSWORD': u'********************',
             'PORT': '',
             'TEST': {'CHARSET': None,
                      'COLLATION': None,
                      'MIRROR': None,
                      'NAME': None},
             'TIME_ZONE': None,
             'USER': 'singinghistory'},
 's3_db': {'ATOMIC_REQUESTS': False,
           'AUTOCOMMIT': True,
           'CONN_MAX_AGE': 0,
           'ENGINE': 'django.db.backends.mysql',
           'HOST': 'tenar',
           'NAME': 'historyworks',
           'OPTIONS': {},
           'PASSWORD': u'********************',
           'PORT': '',
           'TEST': {'CHARSET': None,
                    'COLLATION': None,
                    'MIRROR': None,
                    'NAME': None},
           'TIME_ZONE': None,
           'USER': 'historyworks'}}
FILEBROWSER_ADMIN_THUMBNAIL
'fb_thumb'
FILE_UPLOAD_DIRECTORY_PERMISSIONS
None
AWS_PRELOAD_METADATA
True
FILE_UPLOAD_PERMISSIONS
None
FILE_UPLOAD_HANDLERS
('django.core.files.uploadhandler.MemoryFileUploadHandler',
 'django.core.files.uploadhandler.TemporaryFileUploadHandler')
DEFAULT_CONTENT_TYPE
'text/html'
MAILCHIMP_LIST_ID
'254752842b'
APPEND_SLASH
True
FIRST_DAY_OF_WEEK
0
DATABASE_ROUTERS
['cachedS3.routers.CachedS3Router']
FILEBROWSER_OVERWRITE_EXISTING
False
SECTION_MODEL
('pages', 'section')
YEAR_MONTH_FORMAT
'F Y'
STATICFILES_STORAGE
'django.contrib.staticfiles.storage.StaticFilesStorage'
DATABASE_DISTRIBUTION
{'development': {'default': {'ENGINE': 'django.db.backends.mysql',
                             'HOST': 'tenar',
                             'NAME': 'singinghistory',
                             'PASSWORD': u'********************',
                             'PORT': '',
                             'USER': 'singinghistory'},
                 's3_db': {'ENGINE': 'django.db.backends.mysql',
                           'HOST': 'tenar',
                           'NAME': 'historyworks',
                           'PASSWORD': u'********************',
                           'PORT': '',
                           'USER': 'historyworks'}},
 'production': {'default': {'ATOMIC_REQUESTS': False,
                            'AUTOCOMMIT': True,
                            'CONN_MAX_AGE': 0,
                            'ENGINE': 'django.db.backends.mysql',
                            'HOST': 'tenar',
                            'NAME': 'singinghistory',
                            'OPTIONS': {},
                            'PASSWORD': u'********************',
                            'PORT': '',
                            'TEST': {'CHARSET': None,
                                     'COLLATION': None,
                                     'MIRROR': None,
                                     'NAME': None},
                            'TIME_ZONE': None,
                            'USER': 'singinghistory'},
                's3_db': {'ATOMIC_REQUESTS': False,
                          'AUTOCOMMIT': True,
                          'CONN_MAX_AGE': 0,
                          'ENGINE': 'django.db.backends.mysql',
                          'HOST': 'tenar',
                          'NAME': 'historyworks',
                          'OPTIONS': {},
                          'PASSWORD': u'********************',
                          'PORT': '',
                          'TEST': {'CHARSET': None,
                                   'COLLATION': None,
                                   'MIRROR': None,
                                   'NAME': None},
                          'TIME_ZONE': None,
                          'USER': 'historyworks'}}}
ADMIN_SITE_URL
'http://singinghistory.ricktaylordesign.co.uk'
SERVER_EMAIL
'root@localhost'
SESSION_COOKIE_PATH
'/'
SILENCED_SYSTEM_CHECKS
[]
MIDDLEWARE_CLASSES
('sitestructure.middleware.AdminAddUrlsMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'sitestructure.middleware.AdminRedirectMiddleware')
USE_I18N
True
SITE_NODE_MODELS
('training', 'project', 'person', 'newsitem')
SECRET_KEY
u'********************'
LANGUAGE_COOKIE_NAME
'django_language'
FILE_UPLOAD_TEMP_DIR
None
TWYNC_SECRET
u'********************'
DEFAULT_TABLESPACE
''
TWYNC_KEY
u'********************'
TRANSACTIONS_MANAGED
False
LOGGING_CONFIG
'logging.config.dictConfig'
TEMPLATE_LOADERS
('django.template.loaders.filesystem.Loader',
 'django.template.loaders.app_directories.Loader',
 'apptemplates.Loader')
WSGI_APPLICATION
None
TEMPLATE_DEBUG
False
X_FRAME_OPTIONS
'SAMEORIGIN'
CSRF_COOKIE_NAME
'csrftoken'
FORCE_SCRIPT_NAME
None
USE_X_FORWARDED_HOST
False
SIGNING_BACKEND
'django.core.signing.TimestampSigner'
SESSION_COOKIE_SECURE
False
CSRF_COOKIE_DOMAIN
None
FILE_CHARSET
'utf-8'
DEBUG
True
LANGUAGE_COOKIE_DOMAIN
None
AWS_ACCESS_KEY_ID
u'********************'
DEFAULT_FILE_STORAGE
'historyworks.backends.MediaS3BotoStorage'
INSTALLED_APPS
('django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'sitestructure',
 'oembed',
 'jimmypage',
 'grappelli',
 'filebrowser',
 'django.contrib.admin',
 'mptt',
 'staticgenerator',
 'twync',
 'forms_builder.forms',
 'storages',
 'cachedS3',
 'rpc4django',
 'historyworks.base_content',
 'historyworks.pages')
LANGUAGES
(('af', 'Afrikaans'),
 ('ar', 'Arabic'),
 ('ast', 'Asturian'),
 ('az', 'Azerbaijani'),
 ('bg', 'Bulgarian'),
 ('be', 'Belarusian'),
 ('bn', 'Bengali'),
 ('br', 'Breton'),
 ('bs', 'Bosnian'),
 ('ca', 'Catalan'),
 ('cs', 'Czech'),
 ('cy', 'Welsh'),
 ('da', 'Danish'),
 ('de', 'German'),
 ('el', 'Greek'),
 ('en', 'English'),
 ('en-au', 'Australian English'),
 ('en-gb', 'British English'),
 ('eo', 'Esperanto'),
 ('es', 'Spanish'),
 ('es-ar', 'Argentinian Spanish'),
 ('es-mx', 'Mexican Spanish'),
 ('es-ni', 'Nicaraguan Spanish'),
 ('es-ve', 'Venezuelan Spanish'),
 ('et', 'Estonian'),
 ('eu', 'Basque'),
 ('fa', 'Persian'),
 ('fi', 'Finnish'),
 ('fr', 'French'),
 ('fy', 'Frisian'),
 ('ga', 'Irish'),
 ('gl', 'Galician'),
 ('he', 'Hebrew'),
 ('hi', 'Hindi'),
 ('hr', 'Croatian'),
 ('hu', 'Hungarian'),
 ('ia', 'Interlingua'),
 ('id', 'Indonesian'),
 ('io', 'Ido'),
 ('is', 'Icelandic'),
 ('it', 'Italian'),
 ('ja', 'Japanese'),
 ('ka', 'Georgian'),
 ('kk', 'Kazakh'),
 ('km', 'Khmer'),
 ('kn', 'Kannada'),
 ('ko', 'Korean'),
 ('lb', 'Luxembourgish'),
 ('lt', 'Lithuanian'),
 ('lv', 'Latvian'),
 ('mk', 'Macedonian'),
 ('ml', 'Malayalam'),
 ('mn', 'Mongolian'),
 ('mr', 'Marathi'),
 ('my', 'Burmese'),
 ('nb', 'Norwegian Bokmal'),
 ('ne', 'Nepali'),
 ('nl', 'Dutch'),
 ('nn', 'Norwegian Nynorsk'),
 ('os', 'Ossetic'),
 ('pa', 'Punjabi'),
 ('pl', 'Polish'),
 ('pt', 'Portuguese'),
 ('pt-br', 'Brazilian Portuguese'),
 ('ro', 'Romanian'),
 ('ru', 'Russian'),
 ('sk', 'Slovak'),
 ('sl', 'Slovenian'),
 ('sq', 'Albanian'),
 ('sr', 'Serbian'),
 ('sr-latn', 'Serbian Latin'),
 ('sv', 'Swedish'),
 ('sw', 'Swahili'),
 ('ta', 'Tamil'),
 ('te', 'Telugu'),
 ('th', 'Thai'),
 ('tr', 'Turkish'),
 ('tt', 'Tatar'),
 ('udm', 'Udmurt'),
 ('uk', 'Ukrainian'),
 ('ur', 'Urdu'),
 ('vi', 'Vietnamese'),
 ('zh-cn', 'Simplified Chinese'),
 ('zh-hans', 'Simplified Chinese'),
 ('zh-hant', 'Traditional Chinese'),
 ('zh-tw', 'Traditional Chinese'))
COMMENTS_ALLOW_PROFANITIES
False
STATICFILES_DIRS
()
TWYNC_ACCESS_SECRET
u'********************'
PREPEND_WWW
False
SECURE_PROXY_SSL_HEADER
None
PASSWORD_RESET_TIMEOUT_DAYS
u'********************'
LANGUAGE_COOKIE_AGE
None
SESSION_COOKIE_HTTPONLY
True
AWS_SECRET_ACCESS_KEY
u'********************'
DEBUG_PROPAGATE_EXCEPTIONS
False
CSRF_COOKIE_AGE
31449600
CACHES
{'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}}
MONTH_DAY_FORMAT
'F j'
AWS_QUERYSTRING_AUTH
False
LOGIN_URL
'/accounts/login/'
SESSION_EXPIRE_AT_BROWSER_CLOSE
False
TIME_FORMAT
'P'
AUTH_USER_MODEL
'auth.User'
DATE_INPUT_FORMATS
('%Y-%m-%d',
 '%d/%m/%Y',
 '%d/%m/%y',
 '%m/%d/%Y',
 '%m/%d/%y',
 '%d %b %Y',
 '%d %b, %Y',
 '%b %d %Y',
 '%b %d, %Y',
 '%d %B %Y',
 '%d %B, %Y',
 '%B %d %Y',
 '%B %d, %Y')
SITE_HANDLE
'historyworks'
AUTHENTICATION_BACKENDS
('django.contrib.auth.backends.ModelBackend',)
EMAIL_HOST_PASSWORD
u'********************'
CACHEDS3_DATABASE_NAME
's3_db'
GRAPPELLI_ADMIN_TITLE
'Historyworks Admin'
SESSION_FILE_PATH
None
CACHE_MIDDLEWARE_ALIAS
'default'
SESSION_SAVE_EVERY_REQUEST
False
ADMIN_MEDIA_PREFIX
'/static/admin/'
NUMBER_GROUPING
0
SESSION_ENGINE
'django.contrib.sessions.backends.db'
CSRF_FAILURE_VIEW
'django.views.csrf.csrf_failure'
CSRF_COOKIE_PATH
'/'
PAGE_MODEL
('pages', 'contentnode')
LOGIN_REDIRECT_URL
'/accounts/profile/'
TEMPLATE_STRING_IF_INVALID
''
DECIMAL_SEPARATOR
'.'
CACHEDS3_USE_TAG_DIRECTORIES
True
IGNORABLE_404_URLS
()
SITE_ID
1
LOCALE_PATHS
()
CONTENT_NODE_APP
'pages'
LOGOUT_URL
'/accounts/logout/'
EMAIL_USE_TLS
False
FIXTURE_DIRS
()
EMAIL_HOST
'localhost'
DATE_FORMAT
'j F, Y'
TWYNC_ACCESS
'377345758-VR8l9vzVLMREoGKTufCrpzfg1svyQE5mIjXX5t2z'
MEDIA_ROOT
''
DEFAULT_EXCEPTION_REPORTER_FILTER
'django.views.debug.SafeExceptionReporterFilter'
ADMINS
()
FORMAT_MODULE_PATH
None
DEFAULT_FROM_EMAIL
'webmaster@localhost'
THOUSAND_SEPARATOR
','
MEDIA_URL
''
DATETIME_FORMAT
'j F, Y, P'
TEMPLATE_DIRS
('/var/www/djapp/historyworks/historyworks/templates',)
MAILCHIMP_API_KEY
u'********************'
DISALLOWED_USER_AGENTS
()
ALLOWED_INCLUDE_ROOTS
()
LOGGING
{'disable_existing_loggers': False,
 'handlers': {'null': {'class': 'django.utils.log.NullHandler',
                       'level': 'DEBUG'}},
 'loggers': {'django.db.backends': {'handlers': ['null'],
                                    'level': 'DEBUG',
                                    'propagate': False}},
 'version': 1}
SHORT_DATE_FORMAT
'm/d/Y'
TWYNC_HANDLE
'@historyworkstv'
TEST_RUNNER
'django.test.runner.DiscoverRunner'
TWYNC_SHOW_RETWEETS
False
CACHE_MIDDLEWARE_KEY_PREFIX
u'********************'
TWYNC_SHOW_REPLIES
False
TIME_ZONE
None
FILE_UPLOAD_MAX_MEMORY_SIZE
2621440
WEB_ROOT
'/var/www/sites/singing'
RUNNING_DEVSERVER
False
CONTENT_NODE_MODEL
'contentnode'
EMAIL_BACKEND
'django.core.mail.backends.smtp.EmailBackend'
EMAIL_USE_SSL
False
TEMPLATE_CONTEXT_PROCESSORS
('django.contrib.auth.context_processors.auth',
 'django.core.context_processors.i18n',
 'django.core.context_processors.media',
 'django.core.context_processors.static',
 'django.contrib.messages.context_processors.messages',
 'django.core.context_processors.request',
 'historyworks.pages.context_processors.structure')
FILEBROWSER_LIST_PER_PAGE
10
SESSION_COOKIE_AGE
1209600
SETTINGS_MODULE
'historyworks.settings'
USE_ETAGS
False
LANGUAGES_BIDI
('he', 'ar', 'fa', 'ur')
NON_STANDARD_SITE_NODES
('newsitem',)
DEFAULT_INDEX_TABLESPACE
''
INTERNAL_IPS
()
STATIC_URL
'/static/'
PUBLISHABLE_MODEL
('pages', 'contentnode')
EMAIL_PORT
25
USE_TZ
False
SHORT_DATETIME_FORMAT
'm/d/Y P'
PASSWORD_HASHERS
u'********************'
ABSOLUTE_URL_OVERRIDES
{}
LANGUAGE_COOKIE_PATH
'/'
MIGRATION_MODULES
{}
SERIALIZATION_MODULES
{'njson': 'sitestructure.serializers.json'}
CACHE_MIDDLEWARE_SECONDS
600
CSRF_COOKIE_HTTPONLY
False
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')
FORMS_BUILDER_UPLOAD_ROOT
'/var/www/djapp/roderick/form-uploads/'
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.