NAVADMC / ADSM

A simulation of disease spread in livestock populations. Includes detection and containment simulation.
Other
10 stars 5 forks source link

Access denied #798

Closed missyschoenbaum closed 7 years ago

missyschoenbaum commented 7 years ago

This looks like it is pointing me back at the original dev environment from 2 years ago - somebody must be doing fun stuff this morning. I can no longer test. I will reboot just in case, and I did run npu after this started, which may not have helped.

AccessDenied at /setup/Scenario/1/ (pid=4820) Request Method: GET Request URL: http://127.0.0.1:8000/setup/Scenario/1/ Django Version: 1.8.2 Exception Type: AccessDenied Exception Value:
(pid=4820) Python Executable: C:\Users\meschoenbaum\Desktop\ADSM_9_16\ADSM_Beta.exe Python Version: 3.4.2 Python Path:
['C:\Users\meschoenbaum\Desktop\ADSM_9_16\ADSM_Beta.exe', 'C:\Users\meschoenbaum\Desktop\ADSM_9_16', 'C:\Users\meschoenbaum\Desktop\ADSM_9_16\ADSM_Beta.zip', 'C:\Users\meschoenbaum\Desktop\ADSM_9_16\library.zip', 'C:\Users\meschoenbaum\Desktop\ADSM_9_16', 'C:\Users\meschoenbaum\Desktop\ADSM_9_16\bin', 'C:\Users\meschoenbaum\Desktop\ADSM_9_16\bin\env', 'C:\Users\meschoenbaum\Desktop\ADSM_9_16'] Server time: Tue, 31 Jan 2017 18:00:24 +0000 Request information

GET No GET data POST No POST data FILES No FILES data COOKIES No cookie data META Variable Value SERVER_NAME '127.0.0.1' wsgi.multiprocess
False REQUEST_METHOD
'GET' wsgi.input
<cherrypy.wsgiserver.wsgiserver3.KnownLengthRFile object at 0x0000000009BE7780> HTTP_ACCEPT_LANGUAGE
'en-us,en;q=0.8' REMOTE_ADDR '127.0.0.1' HTTP_X_REAL_IP
'127.0.0.1' wsgi.errors

