langcog / web-cdi

7 stars 5 forks source link

NameError at /form/group/CI.MBCDIs/R21/ name 'administration_instance' is not defined #205

Closed HenryMehta closed 4 years ago

HenryMehta commented 4 years ago
Internal Server Error: /form/group/CI.MBCDIs/R21/

NameError at /form/group/CI.MBCDIs/R21/
name 'administration_instance' is not defined

Request Method: GET
Request URL: http://webcdi.stanford.edu/form/group/CI.MBCDIs/R21/
Django Version: 2.2.6
Python Executable: /opt/python/run/venv/bin/python3
Python Version: 3.6.8
Python Path: ['/opt/python/current/app/webcdi', '/opt/python/current/app', '/opt/python/current/app/web-cdi', '/opt/python/current/app', '', '/opt/python/run/venv/local/lib64/python3.6/site-packages', '/opt/python/run/venv/local/lib/python3.6/site-packages', '/opt/python/run/venv/lib64/python3.6', '/opt/python/run/venv/lib/python3.6', '/opt/python/run/venv/lib64/python3.6/site-packages', '/opt/python/run/venv/lib/python3.6/site-packages', '/opt/python/run/venv/lib64/python3.6/lib-dynload', '/usr/lib64/python3.6', '/usr/lib/python3.6']
Server time: Wed, 11 Dec 2019 04:37:40 +0000
Installed Applications:
('researcher_UI',
 'modeltranslation',
 'django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'django.contrib.humanize',
 'cdi_forms',
 'crispy_forms',
 'django_tables2',
 'bootstrap4',
 'bootstrap3',
 'form_utils',
 'registration',
 'supplementtut',
 'django.contrib.sites',
 'axes',
 'health_check',
 'health_check.db',
 'health_check.cache',
 'health_check.storage',
 'localflavor',
 'django_countries',
 'webcdi',
 'ckeditor',
 'ckeditor_uploader')
Installed Middleware:
['django.middleware.common.BrokenLinkEmailsMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware',
 'django.middleware.security.SecurityMiddleware',
 'axes.middleware.AxesMiddleware']

Traceback:

File "/opt/python/run/venv/local/lib/python3.6/site-packages/django/core/handlers/exception.py" in inner
  34.             response = get_response(request)

File "/opt/python/run/venv/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
  115.                 response = self.process_exception_by_middleware(e, request)

File "/opt/python/run/venv/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
  113.                 response = wrapped_callback(request, *callback_args, **callback_kwargs)

File "/opt/python/current/app/webcdi/cdi_forms/views.py" in find_paired_studies
  791.     user_language = language_map(administration_instance.study.instrument.language)