NameError at /

name 'FOO' is not defined
Request Method: GET
Request URL: https://wpbeta.jpl.nasa.gov/
Django Version: 1.10
Exception Type: NameError
Exception Value:
name 'FOO' is not defined
Exception Location: urls.py in <module>, line 8
Python Executable: /websites/wpbeta/private/venvs/2.7.5_centos7/bin/python
Python Version: 2.7.5
Python Path:
['',
 '/websites/wpbeta/private/venvs/2.7.5_centos7/lib/python27.zip',
 '/websites/wpbeta/private/venvs/2.7.5_centos7/lib/python2.7',
 '/websites/wpbeta/private/venvs/2.7.5_centos7/lib/python2.7/plat-linux2',
 '/websites/wpbeta/private/venvs/2.7.5_centos7/lib/python2.7/lib-tk',
 '/websites/wpbeta/private/venvs/2.7.5_centos7/lib/python2.7/lib-old',
 '/websites/wpbeta/private/venvs/2.7.5_centos7/lib/python2.7/lib-dynload',
 '/opt/python/lib/python2.7',
 '/opt/python/lib/python2.7/plat-linux2',
 '/opt/python/lib/python2.7/lib-tk',
 '/websites/wpbeta/private/venvs/2.7.5_centos7/lib/python2.7/site-packages']
Server time: Tue, 8 Jan 2019 11:53:23 -0800

Traceback Switch to copy-and-paste view



Request information

USER

AnonymousUser

GET

No GET data

POST

No POST data

FILES

No FILES data

No cookie data

META

Variable Value
AJP_LOCAL_ADDR
'192.168.21.115'
AJP_REMOTE_PORT
'46080'
CONTENT_LENGTH
'0'
HTTP_ACCEPT
'*/*'
HTTP_HOST
'wpbeta.jpl.nasa.gov'
HTTP_USER_AGENT
'curl/7.29.0'
JK_LB_ACTIVATION
'ACT'
PATH_INFO
u'/'
QUERY_STRING
''
REMOTE_ADDR
'128.149.125.131'
REMOTE_HOST
''
REQUEST_METHOD
'GET'
REQUEST_URI
'/'
SCRIPT_NAME
u''
SERVER_NAME
'wpbeta.jpl.nasa.gov'
SERVER_PORT
'443'
SERVER_PROTOCOL
'HTTP/1.1'
wsgi.errors
<open file '<stderr>', mode 'w' at 0x7f4196fd91e0>
wsgi.file_wrapper
''
wsgi.input
<_wsgisup.InputStream object at 0x3869ae8>
wsgi.multiprocess
False
wsgi.multithread
True
wsgi.run_once
False
wsgi.url_scheme
'https'
wsgi.version
(1, 0)

Settings

Using settings module settings

Setting Value
ABSOLUTE_URL_OVERRIDES
{}
ADMINS
[]
ALLOWED_HOSTS
['wholeparts-beta', 'wholeparts-beta.jpl.nasa.gov']
APPEND_SLASH
True
APPLICATION_EXTENDED_TITLE
'Whole Parts'
APPLICATION_HELP_EMAIL
'wholeparts.siteadmins@jpl.nasa.gov'
APPLICATION_MAIN_TITLE
'Whole Parts'
APPLICATION_TIMESTAMP
'Jan 07, 2019'
APPLICATION_TITLE_URL
'/'
AUTHENTICATION_BACKENDS
('django_auth_ldap.backend.LDAPBackend',
 'django.contrib.auth.backends.ModelBackend')
AUTH_LDAP_GROUP_SEARCH
<django_auth_ldap.config.LDAPSearch object at 0x325f890>
AUTH_LDAP_GROUP_TYPE
<django_auth_ldap.config.GroupOfUniqueNamesType object at 0x325f990>
AUTH_LDAP_SERVER_URI
'ldaps://ldap.jpl.nasa.gov:636'
AUTH_LDAP_USER_ATTR_MAP
{'badge_number': 'jplbadgenumber',
 'directorate_level_number': 'jplinstorglevel1',
 'division_level_number': 'jplinstorglevel2',
 'email': 'mail',
 'employment_status': 'jplorganizationalstatus',
 'first_name': 'givenName',
 'group_level_number': 'jplinstorglevel4',
 'last_name': 'sn',
 'management_title': 'jplmanagementtitle',
 'organization': 'departmentnumber',
 'section_level_number': 'jplinstorglevel3',
 'supervisor': 'jplmanagerempno',
 'work_phone': 'telephonenumber'}
