IndexError at /documents/preview/5c68e7db8d0a44659d6b73e4988ff9c1/exam-1-study-guide
list index out of range
Request Method: POST
Request URL: https://www.mycollegehomepage.com/documents/preview/5c68e7db8d0a44659d6b73e4988ff9c1/exam-1-study-guide
Django Version: 1.7
Exception Type: IndexError
Exception Value:
list index out of range
Exception Location: /webapps/mycollegehomepage/mchp/lib/python3.4/site-packages/django/db/models/query.py in getitem, line 177
Python Executable: /usr/local/bin/uwsgi
Python Version: 3.4.0
Python Path:
['.',
'',
'/webapps/mycollegehomepage/mchp/lib/python3.4',
'/webapps/mycollegehomepage/mchp/lib/python3.4/plat-x86_64-linux-gnu',
'/webapps/mycollegehomepage/mchp/lib/python3.4/lib-dynload',
'/usr/lib/python3.4',
'/usr/lib/python3.4/plat-x86_64-linux-gnu',
'/webapps/mycollegehomepage/mchp/lib/python3.4/site-packages',
'/webapps/mycollegehomepage/mchp/mchp']
Server time: Mon, 21 Sep 2015 16:43:04 -0700
Traceback
/webapps/mycollegehomepage/mchp/lib/python3.4/site-packages/django/core/handlers/base.py in get_response
response = wrapped_callback(request, _callback_args, *_callback_kwargs)
Local Vars
The error is below, and then when on the /view page, I am seeing a blank white box where the document should appear, and the console reads:
https://mchp-production.s3.amazonaws.com/media/documents/Exam_1_study_guide_psych360.pdf Failed to load resource: the server responded with a status of 403 (Forbidden)
Here is the link to the document: https://www.mycollegehomepage.com/documents/5c68e7db8d0a44659d6b73e4988ff9c1/exam-1-study-guide
IndexError at /documents/preview/5c68e7db8d0a44659d6b73e4988ff9c1/exam-1-study-guide list index out of range Request Method: POST Request URL: https://www.mycollegehomepage.com/documents/preview/5c68e7db8d0a44659d6b73e4988ff9c1/exam-1-study-guide Django Version: 1.7 Exception Type: IndexError Exception Value:
list index out of range Exception Location: /webapps/mycollegehomepage/mchp/lib/python3.4/site-packages/django/db/models/query.py in getitem, line 177 Python Executable: /usr/local/bin/uwsgi Python Version: 3.4.0 Python Path:
['.', '', '/webapps/mycollegehomepage/mchp/lib/python3.4', '/webapps/mycollegehomepage/mchp/lib/python3.4/plat-x86_64-linux-gnu', '/webapps/mycollegehomepage/mchp/lib/python3.4/lib-dynload', '/usr/lib/python3.4', '/usr/lib/python3.4/plat-x86_64-linux-gnu', '/webapps/mycollegehomepage/mchp/lib/python3.4/site-packages', '/webapps/mycollegehomepage/mchp/mchp'] Server time: Mon, 21 Sep 2015 16:43:04 -0700 Traceback
/webapps/mycollegehomepage/mchp/lib/python3.4/site-packages/django/core/handlers/base.py in get_response response = wrapped_callback(request, _callback_args, *_callback_kwargs) Local Vars
Variable Value resolver_match,\n"
" 'wsgi.input': <uwsgi._Input object at 0x7faaf7f5b180>,\n"
" 'wsgi.multiprocess': True,\n"
" 'wsgi.multithread': False,\n"
" 'wsgi.run_once': False,\n"
" 'wsgi.url_scheme': 'https',\n"
" 'wsgi.version': (1, 0)}>"
callback_kwargs
{'uuid': '5c68e7db8d0a44659d6b73e4988ff9c1'}
urlconf
'mchp.urls'
resolver
ResolverMatch(func=<function DocumentDetailPreview at 0x7faafcec7d90>, args=(), kwargs={'uuid': '5c68e7db8d0a44659d6b73e4988ff9c1'}, url_name='document_preview', app_name='None', namespace='') wrapped_callback
<function DocumentDetailPreview at 0x7faafcec7d90> middleware_method
<bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7faafd21d048>> response
None callback
<function DocumentDetailPreview at 0x7faafcec7d90> callback_args
() request '<WSGIRequest\n' 'path:/documents/preview/5c68e7db8d0a44659d6b73e4988ff9c1/exam-1-study-guide,\n' 'GET:<QueryDict: {}>,\n' "POST:<QueryDict: {'csrfmiddlewaretoken': " "['CnpKMyUQmVQZB0srIzQzliXFy2xDtATi']}>,\n" "COOKIES:{'_ga': 'GA1.2.938926643.1422985587',\n" " '_gat': '1',\n" " 'csrftoken': 'CnpKMyUQmVQZB0srIzQzliXFy2xDtATi',\n" " 'fbm_369999156462705': 'base_domain=.mycollegehomepage.com',\n" " 'fbsr_369999156462705': " "'LVVt_Edb4GwdREls8qDf27jDkVXiFKKn4-nc_Kl8d04.eyJhbGdvcml0aG0iOiJITUFDLVNIQTI1NiIsImNvZGUiOiJBUUFmN1lVV3VRazliTDFkZWFldGRxVWtZaVFPRjl4OFJIU1MyZFJQazFIY1FQVzl3VElzTk9QU0JQc2VoMVRRN1phNVY1aXItVlZyZk5MWTd2bl9RTklISzlqZi1wTkNMcHZFcDZiMENGekZpaXVUVEl4TWFudi10Sl96UVJoWUNuMzJmZ3ZRUXVOcm9seVZub0owMk5pcmFDNzc5dnZrOFVqUVdLTGE5cHRVdmNralhvbmpKZ2VWeXJmOXdjLU1VdVlTUlJGNHFPT0sxVy14dlZOLTBPbW5Ramx4SHYyNlplZlhuSDhmazdrQjloaFhPS3EzdTk1TkNEOHpkbGNXNkg1V3NhNEpSdjcycEtUbElfRTRBbXhNQnV0cjJsYlluOWRRRHhxUUtya2Jtc1NucUo0WnV2dmFoNUhpQ01JMXFWN1c5SVRDRG1WckVPUUlrNUhxdkV3Yk01a0hHdFhJNWZHVDYxVlN2cHhoVlEiLCJpc3N1ZWRfYXQiOjE0NDI4NzgwNzQsInVzZXJfaWQiOiI1OTgyMzY5MjkifQ',\n" " 'sessionid': '1oztt2849ytysc1i7xj6l2te8wydy2yn'},\n" "META:{'CONTENT_LENGTH': '52',\n" " 'CONTENT_TYPE': 'application/x-www-form-urlencoded',\n" " 'CSRF_COOKIE': 'CnpKMyUQmVQZB0srIzQzliXFy2xDtATi',\n" " 'DOCUMENT_ROOT': '/usr/share/nginx/html',\n" " 'HTTPS': 'on',\n" " 'HTTPACCEPT': " "'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/_;q=0.8',\n" " 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',\n" " 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.8',\n" " 'HTTP_CACHE_CONTROL': 'max-age=0',\n" " 'HTTP_CONNECTION': 'keep-alive',\n" " 'HTTP_CONTENT_LENGTH': '52',\n" " 'HTTP_CONTENT_TYPE': 'application/x-www-form-urlencoded',\n" " 'HTTP_COOKIE': 'fbm_369999156462705=base_domain=.mycollegehomepage.com; '\n" " 'sessionid=1oztt2849ytysc1i7xj6l2te8wydy2yn; '\n" " 'csrftoken=CnpKMyUQmVQZB0srIzQzliXFy2xDtATi; '\n" " '_ga=GA1.2.938926643.1422985587; _gat=1; '\n" ' ' "'fbsr_369999156462705=LVVt_Edb4GwdREls8qDf27jDkVXiFKKn4-nc_Kl8d04.eyJhbGdvcml0aG0iOiJITUFDLVNIQTI1NiIsImNvZGUiOiJBUUFmN1lVV3VRazliTDFkZWFldGRxVWtZaVFPRjl4OFJIU1MyZFJQazFIY1FQVzl3VElzTk9QU0JQc2VoMVRRN1phNVY1aXItVlZyZk5MWTd2bl9RTklISzlqZi1wTkNMcHZFcDZiMENGekZpaXVUVEl4TWFudi10Sl96UVJoWUNuMzJmZ3ZRUXVOcm9seVZub0owMk5pcmFDNzc5dnZrOFVqUVdLTGE5cHRVdmNralhvbmpKZ2VWeXJmOXdjLU1VdVlTUlJGNHFPT0sxVy14dlZOLTBPbW5Ramx4SHYyNlplZlhuSDhmazdrQjloaFhPS3EzdTk1TkNEOHpkbGNXNkg1V3NhNEpSdjcycEtUbElfRTRBbXhNQnV0cjJsYlluOWRRRHhxUUtya2Jtc1NucUo0WnV2dmFoNUhpQ01JMXFWN1c5SVRDRG1WckVPUUlrNUhxdkV3Yk01a0hHdFhJNWZHVDYxVlN2cHhoVlEiLCJpc3N1ZWRfYXQiOjE0NDI4NzgwNzQsInVzZXJfaWQiOiI1OTgyMzY5MjkifQ',\n" " 'HTTP_HOST': 'www.mycollegehomepage.com',\n" " 'HTTP_ORIGIN': 'https://www.mycollegehomepage.com',\n" " 'HTTP_REFERER': " "'https://www.mycollegehomepage.com/documents/preview/5c68e7db8d0a44659d6b73e4988ff9c1/exam-1-study-guide',\n" " 'HTTP_UPGRADE_INSECURE_REQUESTS': '1',\n" " 'HTTP_USER_AGENT': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) '\n" " 'AppleWebKit/537.36 (KHTML, like Gecko) '\n" " 'Chrome/45.0.2454.93 Safari/537.36',\n" " 'PATH_INFO': " "'/documents/preview/5c68e7db8d0a44659d6b73e4988ff9c1/exam-1-study-guide',\n" " 'QUERY_STRING': '',\n" " 'REMOTE_ADDR': '172.91.115.138',\n" " 'REMOTE_PORT': '55647',\n" " 'REQUEST_METHOD': 'POST',\n" " 'REQUEST_URI': " "'/documents/preview/5c68e7db8d0a44659d6b73e4988ff9c1/exam-1-study-guide',\n" " 'SCRIPT_NAME': '',\n" " 'SERVER_NAME': 'www.mycollegehomepage.com',\n" " 'SERVER_PORT': '443',\n" " 'SERVER_PROTOCOL': 'HTTP/1.1',\n" " 'uwsgi.node': b'ip-172-31-37-133',\n" " 'uwsgi.version': b'2.0.6',\n" " 'wsgi.errors': <_io.TextIOWrapper name=2 mode='w' encoding='UTF-8'>,\n" " 'wsgi.file_wrapper':
<RegexURLResolver 'mchp.urls' (None:None) ^/> self
<django.core.handlers.wsgi.WSGIHandler object at 0x7fab06ed8c50> /webapps/mycollegehomepage/mchp/lib/python3.4/site-packages/django/views/generic/base.py in view return self.dispatch(request, _args, *_kwargs) Local Vars
Variable Value request '<WSGIRequest\n' 'path:/documents/preview/5c68e7db8d0a44659d6b73e4988ff9c1/exam-1-study-guide,\n' 'GET:<QueryDict: {}>,\n' "POST:<QueryDict: {'csrfmiddlewaretoken': " "['CnpKMyUQmVQZB0srIzQzliXFy2xDtATi']}>,\n" "COOKIES:{'_ga': 'GA1.2.938926643.1422985587',\n" " '_gat': '1',\n" " 'csrftoken': 'CnpKMyUQmVQZB0srIzQzliXFy2xDtATi',\n" " 'fbm_369999156462705': 'base_domain=.mycollegehomepage.com',\n" " 'fbsr_369999156462705': " "'LVVt_Edb4GwdREls8qDf27jDkVXiFKKn4-nc_Kl8d04.eyJhbGdvcml0aG0iOiJITUFDLVNIQTI1NiIsImNvZGUiOiJBUUFmN1lVV3VRazliTDFkZWFldGRxVWtZaVFPRjl4OFJIU1MyZFJQazFIY1FQVzl3VElzTk9QU0JQc2VoMVRRN1phNVY1aXItVlZyZk5MWTd2bl9RTklISzlqZi1wTkNMcHZFcDZiMENGekZpaXVUVEl4TWFudi10Sl96UVJoWUNuMzJmZ3ZRUXVOcm9seVZub0owMk5pcmFDNzc5dnZrOFVqUVdLTGE5cHRVdmNralhvbmpKZ2VWeXJmOXdjLU1VdVlTUlJGNHFPT0sxVy14dlZOLTBPbW5Ramx4SHYyNlplZlhuSDhmazdrQjloaFhPS3EzdTk1TkNEOHpkbGNXNkg1V3NhNEpSdjcycEtUbElfRTRBbXhNQnV0cjJsYlluOWRRRHhxUUtya2Jtc1NucUo0WnV2dmFoNUhpQ01JMXFWN1c5SVRDRG1WckVPUUlrNUhxdkV3Yk01a0hHdFhJNWZHVDYxVlN2cHhoVlEiLCJpc3N1ZWRfYXQiOjE0NDI4NzgwNzQsInVzZXJfaWQiOiI1OTgyMzY5MjkifQ',\n" " 'sessionid': '1oztt2849ytysc1i7xj6l2te8wydy2yn'},\n" "META:{'CONTENT_LENGTH': '52',\n" " 'CONTENT_TYPE': 'application/x-www-form-urlencoded',\n" " 'CSRF_COOKIE': 'CnpKMyUQmVQZB0srIzQzliXFy2xDtATi',\n" " 'DOCUMENT_ROOT': '/usr/share/nginx/html',\n" " 'HTTPS': 'on',\n" " 'HTTPACCEPT': " "'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/_;q=0.8',\n" " 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',\n" " 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.8',\n" " 'HTTP_CACHE_CONTROL': 'max-age=0',\n" " 'HTTP_CONNECTION': 'keep-alive',\n" " 'HTTP_CONTENT_LENGTH': '52',\n" " 'HTTP_CONTENT_TYPE': 'application/x-www-form-urlencoded',\n" " 'HTTP_COOKIE': 'fbm_369999156462705=base_domain=.mycollegehomepage.com; '\n" " 'sessionid=1oztt2849ytysc1i7xj6l2te8wydy2yn; '\n" " 'csrftoken=CnpKMyUQmVQZB0srIzQzliXFy2xDtATi; '\n" " '_ga=GA1.2.938926643.1422985587; _gat=1; '\n" ' ' "'fbsr_369999156462705=LVVt_Edb4GwdREls8qDf27jDkVXiFKKn4-nc_Kl8d04.eyJhbGdvcml0aG0iOiJITUFDLVNIQTI1NiIsImNvZGUiOiJBUUFmN1lVV3VRazliTDFkZWFldGRxVWtZaVFPRjl4OFJIU1MyZFJQazFIY1FQVzl3VElzTk9QU0JQc2VoMVRRN1phNVY1aXItVlZyZk5MWTd2bl9RTklISzlqZi1wTkNMcHZFcDZiMENGekZpaXVUVEl4TWFudi10Sl96UVJoWUNuMzJmZ3ZRUXVOcm9seVZub0owMk5pcmFDNzc5dnZrOFVqUVdLTGE5cHRVdmNralhvbmpKZ2VWeXJmOXdjLU1VdVlTUlJGNHFPT0sxVy14dlZOLTBPbW5Ramx4SHYyNlplZlhuSDhmazdrQjloaFhPS3EzdTk1TkNEOHpkbGNXNkg1V3NhNEpSdjcycEtUbElfRTRBbXhNQnV0cjJsYlluOWRRRHhxUUtya2Jtc1NucUo0WnV2dmFoNUhpQ01JMXFWN1c5SVRDRG1WckVPUUlrNUhxdkV3Yk01a0hHdFhJNWZHVDYxVlN2cHhoVlEiLCJpc3N1ZWRfYXQiOjE0NDI4NzgwNzQsInVzZXJfaWQiOiI1OTgyMzY5MjkifQ',\n" " 'HTTP_HOST': 'www.mycollegehomepage.com',\n" " 'HTTP_ORIGIN': 'https://www.mycollegehomepage.com',\n" " 'HTTP_REFERER': " "'https://www.mycollegehomepage.com/documents/preview/5c68e7db8d0a44659d6b73e4988ff9c1/exam-1-study-guide',\n" " 'HTTP_UPGRADE_INSECURE_REQUESTS': '1',\n" " 'HTTP_USER_AGENT': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) '\n" " 'AppleWebKit/537.36 (KHTML, like Gecko) '\n" " 'Chrome/45.0.2454.93 Safari/537.36',\n" " 'PATH_INFO': " "'/documents/preview/5c68e7db8d0a44659d6b73e4988ff9c1/exam-1-study-guide',\n" " 'QUERY_STRING': '',\n" " 'REMOTE_ADDR': '172.91.115.138',\n" " 'REMOTE_PORT': '55647',\n" " 'REQUEST_METHOD': 'POST',\n" " 'REQUEST_URI': " "'/documents/preview/5c68e7db8d0a44659d6b73e4988ff9c1/exam-1-study-guide',\n" " 'SCRIPT_NAME': '',\n" " 'SERVER_NAME': 'www.mycollegehomepage.com',\n" " 'SERVER_PORT': '443',\n" " 'SERVER_PROTOCOL': 'HTTP/1.1',\n" " 'uwsgi.node': b'ip-172-31-37-133',\n" " 'uwsgi.version': b'2.0.6',\n" " 'wsgi.errors': <_io.TextIOWrapper name=2 mode='w' encoding='UTF-8'>,\n" " 'wsgi.file_wrapper':,\n"
" 'wsgi.input': <uwsgi._Input object at 0x7faaf7f5b180>,\n"
" 'wsgi.multiprocess': True,\n"
" 'wsgi.multithread': False,\n"
" 'wsgi.run_once': False,\n"
" 'wsgi.url_scheme': 'https',\n"
" 'wsgi.version': (1, 0)}>"
args
() kwargs
{'uuid': '5c68e7db8d0a44659d6b73e4988ff9c1'} cls <class 'documents.views.DocumentDetailPreview'> self
<documents.views.DocumentDetailPreview object at 0x7faaf7f33198> initkwargs
{} ./documents/views.py in dispatch return super(DocumentDetailPreview, self).dispatch(_args, *_kwargs) Local Vars
Variable Value class,
'wsgi.input': <uwsgi._Input object at 0x7faaf7f5b180>,
'wsgi.multiprocess': True,
'wsgi.multithread': False,
'wsgi.run_once': False,
'wsgi.url_scheme': 'https',
'wsgi.version': (1, 0)}>,)
kwargs
<class 'documents.views.DocumentDetailPreview'> args
(<WSGIRequest path:/documents/preview/5c68e7db8d0a44659d6b73e4988ff9c1/exam-1-study-guide, GET:<QueryDict: {}>, POST:<QueryDict: {'csrfmiddlewaretoken': ['CnpKMyUQmVQZB0srIzQzliXFy2xDtATi']}>, COOKIES:{'_ga': 'GA1.2.938926643.1422985587', '_gat': '1', 'csrftoken': 'CnpKMyUQmVQZB0srIzQzliXFy2xDtATi', 'fbm_369999156462705': 'base_domain=.mycollegehomepage.com', 'fbsr_369999156462705': 'LVVt_Edb4GwdREls8qDf27jDkVXiFKKn4-nc_Kl8d04.eyJhbGdvcml0aG0iOiJITUFDLVNIQTI1NiIsImNvZGUiOiJBUUFmN1lVV3VRazliTDFkZWFldGRxVWtZaVFPRjl4OFJIU1MyZFJQazFIY1FQVzl3VElzTk9QU0JQc2VoMVRRN1phNVY1aXItVlZyZk5MWTd2bl9RTklISzlqZi1wTkNMcHZFcDZiMENGekZpaXVUVEl4TWFudi10Sl96UVJoWUNuMzJmZ3ZRUXVOcm9seVZub0owMk5pcmFDNzc5dnZrOFVqUVdLTGE5cHRVdmNralhvbmpKZ2VWeXJmOXdjLU1VdVlTUlJGNHFPT0sxVy14dlZOLTBPbW5Ramx4SHYyNlplZlhuSDhmazdrQjloaFhPS3EzdTk1TkNEOHpkbGNXNkg1V3NhNEpSdjcycEtUbElfRTRBbXhNQnV0cjJsYlluOWRRRHhxUUtya2Jtc1NucUo0WnV2dmFoNUhpQ01JMXFWN1c5SVRDRG1WckVPUUlrNUhxdkV3Yk01a0hHdFhJNWZHVDYxVlN2cHhoVlEiLCJpc3N1ZWRfYXQiOjE0NDI4NzgwNzQsInVzZXJfaWQiOiI1OTgyMzY5MjkifQ', 'sessionid': '1oztt2849ytysc1i7xj6l2te8wydy2yn'}, META:{'CONTENT_LENGTH': '52', 'CONTENT_TYPE': 'application/x-www-form-urlencoded', 'CSRF_COOKIE': 'CnpKMyUQmVQZB0srIzQzliXFy2xDtATi', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTPACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/_;q=0.8', 'HTTP_ACCEPT_ENCODING': 'gzip, deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.8', 'HTTP_CACHE_CONTROL': 'max-age=0', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_CONTENT_LENGTH': '52', 'HTTP_CONTENT_TYPE': 'application/x-www-form-urlencoded', 'HTTP_COOKIE': 'fbm_369999156462705=base_domain=.mycollegehomepage.com; ' 'sessionid=1oztt2849ytysc1i7xj6l2te8wydy2yn; ' 'csrftoken=CnpKMyUQmVQZB0srIzQzliXFy2xDtATi; ' '_ga=GA1.2.938926643.1422985587; _gat=1; ' 'fbsr_369999156462705=LVVt_Edb4GwdREls8qDf27jDkVXiFKKn4-nc_Kl8d04.eyJhbGdvcml0aG0iOiJITUFDLVNIQTI1NiIsImNvZGUiOiJBUUFmN1lVV3VRazliTDFkZWFldGRxVWtZaVFPRjl4OFJIU1MyZFJQazFIY1FQVzl3VElzTk9QU0JQc2VoMVRRN1phNVY1aXItVlZyZk5MWTd2bl9RTklISzlqZi1wTkNMcHZFcDZiMENGekZpaXVUVEl4TWFudi10Sl96UVJoWUNuMzJmZ3ZRUXVOcm9seVZub0owMk5pcmFDNzc5dnZrOFVqUVdLTGE5cHRVdmNralhvbmpKZ2VWeXJmOXdjLU1VdVlTUlJGNHFPT0sxVy14dlZOLTBPbW5Ramx4SHYyNlplZlhuSDhmazdrQjloaFhPS3EzdTk1TkNEOHpkbGNXNkg1V3NhNEpSdjcycEtUbElfRTRBbXhNQnV0cjJsYlluOWRRRHhxUUtya2Jtc1NucUo0WnV2dmFoNUhpQ01JMXFWN1c5SVRDRG1WckVPUUlrNUhxdkV3Yk01a0hHdFhJNWZHVDYxVlN2cHhoVlEiLCJpc3N1ZWRfYXQiOjE0NDI4NzgwNzQsInVzZXJfaWQiOiI1OTgyMzY5MjkifQ', 'HTTP_HOST': 'www.mycollegehomepage.com', 'HTTP_ORIGIN': 'https://www.mycollegehomepage.com', 'HTTP_REFERER': 'https://www.mycollegehomepage.com/documents/preview/5c68e7db8d0a44659d6b73e4988ff9c1/exam-1-study-guide', 'HTTP_UPGRADE_INSECURE_REQUESTS': '1', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) ' 'AppleWebKit/537.36 (KHTML, like Gecko) ' 'Chrome/45.0.2454.93 Safari/537.36', 'PATH_INFO': '/documents/preview/5c68e7db8d0a44659d6b73e4988ff9c1/exam-1-study-guide', 'QUERY_STRING': '', 'REMOTE_ADDR': '172.91.115.138', 'REMOTE_PORT': '55647', 'REQUEST_METHOD': 'POST', 'REQUEST_URI': '/documents/preview/5c68e7db8d0a44659d6b73e4988ff9c1/exam-1-study-guide', 'SCRIPT_NAME': '', 'SERVER_NAME': 'www.mycollegehomepage.com', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/1.1', 'uwsgi.node': b'ip-172-31-37-133', 'uwsgi.version': b'2.0.6', 'wsgi.errors': <_io.TextIOWrapper name=2 mode='w' encoding='UTF-8'>, 'wsgi.file_wrapper':
{'uuid': '5c68e7db8d0a44659d6b73e4988ff9c1'} self
<documents.views.DocumentDetailPreview object at 0x7faaf7f33198> /webapps/mycollegehomepage/mchp/lib/python3.4/site-packages/django/views/generic/base.py in dispatch return handler(request, _args, *_kwargs) Local Vars
Variable Value handler <bound method DocumentDetailPreview.post of <documents.views.DocumentDetailPreview object at 0x7faaf7f33198>> args,\n"
" 'wsgi.input': <uwsgi._Input object at 0x7faaf7f5b180>,\n"
" 'wsgi.multiprocess': True,\n"
" 'wsgi.multithread': False,\n"
" 'wsgi.run_once': False,\n"
" 'wsgi.url_scheme': 'https',\n"
" 'wsgi.version': (1, 0)}>"
self
() request '<WSGIRequest\n' 'path:/documents/preview/5c68e7db8d0a44659d6b73e4988ff9c1/exam-1-study-guide,\n' 'GET:<QueryDict: {}>,\n' "POST:<QueryDict: {'csrfmiddlewaretoken': " "['CnpKMyUQmVQZB0srIzQzliXFy2xDtATi']}>,\n" "COOKIES:{'_ga': 'GA1.2.938926643.1422985587',\n" " '_gat': '1',\n" " 'csrftoken': 'CnpKMyUQmVQZB0srIzQzliXFy2xDtATi',\n" " 'fbm_369999156462705': 'base_domain=.mycollegehomepage.com',\n" " 'fbsr_369999156462705': " "'LVVt_Edb4GwdREls8qDf27jDkVXiFKKn4-nc_Kl8d04.eyJhbGdvcml0aG0iOiJITUFDLVNIQTI1NiIsImNvZGUiOiJBUUFmN1lVV3VRazliTDFkZWFldGRxVWtZaVFPRjl4OFJIU1MyZFJQazFIY1FQVzl3VElzTk9QU0JQc2VoMVRRN1phNVY1aXItVlZyZk5MWTd2bl9RTklISzlqZi1wTkNMcHZFcDZiMENGekZpaXVUVEl4TWFudi10Sl96UVJoWUNuMzJmZ3ZRUXVOcm9seVZub0owMk5pcmFDNzc5dnZrOFVqUVdLTGE5cHRVdmNralhvbmpKZ2VWeXJmOXdjLU1VdVlTUlJGNHFPT0sxVy14dlZOLTBPbW5Ramx4SHYyNlplZlhuSDhmazdrQjloaFhPS3EzdTk1TkNEOHpkbGNXNkg1V3NhNEpSdjcycEtUbElfRTRBbXhNQnV0cjJsYlluOWRRRHhxUUtya2Jtc1NucUo0WnV2dmFoNUhpQ01JMXFWN1c5SVRDRG1WckVPUUlrNUhxdkV3Yk01a0hHdFhJNWZHVDYxVlN2cHhoVlEiLCJpc3N1ZWRfYXQiOjE0NDI4NzgwNzQsInVzZXJfaWQiOiI1OTgyMzY5MjkifQ',\n" " 'sessionid': '1oztt2849ytysc1i7xj6l2te8wydy2yn'},\n" "META:{'CONTENT_LENGTH': '52',\n" " 'CONTENT_TYPE': 'application/x-www-form-urlencoded',\n" " 'CSRF_COOKIE': 'CnpKMyUQmVQZB0srIzQzliXFy2xDtATi',\n" " 'DOCUMENT_ROOT': '/usr/share/nginx/html',\n" " 'HTTPS': 'on',\n" " 'HTTPACCEPT': " "'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/_;q=0.8',\n" " 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',\n" " 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.8',\n" " 'HTTP_CACHE_CONTROL': 'max-age=0',\n" " 'HTTP_CONNECTION': 'keep-alive',\n" " 'HTTP_CONTENT_LENGTH': '52',\n" " 'HTTP_CONTENT_TYPE': 'application/x-www-form-urlencoded',\n" " 'HTTP_COOKIE': 'fbm_369999156462705=base_domain=.mycollegehomepage.com; '\n" " 'sessionid=1oztt2849ytysc1i7xj6l2te8wydy2yn; '\n" " 'csrftoken=CnpKMyUQmVQZB0srIzQzliXFy2xDtATi; '\n" " '_ga=GA1.2.938926643.1422985587; _gat=1; '\n" ' ' "'fbsr_369999156462705=LVVt_Edb4GwdREls8qDf27jDkVXiFKKn4-nc_Kl8d04.eyJhbGdvcml0aG0iOiJITUFDLVNIQTI1NiIsImNvZGUiOiJBUUFmN1lVV3VRazliTDFkZWFldGRxVWtZaVFPRjl4OFJIU1MyZFJQazFIY1FQVzl3VElzTk9QU0JQc2VoMVRRN1phNVY1aXItVlZyZk5MWTd2bl9RTklISzlqZi1wTkNMcHZFcDZiMENGekZpaXVUVEl4TWFudi10Sl96UVJoWUNuMzJmZ3ZRUXVOcm9seVZub0owMk5pcmFDNzc5dnZrOFVqUVdLTGE5cHRVdmNralhvbmpKZ2VWeXJmOXdjLU1VdVlTUlJGNHFPT0sxVy14dlZOLTBPbW5Ramx4SHYyNlplZlhuSDhmazdrQjloaFhPS3EzdTk1TkNEOHpkbGNXNkg1V3NhNEpSdjcycEtUbElfRTRBbXhNQnV0cjJsYlluOWRRRHhxUUtya2Jtc1NucUo0WnV2dmFoNUhpQ01JMXFWN1c5SVRDRG1WckVPUUlrNUhxdkV3Yk01a0hHdFhJNWZHVDYxVlN2cHhoVlEiLCJpc3N1ZWRfYXQiOjE0NDI4NzgwNzQsInVzZXJfaWQiOiI1OTgyMzY5MjkifQ',\n" " 'HTTP_HOST': 'www.mycollegehomepage.com',\n" " 'HTTP_ORIGIN': 'https://www.mycollegehomepage.com',\n" " 'HTTP_REFERER': " "'https://www.mycollegehomepage.com/documents/preview/5c68e7db8d0a44659d6b73e4988ff9c1/exam-1-study-guide',\n" " 'HTTP_UPGRADE_INSECURE_REQUESTS': '1',\n" " 'HTTP_USER_AGENT': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) '\n" " 'AppleWebKit/537.36 (KHTML, like Gecko) '\n" " 'Chrome/45.0.2454.93 Safari/537.36',\n" " 'PATH_INFO': " "'/documents/preview/5c68e7db8d0a44659d6b73e4988ff9c1/exam-1-study-guide',\n" " 'QUERY_STRING': '',\n" " 'REMOTE_ADDR': '172.91.115.138',\n" " 'REMOTE_PORT': '55647',\n" " 'REQUEST_METHOD': 'POST',\n" " 'REQUEST_URI': " "'/documents/preview/5c68e7db8d0a44659d6b73e4988ff9c1/exam-1-study-guide',\n" " 'SCRIPT_NAME': '',\n" " 'SERVER_NAME': 'www.mycollegehomepage.com',\n" " 'SERVER_PORT': '443',\n" " 'SERVER_PROTOCOL': 'HTTP/1.1',\n" " 'uwsgi.node': b'ip-172-31-37-133',\n" " 'uwsgi.version': b'2.0.6',\n" " 'wsgi.errors': <_io.TextIOWrapper name=2 mode='w' encoding='UTF-8'>,\n" " 'wsgi.file_wrapper':
<documents.views.DocumentDetailPreview object at 0x7faaf7f33198> kwargs
{'uuid': '5c68e7db8d0a44659d6b73e4988ff9c1'} ./documents/views.py in post if enrollment[0].created_by_roster: Local Vars
Variable Value request '<WSGIRequest\n' 'path:/documents/preview/5c68e7db8d0a44659d6b73e4988ff9c1/exam-1-study-guide,\n' 'GET:<QueryDict: {}>,\n' "POST:<QueryDict: {'csrfmiddlewaretoken': " "['CnpKMyUQmVQZB0srIzQzliXFy2xDtATi']}>,\n" "COOKIES:{'_ga': 'GA1.2.938926643.1422985587',\n" " '_gat': '1',\n" " 'csrftoken': 'CnpKMyUQmVQZB0srIzQzliXFy2xDtATi',\n" " 'fbm_369999156462705': 'base_domain=.mycollegehomepage.com',\n" " 'fbsr_369999156462705': " "'LVVt_Edb4GwdREls8qDf27jDkVXiFKKn4-nc_Kl8d04.eyJhbGdvcml0aG0iOiJITUFDLVNIQTI1NiIsImNvZGUiOiJBUUFmN1lVV3VRazliTDFkZWFldGRxVWtZaVFPRjl4OFJIU1MyZFJQazFIY1FQVzl3VElzTk9QU0JQc2VoMVRRN1phNVY1aXItVlZyZk5MWTd2bl9RTklISzlqZi1wTkNMcHZFcDZiMENGekZpaXVUVEl4TWFudi10Sl96UVJoWUNuMzJmZ3ZRUXVOcm9seVZub0owMk5pcmFDNzc5dnZrOFVqUVdLTGE5cHRVdmNralhvbmpKZ2VWeXJmOXdjLU1VdVlTUlJGNHFPT0sxVy14dlZOLTBPbW5Ramx4SHYyNlplZlhuSDhmazdrQjloaFhPS3EzdTk1TkNEOHpkbGNXNkg1V3NhNEpSdjcycEtUbElfRTRBbXhNQnV0cjJsYlluOWRRRHhxUUtya2Jtc1NucUo0WnV2dmFoNUhpQ01JMXFWN1c5SVRDRG1WckVPUUlrNUhxdkV3Yk01a0hHdFhJNWZHVDYxVlN2cHhoVlEiLCJpc3N1ZWRfYXQiOjE0NDI4NzgwNzQsInVzZXJfaWQiOiI1OTgyMzY5MjkifQ',\n" " 'sessionid': '1oztt2849ytysc1i7xj6l2te8wydy2yn'},\n" "META:{'CONTENT_LENGTH': '52',\n" " 'CONTENT_TYPE': 'application/x-www-form-urlencoded',\n" " 'CSRF_COOKIE': 'CnpKMyUQmVQZB0srIzQzliXFy2xDtATi',\n" " 'DOCUMENT_ROOT': '/usr/share/nginx/html',\n" " 'HTTPS': 'on',\n" " 'HTTPACCEPT': " "'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/_;q=0.8',\n" " 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',\n" " 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.8',\n" " 'HTTP_CACHE_CONTROL': 'max-age=0',\n" " 'HTTP_CONNECTION': 'keep-alive',\n" " 'HTTP_CONTENT_LENGTH': '52',\n" " 'HTTP_CONTENT_TYPE': 'application/x-www-form-urlencoded',\n" " 'HTTP_COOKIE': 'fbm_369999156462705=base_domain=.mycollegehomepage.com; '\n" " 'sessionid=1oztt2849ytysc1i7xj6l2te8wydy2yn; '\n" " 'csrftoken=CnpKMyUQmVQZB0srIzQzliXFy2xDtATi; '\n" " '_ga=GA1.2.938926643.1422985587; _gat=1; '\n" ' ' "'fbsr_369999156462705=LVVt_Edb4GwdREls8qDf27jDkVXiFKKn4-nc_Kl8d04.eyJhbGdvcml0aG0iOiJITUFDLVNIQTI1NiIsImNvZGUiOiJBUUFmN1lVV3VRazliTDFkZWFldGRxVWtZaVFPRjl4OFJIU1MyZFJQazFIY1FQVzl3VElzTk9QU0JQc2VoMVRRN1phNVY1aXItVlZyZk5MWTd2bl9RTklISzlqZi1wTkNMcHZFcDZiMENGekZpaXVUVEl4TWFudi10Sl96UVJoWUNuMzJmZ3ZRUXVOcm9seVZub0owMk5pcmFDNzc5dnZrOFVqUVdLTGE5cHRVdmNralhvbmpKZ2VWeXJmOXdjLU1VdVlTUlJGNHFPT0sxVy14dlZOLTBPbW5Ramx4SHYyNlplZlhuSDhmazdrQjloaFhPS3EzdTk1TkNEOHpkbGNXNkg1V3NhNEpSdjcycEtUbElfRTRBbXhNQnV0cjJsYlluOWRRRHhxUUtya2Jtc1NucUo0WnV2dmFoNUhpQ01JMXFWN1c5SVRDRG1WckVPUUlrNUhxdkV3Yk01a0hHdFhJNWZHVDYxVlN2cHhoVlEiLCJpc3N1ZWRfYXQiOjE0NDI4NzgwNzQsInVzZXJfaWQiOiI1OTgyMzY5MjkifQ',\n" " 'HTTP_HOST': 'www.mycollegehomepage.com',\n" " 'HTTP_ORIGIN': 'https://www.mycollegehomepage.com',\n" " 'HTTP_REFERER': " "'https://www.mycollegehomepage.com/documents/preview/5c68e7db8d0a44659d6b73e4988ff9c1/exam-1-study-guide',\n" " 'HTTP_UPGRADE_INSECURE_REQUESTS': '1',\n" " 'HTTP_USER_AGENT': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) '\n" " 'AppleWebKit/537.36 (KHTML, like Gecko) '\n" " 'Chrome/45.0.2454.93 Safari/537.36',\n" " 'PATH_INFO': " "'/documents/preview/5c68e7db8d0a44659d6b73e4988ff9c1/exam-1-study-guide',\n" " 'QUERY_STRING': '',\n" " 'REMOTE_ADDR': '172.91.115.138',\n" " 'REMOTE_PORT': '55647',\n" " 'REQUEST_METHOD': 'POST',\n" " 'REQUEST_URI': " "'/documents/preview/5c68e7db8d0a44659d6b73e4988ff9c1/exam-1-study-guide',\n" " 'SCRIPT_NAME': '',\n" " 'SERVER_NAME': 'www.mycollegehomepage.com',\n" " 'SERVER_PORT': '443',\n" " 'SERVER_PROTOCOL': 'HTTP/1.1',\n" " 'uwsgi.node': b'ip-172-31-37-133',\n" " 'uwsgi.version': b'2.0.6',\n" " 'wsgi.errors': <_io.TextIOWrapper name=2 mode='w' encoding='UTF-8'>,\n" " 'wsgi.file_wrapper':,\n"
" 'wsgi.input': <uwsgi._Input object at 0x7faaf7f5b180>,\n"
" 'wsgi.multiprocess': True,\n"
" 'wsgi.multithread': False,\n"
" 'wsgi.run_once': False,\n"
" 'wsgi.url_scheme': 'https',\n"
" 'wsgi.version': (1, 0)}>"
args
() enrollment
[] document
<Document: Exam 1 Study Guide> uploader_pk 6947 uploader