<_io.TextIOWrapper name='' mode='w' encoding='cp437'> HTTP_ACCEPT 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8' wsgi.run_once False SERVER_PROTOCOL 'HTTP/1.0' REQUEST_URI '/setup/Scenario/1/' ACTUAL_SERVER_PROTOCOL 'HTTP/1.1' SERVER_PORT '8001' HTTP_USER_AGENT 'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like ' 'Gecko) Chrome/39.0.2171.95 Safari/537.36' QUERY_STRING '' HTTP_REFERER 'http://127.0.0.1:8000/LoadingScreen/?loading_url=/app/Startup/' wsgi.url_scheme 'http' HTTP_HOST '127.0.0.1:8000' wsgi.multithread True wsgi.version (1, 0) PATH_INFO '/setup/Scenario/1/' HTTP_CONNECTION 'close' HTTP_ACCEPT_ENCODING 'gzip, deflate' SERVER_SOFTWARE 'CherryPy/3.6.0 Server' REMOTE_PORT '55900' HTTP_X_FORWARDED_FOR '127.0.0.1' SCRIPT_NAME '' Settings Using settings module ADSM.settings Setting Value PASSWORD_HASHERS '********************' TEMPLATE_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.contrib.messages.context_processors.messages') STATICFILES_DIRS ('C:\\Users\\meschoenbaum\\Desktop\\ADSM_9_16\\ADSM\\static',) DEFAULT_FILE_STORAGE 'django.core.files.storage.FileSystemStorage' DEFAULT_TABLESPACE '' SESSION_COOKIE_DOMAIN None APPEND_SLASH True DISALLOWED_USER_AGENTS () SESSION_COOKIE_AGE 1209600 SESSION_CACHE_ALIAS 'default' DEBUG_TOOLBAR_CONFIG {'JQUERY_URL': '', 'SHOW_TOOLBAR_CALLBACK': 'ddt_request_history.panels.request_history.allow_ajax'} IGNORABLE_404_URLS () EMAIL_HOST_PASSWORD '********************' FILE_UPLOAD_MAX_MEMORY_SIZE 2621440 SHORT_DATE_FORMAT 'm/d/Y' MIDDLEWARE_CLASSES ('django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'ADSMSettings.disable.DisableCSRF') TEST_NON_SERIALIZED_APPS [] AUTH_USER_MODEL 'auth.User' LOGOUT_URL '/accounts/logout/' DEFAULT_INDEX_TABLESPACE '' FIXTURE_DIRS () SECURE_SSL_REDIRECT False SECURE_REDIRECT_EXEMPT [] INSTALLED_APPS ('ScenarioCreator', 'Results', 'ADSMSettings', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.humanize', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'floppyforms', 'crispy_forms', 'productionserver', 'webpack_loader') CACHE_MIDDLEWARE_SECONDS 600 ABSOLUTE_URL_OVERRIDES {} USE_TZ True EMAIL_SUBJECT_PREFIX '[Django] ' CSIDL_PERSONAL 5 EMAIL_BACKEND 'django.core.mail.backends.console.EmailBackend' LANGUAGE_COOKIE_PATH '/' SECURE_HSTS_SECONDS 0 DEBUG_PROPAGATE_EXCEPTIONS False EMAIL_TIMEOUT None CSRF_COOKIE_NAME 'csrftoken' DEBUG_TOOLBAR_PANELS [] ALLOWED_INCLUDE_ROOTS () LOGGING_CONFIG 'logging.config.dictConfig' MEDIA_URL '/media/' X_FRAME_OPTIONS 'SAMEORIGIN' TEMPLATE_LOADERS ('django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader') LANGUAGE_COOKIE_NAME 'django_language' CSRF_COOKIE_PATH '/' LOGIN_REDIRECT_URL '/' SESSION_COOKIE_PATH '/' PREPEND_WWW False SILENCED_SYSTEM_CHECKS [] FILE_CHARSET 'utf-8' LOCALE_PATHS () DEFAULT_FROM_EMAIL 'noreply@development.server' DATABASES {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.sqlite3', 'HOST': '', 'NAME': 'C:\\Users\\meschoenbaum\\Documents\\ADSM ' 'Workspace\\settings\\settings.sqlite3', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': 'C:\\Users\\meschoenbaum\\Documents\\ADSM ' 'Workspace\\settings\\test_settings.sqlite3'}, 'TIME_ZONE': 'UTC', 'USER': ''}, 'scenario_db': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.sqlite3', 'HOST': '', 'NAME': 'C:\\Users\\meschoenbaum\\Documents\\ADSM ' 'Workspace\\settings\\activeSession.sqlite3', 'OPTIONS': {'timeout': 300}, 'PASSWORD': '********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': 'C:\\Users\\meschoenbaum\\Documents\\ADSM ' 'Workspace\\settings\\test_activeSession.sqlite3'}, 'TIME_ZONE': 'UTC', 'USER': ''}} USE_L10N True MONTH_DAY_FORMAT 'F j' CSRF_COOKIE_HTTPONLY False ROOT_URLCONF 'ADSM.urls' NUMBER_GROUPING 0 OS_DIR 'windows' SESSION_COOKIE_SECURE False SETTINGS_MODULE 'ADSM.settings' EMAIL_SSL_CERTFILE None SECURE_PROXY_SSL_HEADER None TEMPLATE_DEBUG True EMAIL_HOST 'localhost' SECURE_HSTS_INCLUDE_SUBDOMAINS False BASE_DIR 'C:\\Users\\meschoenbaum\\Desktop\\ADSM_9_16' LOGIN_URL '/accounts/login/' ADMINS () SIGNING_BACKEND 'django.core.signing.TimestampSigner' DECIMAL_SEPARATOR '.' EXTENSION '.exe' AUTHENTICATION_BACKENDS ('django.contrib.auth.backends.ModelBackend',) STATICFILES_STORAGE 'django.contrib.staticfiles.storage.StaticFilesStorage' 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') STATIC_ROOT 'C:\\Users\\meschoenbaum\\Desktop\\ADSM_9_16\\static' DEBUG_TOOLBAR_PATCH_SETTINGS False PRODUCTION_SETTINGS False CACHE_MIDDLEWARE_KEY_PREFIX '********************' CACHES {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} CSRF_COOKIE_SECURE False FILE_UPLOAD_TEMP_DIR None TEMPLATES [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['C:\\Users\\meschoenbaum\\Desktop\\ADSM_9_16\\ADSM\\templates', 'C:\\Users\\meschoenbaum\\Desktop\\ADSM_9_16\\templates\\ScenarioCreator', 'C:\\Users\\meschoenbaum\\Desktop\\ADSM_9_16\\templates\\Results', 'C:\\Users\\meschoenbaum\\Desktop\\ADSM_9_16\\templates\\ADSMSettings', 'C:\\Users\\meschoenbaum\\Desktop\\ADSM_9_16\\templates\\django.contrib.admin', 'C:\\Users\\meschoenbaum\\Desktop\\ADSM_9_16\\templates\\django.contrib.auth', 'C:\\Users\\meschoenbaum\\Desktop\\ADSM_9_16\\templates\\floppyforms', 'C:\\Users\\meschoenbaum\\Desktop\\ADSM_9_16\\templates\\crispy_forms', 'C:\\Users\\meschoenbaum\\Desktop\\ADSM_9_16\\templates\\ADSM\\templates'], 'OPTIONS': {'context_processors': ['django.contrib.auth.context_processors.auth', 'django.core.context_processors.debug', 'django.core.context_processors.i18n', 'django.core.context_processors.media', 'django.core.context_processors.static', 'django.core.context_processors.tz', 'django.contrib.messages.context_processors.messages', 'django.core.context_processors.request', 'ADSMSettings.context_processor.adsm_context', 'ScenarioCreator.context_processor.basic_context', 'Results.context_processor.results_context']}}] SESSION_FILE_PATH None USE_I18N False FORMAT_MODULE_PATH None SESSION_COOKIE_HTTPONLY True FILE_UPLOAD_DIRECTORY_PERMISSIONS None SECURE_BROWSER_XSS_FILTER False SCRIPT '.cmd' TEMPLATE_DIRS () TIME_FORMAT 'P' SHGFP_TYPE_CURRENT 0 DEFAULT_CONTENT_TYPE 'text/html' SECRET_KEY '********************' TEST_RUNNER 'django.test.runner.DiscoverRunner' USE_THOUSAND_SEPARATOR False LANGUAGE_CODE 'en-us' 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')) LANGUAGE_COOKIE_AGE None SESSION_EXPIRE_AT_BROWSER_CLOSE False LANGUAGE_COOKIE_DOMAIN None EMAIL_SSL_KEYFILE '********************' DATETIME_FORMAT 'N j, Y, P' EMAIL_USE_SSL False STATIC_URL '/static/' TIME_ZONE 'UTC' YEAR_MONTH_FORMAT 'F Y' DEBUG True DB_BASE_DIR 'C:\\Users\\meschoenbaum\\Documents\\ADSM Workspace\\settings' DATE_FORMAT 'N j, Y' ALLOWED_HOSTS [] CSRF_FAILURE_VIEW 'django.views.csrf.csrf_failure' CRISPY_TEMPLATE_PACK 'bootstrap' USE_X_FORWARDED_HOST False SERVER_EMAIL 'server@development.server' SECURE_CONTENT_TYPE_NOSNIFF False MIGRATION_MODULES {} WEBPACK_LOADER {'DEFAULT': {'BUNDLE_DIR_NAME': 'bundles/', 'STATS_FILE': 'C:\\Users\\meschoenbaum\\Desktop\\ADSM_9_16\\webpack-stats.json'}} SESSION_SAVE_EVERY_REQUEST False EMAIL_USE_TLS False EMAIL_HOST_USER '' SESSION_COOKIE_NAME 'sessionid' SESSION_SERIALIZER 'django.contrib.sessions.serializers.JSONSerializer' CSRF_COOKIE_AGE 31449600 LOGGING {} WSGI_APPLICATION 'ADSM.wsgi.application' 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') SECURE_SSL_HOST None MANAGERS () USE_ETAGS False EMAIL_PORT 25 DEFAULT_EXCEPTION_REPORTER_FILTER 'django.views.debug.SafeExceptionReporterFilter' CACHE_MIDDLEWARE_ALIAS 'default' SESSION_ENGINE 'django.contrib.sessions.backends.db' SHORT_DATETIME_FORMAT 'm/d/Y P' THOUSAND_SEPARATOR ',' TIME_INPUT_FORMATS ('%H:%M:%S', '%H:%M:%S.%f', '%H:%M') OVERRIDE_DEBUG False INTERNAL_IPS ('127.0.0.1', '::1') TEMPLATE_STRING_IF_INVALID '' FIRST_DAY_OF_WEEK 0 WORKSPACE_PATH 'C:\\Users\\meschoenbaum\\Documents\\ADSM Workspace' MEDIA_ROOT 'C:\\Users\\meschoenbaum\\Desktop\\ADSM_9_16\\media' FILE_UPLOAD_PERMISSIONS None FORCE_SCRIPT_NAME None FILE_UPLOAD_HANDLERS ('django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler') CSRF_COOKIE_DOMAIN None DATABASE_ROUTERS ['ScenarioCreator.router.ScenarioRouter'] LANGUAGES_BIDI ('he', 'ar', 'fa', 'ur') PASSWORD_RESET_TIMEOUT_DAYS '********************' DEFAULT_CHARSET 'utf-8' MESSAGE_STORAGE 'django.contrib.messages.storage.fallback.FallbackStorage' STATICFILES_FINDERS ('django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder') 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.
missyschoenbaum commented 7 years ago

Would love to know how I did this to myself. I reboot seems to have fixed. I am going to close.