AUTH_LDAP_USER_DN_TEMPLATE
'uid=%(user)s,ou=personnel,dc=dir,dc=jpl,dc=nasa,dc=gov'
AUTH_LDAP_USER_FLAGS_BY_GROUP
{'is_staff': ['cn=wholeparts.sitestaff,ou=personnel,dc=dir,dc=jpl,dc=nasa,dc=gov'],
 'is_superuser': ['cn=wholeparts.siteadmins,ou=personnel,dc=dir,dc=jpl,dc=nasa,dc=gov']}
AUTH_PASSWORD_VALIDATORS
u'********************'
AUTH_USER_MODEL
'jpluser.JplUser'
BASE_DIR
'/websites/wpbeta/private/app/src'
BUILD_VERSION
'1.0.0-15-gb20e3fcz\n'
CACHES
{u'default': {u'BACKEND': u'django.core.cache.backends.locmem.LocMemCache'}}
CACHE_MIDDLEWARE_ALIAS
u'default'
CACHE_MIDDLEWARE_KEY_PREFIX
u'********************'
CACHE_MIDDLEWARE_SECONDS
600
CMS_PERMISSION
True
CSRF_COOKIE_AGE
31449600
CSRF_COOKIE_DOMAIN
None
CSRF_COOKIE_HTTPONLY
False
CSRF_COOKIE_NAME
u'csrftoken'
CSRF_COOKIE_PATH
u'/'
CSRF_COOKIE_SECURE
True
CSRF_FAILURE_VIEW
u'django.views.csrf.csrf_failure'
CSRF_HEADER_NAME
u'HTTP_X_CSRFTOKEN'
CSRF_TRUSTED_ORIGINS
[]
DATABASES
{'default': {'ATOMIC_REQUESTS': True,
             'AUTOCOMMIT': True,
             'CONN_MAX_AGE': 0,
             'ENGINE': 'django.db.backends.mysql',
             'HOST': 'web-mysql01.jpl.nasa.gov',
             'NAME': 'wpbeta_testrun0',
             'OPTIONS': {},
             'PASSWORD': u'********************',
             'PORT': '3306',
             'TEST': {'CHARSET': None,
                      'COLLATION': None,
                      'MIRROR': None,
                      'NAME': None},
             'TIME_ZONE': None,
             'USER': 'wpbeta_user'}}
DATABASE_ROUTERS
[]
DATA_UPLOAD_MAX_MEMORY_SIZE
2621440
DATA_UPLOAD_MAX_NUMBER_FIELDS
1000
DATETIME_FORMAT
u'N j, Y, P'
DATETIME_INPUT_FORMATS
[u'%Y-%m-%d %H:%M:%S',
 u'%Y-%m-%d %H:%M:%S.%f',
 u'%Y-%m-%d %H:%M',
 u'%Y-%m-%d',
 u'%m/%d/%Y %H:%M:%S',
 u'%m/%d/%Y %H:%M:%S.%f',
 u'%m/%d/%Y %H:%M',
 u'%m/%d/%Y',
 u'%m/%d/%y %H:%M:%S',
 u'%m/%d/%y %H:%M:%S.%f',
 u'%m/%d/%y %H:%M',
 u'%m/%d/%y']
DATE_FORMAT
u'N j, Y'
DATE_INPUT_FORMATS
[u'%Y-%m-%d',
 u'%m/%d/%Y',
 u'%m/%d/%y',
 u'%b %d %Y',
 u'%b %d, %Y',
 u'%d %b %Y',
 u'%d %b, %Y',
 u'%B %d %Y',
 u'%B %d, %Y',
 u'%d %B %Y',
 u'%d %B, %Y']
DB_PASSWORD
u'********************'
DEBUG
True
DEBUG_PROPAGATE_EXCEPTIONS
False
DECIMAL_SEPARATOR
u'.'
DEFAULT_CHARSET
u'utf-8'
DEFAULT_CONTENT_TYPE
u'text/html'
DEFAULT_EXCEPTION_REPORTER_FILTER
u'django.views.debug.SafeExceptionReporterFilter'
DEFAULT_FILE_STORAGE
u'django.core.files.storage.FileSystemStorage'
DEFAULT_FROM_EMAIL
u'webmaster@localhost'
DEFAULT_INDEX_TABLESPACE
u''
DEFAULT_TABLESPACE
u''
DEPLOY_TIME
datetime.datetime(2019, 1, 7, 18, 27, 45, 373286)
DISALLOWED_USER_AGENTS
[]
EMAIL_BACKEND
u'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST
u'localhost'
EMAIL_HOST_PASSWORD
u'********************'
EMAIL_HOST_USER
u''
EMAIL_PORT
25
EMAIL_SSL_CERTFILE
None
EMAIL_SSL_KEYFILE
u'********************'
EMAIL_SUBJECT_PREFIX
u'[Django] '
EMAIL_TIMEOUT
None
EMAIL_USE_SSL
False
EMAIL_USE_TLS
False
FILER_DEBUG
True
FILE_CHARSET
u'utf-8'
FILE_DATA_DIR
'data/'
FILE_UPLOAD_DIRECTORY_PERMISSIONS
None
FILE_UPLOAD_HANDLERS
[u'django.core.files.uploadhandler.MemoryFileUploadHandler',
 u'django.core.files.uploadhandler.TemporaryFileUploadHandler']
FILE_UPLOAD_MAX_MEMORY_SIZE
2621440
FILE_UPLOAD_PERMISSIONS
None
FILE_UPLOAD_TEMP_DIR
None
FIRST_DAY_OF_WEEK
0
FIXTURE_DIRS
[]
FORCE_SCRIPT_NAME
None
FORMAT_MODULE_PATH
None
IGNORABLE_404_URLS
[]
INSTALLED_APPS
['djangosecure',
 'djangocms_admin_style',
 'django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.messages',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.sitemaps',
 'django.contrib.staticfiles',
 'jpluser',
 'wholeparts',
 'mptt',
 'django_extensions',
 'django_cleanup',
 'widget_tweaks']
INTERNAL_IPS
[]
LANGUAGES
[('en', 'English')]
LANGUAGES_BIDI
[u'he', u'ar', u'fa', u'ur']
LANGUAGE_CODE
'en'
LANGUAGE_COOKIE_AGE
None
LANGUAGE_COOKIE_DOMAIN
None
LANGUAGE_COOKIE_NAME
u'django_language'
LANGUAGE_COOKIE_PATH
u'/'
LOCALE_PATHS
[]
LOGGING
{'disable_existing_loggers': False,
 'formatters': {'simple': {'datefmt': '%Y-%m-%d %H:%M:%S',
                           'format': '[%(asctime)s] %(levelname)s %(message)s'},
                'verbose': {'datefmt': '%Y-%m-%d %H:%M:%S',
                            'format': '[%(asctime)s] %(levelname)s [%(name)s.%(funcName)s:%(lineno)d] %(message)s'}},
 'handlers': {'api_logfile': u'********************',
              'file': {'class': 'logging.handlers.TimedRotatingFileHandler',
                       'filename': '/websites/wpbeta/private/logs/app.log',
                       'formatter': 'verbose',
                       'level': 'DEBUG'}},
 'loggers': {'api_logger': u'********************',
             'django': {'handlers': ['file'],
                        'level': 'WARNING',
                        'propagate': True},
             'wholeparts': {'handlers': ['file'], 'level': 'WARNING'}},
 'version': 1}
LOGGING_CONFIG
u'logging.config.dictConfig'
LOGIN_REDIRECT_URL
u'/accounts/profile/'
LOGIN_URL
'/login/'
LOGOUT_REDIRECT_URL
None
MANAGERS
[]
MAX_EXCEL_UPLOAD_SIZE_BYTES
26214400
MAX_FILE_UPLOAD_SIZE_BYTES
209715200
MAX_IMPORT_ROWS
1000
MEDIA_ROOT
'/websites/wpbeta/www/media'
MEDIA_URL
'/media/'
MEGA_BYTE
1048576
MESSAGE_STORAGE
u'django.contrib.messages.storage.fallback.FallbackStorage'
MIDDLEWARE
None
MIDDLEWARE_CLASSES
['djangosecure.middleware.SecurityMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.locale.LocaleMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware']
MIGRATION_MODULES
{'menus': 'menus.migrations_django', 'wholeparts': 'wholeparts.migrations'}
MONTH_DAY_FORMAT
u'F j'
NUMBER_GROUPING
0
PASSWORD_HASHERS
u'********************'
PASSWORD_RESET_TIMEOUT_DAYS
u'********************'
PREPEND_WWW
False
PROJECT_DIR
Path('')
PROJECT_NAME
'wholeparts'
ROOT_URLCONF
'urls'
SECRET_KEY
u'********************'
SECURE_BROWSER_XSS_FILTER
False
SECURE_CONTENT_TYPE_NOSNIFF
False
SECURE_FRAME_DENY
True
SECURE_HSTS_INCLUDE_SUBDOMAINS
False
SECURE_HSTS_SECONDS
0
SECURE_PROXY_SSL_HEADER
None
SECURE_REDIRECT_EXEMPT
[]
SECURE_SSL_HOST
None
SECURE_SSL_REDIRECT
True
SERVER_EMAIL
u'root@localhost'
SESSION_CACHE_ALIAS
u'default'
SESSION_COOKIE_AGE
13900
SESSION_COOKIE_DOMAIN
None
SESSION_COOKIE_HTTPONLY
True
SESSION_COOKIE_NAME
u'sessionid'
SESSION_COOKIE_PATH
u'/'
SESSION_COOKIE_SECURE
True
SESSION_ENGINE
u'django.contrib.sessions.backends.db'
SESSION_EXPIRE_AT_BROWSER_CLOSE
False
SESSION_FILE_PATH
None
SESSION_SAVE_EVERY_REQUEST
True
SESSION_SERIALIZER
u'django.contrib.sessions.serializers.JSONSerializer'
SETTINGS_MODULE
'settings'
SHORT_DATETIME_FORMAT
u'm/d/Y P'
SHORT_DATE_FORMAT
u'm/d/Y'
SIGNING_BACKEND
u'django.core.signing.TimestampSigner'
SILENCED_SYSTEM_CHECKS
[]
SITE_ID
1
STATICFILES_DIRS
(Path('static'),)
STATICFILES_FINDERS
['django.contrib.staticfiles.finders.FileSystemFinder',
 'django.contrib.staticfiles.finders.AppDirectoriesFinder']
STATICFILES_STORAGE
u'django.contrib.staticfiles.storage.StaticFilesStorage'
STATIC_ROOT
'/websites/wpbeta/www/static'
STATIC_URL
'/static/'
TEMPLATES
[{'APP_DIRS': True,
  'BACKEND': 'django.template.backends.django.DjangoTemplates',
  'DIRS': [Path('templates')],
  'OPTIONS': {'context_processors': ['django.contrib.auth.context_processors.auth',
                                     'django.template.context_processors.debug',
                                     'django.template.context_processors.i18n',
                                     'django.template.context_processors.media',
                                     'django.template.context_processors.static',
                                     'django.template.context_processors.tz',
                                     'django.template.context_processors.csrf',
                                     'django.template.context_processors.request',
                                     'django.contrib.messages.context_processors.messages',
                                     'wholeparts.context_processors.site_info'],
              'debug': False}}]
TEST_NON_SERIALIZED_APPS
[]
TEST_RUNNER
u'django.test.runner.DiscoverRunner'
THOUSAND_SEPARATOR
u','
THUMBNAIL_HIGH_RESOLUTION
True
THUMBNAIL_PROCESSORS
('easy_thumbnails.processors.colorspace',
 'easy_thumbnails.processors.autocrop',
 'filer.thumbnail_processors.scale_and_crop_with_subject_location',
 'easy_thumbnails.processors.filters')
TIME_FORMAT
u'P'
TIME_INPUT_FORMATS
[u'%H:%M:%S', u'%H:%M:%S.%f', u'%H:%M']
TIME_ZONE
'America/Los_Angeles'
TRANSIENT_DATA_DIR
'fds'
USE_ETAGS
False
USE_I18N
True
USE_L10N
True
USE_THOUSAND_SEPARATOR
False
USE_TZ
True
USE_X_FORWARDED_HOST
False
USE_X_FORWARDED_PORT
False
USING_DEBUG_TOOLBAR
False
WSGI_APPLICATION
'wsgi.application'
X_FRAME_OPTIONS
u'SAMEORIGIN'
YEAR_MONTH_FORMAT
u'F Y'

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 page generated by the handler for this status code.