mek32390 / mchp-dev

Unified academic planner and study guide marketplace
0 stars 0 forks source link

Error when purchasing document #318

Closed mek32390 closed 9 years ago

mek32390 commented 9 years ago

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
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': ,\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
<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
<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': , '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
{'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
() 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)}>" self
<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

purchase self points_left 8700 points Decimal('2.0000') kwargs {'uuid': '5c68e7db8d0a44659d6b73e4988ff9c1'} /webapps/mycollegehomepage/mchp/lib/python3.4/site-packages/django/db/models/query.py in __getitem__ return list(qs)[0] Local Vars Variable Value self [] qs [] k 0 Request information GET No GET data POST Variable Value csrfmiddlewaretoken 'CnpKMyUQmVQZB0srIzQzliXFy2xDtATi' FILES No FILES data COOKIES Variable Value fbm_369999156462705 'base_domain=.mycollegehomepage.com' csrftoken 'CnpKMyUQmVQZB0srIzQzliXFy2xDtATi' fbsr_369999156462705 'LVVt_Edb4GwdREls8qDf27jDkVXiFKKn4-nc_Kl8d04.eyJhbGdvcml0aG0iOiJITUFDLVNIQTI1NiIsImNvZGUiOiJBUUFmN1lVV3VRazliTDFkZWFldGRxVWtZaVFPRjl4OFJIU1MyZFJQazFIY1FQVzl3VElzTk9QU0JQc2VoMVRRN1phNVY1aXItVlZyZk5MWTd2bl9RTklISzlqZi1wTkNMcHZFcDZiMENGekZpaXVUVEl4TWFudi10Sl96UVJoWUNuMzJmZ3ZRUXVOcm9seVZub0owMk5pcmFDNzc5dnZrOFVqUVdLTGE5cHRVdmNralhvbmpKZ2VWeXJmOXdjLU1VdVlTUlJGNHFPT0sxVy14dlZOLTBPbW5Ramx4SHYyNlplZlhuSDhmazdrQjloaFhPS3EzdTk1TkNEOHpkbGNXNkg1V3NhNEpSdjcycEtUbElfRTRBbXhNQnV0cjJsYlluOWRRRHhxUUtya2Jtc1NucUo0WnV2dmFoNUhpQ01JMXFWN1c5SVRDRG1WckVPUUlrNUhxdkV3Yk01a0hHdFhJNWZHVDYxVlN2cHhoVlEiLCJpc3N1ZWRfYXQiOjE0NDI4NzgwNzQsInVzZXJfaWQiOiI1OTgyMzY5MjkifQ' _ga 'GA1.2.938926643.1422985587' _gat '1' sessionid '1oztt2849ytysc1i7xj6l2te8wydy2yn' META Variable Value HTTP_CONNECTION 'keep-alive' wsgi.multithread False HTTPS 'on' wsgi.input PATH_INFO '/documents/preview/5c68e7db8d0a44659d6b73e4988ff9c1/exam-1-study-guide' 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' wsgi.run_once False HTTP_ACCEPT_LANGUAGE 'en-US,en;q=0.8' CSRF_COOKIE 'CnpKMyUQmVQZB0srIzQzliXFy2xDtATi' REMOTE_PORT '55647' SERVER_PROTOCOL 'HTTP/1.1' SCRIPT_NAME '' wsgi.file_wrapper '' wsgi.url_scheme 'https' wsgi.version (1, 0) REQUEST_URI '/documents/preview/5c68e7db8d0a44659d6b73e4988ff9c1/exam-1-study-guide' HTTP_ORIGIN 'https://www.mycollegehomepage.com' REMOTE_ADDR '172.91.115.138' REQUEST_METHOD 'POST' HTTP_ACCEPT 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,_/_;q=0.8' DOCUMENT_ROOT '/usr/share/nginx/html' uwsgi.node b'ip-172-31-37-133' HTTP_ACCEPT_ENCODING 'gzip, deflate' QUERY_STRING '' SERVER_PORT '443' HTTP_UPGRADE_INSECURE_REQUESTS '1' HTTP_CONTENT_TYPE 'application/x-www-form-urlencoded' 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' CONTENT_TYPE 'application/x-www-form-urlencoded' uwsgi.version b'2.0.6' HTTP_REFERER 'https://www.mycollegehomepage.com/documents/preview/5c68e7db8d0a44659d6b73e4988ff9c1/exam-1-study-guide' wsgi.multiprocess True wsgi.errors <_io.TextIOWrapper name=2 mode='w' encoding='UTF-8'> SERVER_NAME 'www.mycollegehomepage.com' HTTP_CONTENT_LENGTH '52' HTTP_CACHE_CONTROL 'max-age=0' CONTENT_LENGTH '52' Settings Using settings module mchp.settings Setting Value ACCOUNT_EMAIL_VERIFICATION 'mandatory' DISALLOWED_USER_AGENTS () ADMIN_USERNAME 'mchp' FILE_UPLOAD_DIRECTORY_PERMISSIONS None TEMPLATE_DEBUG False USE_ETAGS False EMAIL_SUBJECT_PREFIX '[Django] ' FORCE_SCRIPT_NAME None TIME_ZONE 'America/Phoenix' USE_TZ True FILE_UPLOAD_MAX_MEMORY_SIZE 2621440 LANGUAGE_COOKIE_AGE None MIDDLEWARE_CLASSES ('django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'lib.middleware.UserMigrationMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'referral.middleware.ReferralMiddleware', 'lib.middleware.TimezoneMiddleware', 'donottrack.middleware.DoNotTrackMiddleware') THOUSAND_SEPARATOR ',' EMAIL_HOST_USER 'AKIAILBSJCVZ2FI3ZF7A' USE_L10N True SESSION_COOKIE_DOMAIN None LANGUAGES_BIDI ('he', 'ar', 'fa', 'ur') ADMIN_FOR () ADMINS (('mitch', 'ekemekm@gmail.com'), ('john', 'jammsimons@gmail.com')) DEBUG_PROPAGATE_EXCEPTIONS False ACCOUNT_AUTHENTICATION_METHOD 'username_email' 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') CACHE_MIDDLEWARE_KEY_PREFIX '*******************_' LOGIN_URL '/accounts/login/' SESSION_COOKIE_NAME 'sessionid' ROOT_URLCONF 'mchp.urls' STRIPE_SECRET_KEY '**_****************_' STATIC_ROOT '/static/' CSRF_COOKIE_AGE 31449600 CSRF_COOKIE_NAME 'csrftoken' SESSION_COOKIE_SECURE False TEST_RUNNER 'django.test.runner.DiscoverRunner' ACCOUNT_ADAPTER 'user_profile.adapter.AccountAdapter' TEST_NON_SERIALIZED_APPS [] DEFAULT_FILE_STORAGE 'documents.s3utils.MediaS3Storage' AWS_STORAGE_BUCKET_NAME 'mchp-production' LANGUAGE_COOKIE_PATH '/' TIME_INPUT_FORMATS ('%H:%M:%S', '%H:%M:%S.%f', '%H:%M') CSRF_COOKIE_SECURE False ACCOUNT_USERNAME_MIN_LENGTH 4 STATICFILES_STORAGE 'documents.s3utils.StaticS3Storage' SESSION_CACHE_ALIAS 'default' DEFAULT_TABLESPACE '' FORMAT_MODULE_PATH None SESSION_COOKIE_PATH '/' WSGI_APPLICATION 'mchp.wsgi.application' CELERY_TIMEZONE 'UTC' LOGIN_REDIRECT_URL '/home/' INBOX_EXPIRE_DAYS 30 LOGGING {'disable_existing_loggers': True, 'filters': {'require_debug_false': {'()': 'django.utils.log.RequireDebugFalse'}}, 'handlers': {'celery': {'class': 'logging.handlers.RotatingFileHandler', 'filename': 'celery.log', 'level': 'ERROR', 'maxBytes': 104857600}, 'file': {'class': 'logging.FileHandler', 'filename': './mchp/debug.log', 'level': 'DEBUG'}, 'mail_admins': {'class': 'django.utils.log.AdminEmailHandler', 'email_backend': 'django_smtp_ssl.SSLEmailBackend', 'filters': ['require_debug_false'], 'include_html': True, 'level': 'ERROR'}, 'null': {'class': 'django.utils.log.NullHandler', 'level': 'DEBUG'}}, 'loggers': {'celery.task': {'handlers': ['celery'], 'level': 'ERROR'}, 'django': {'handlers': ['null'], 'level': 'INFO', 'propagate': True}, 'django.request': {'handlers': ['mail_admins'], 'level': 'ERROR', 'propagate': False}}, 'version': 1} CELERY_RESULT_BACKEND 'amqp://' PASSWORD_RESET_TIMEOUT_DAYS '**_****************_' INSTALLED_APPS ('django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.humanize', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.sites', 'django.contrib.flatpages', 'demo', 'lib', 'landing', 'user_profile', 'calendar_mchp', 'documents', 'dashboard', 'notification', 'referral', 'schedule', 'payment', 'campaigns', 'studyguides', 'rosters', 'storages', 'allauth', 'allauth.account', 'allauth.socialaccount', 'allauth.socialaccount.providers.facebook', 'django_extensions') PROFANITIES_LIST '**_****************_' CACHE_MIDDLEWARE_ALIAS 'default' LOGGING_CONFIG 'logging.config.dictConfig' CELERYBEAT_SCHEDULE {'collect-subscriptions': {'schedule': datetime.timedelta(0, 43200), 'task': 'calendar_mchp.tasks.bill_collector'}} ACCOUNT_EMAIL_REQUIRED True EMAIL_USE_TLS True MIGRATION_MODULES {} MEDIA_URL 'https://mchp-production.s3.amazonaws.com/media/' APPEND_SLASH True DEFAULT_CONTENT_TYPE 'text/html' ACCOUNT_EMAIL_CONFIRMATION_ANONYMOUS_REDIRECT_URL '/accounts/login/' 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')) STRIPE_PUBLIC_KEY '**_****************_' SESSION_SAVE_EVERY_REQUEST False DECIMAL_SEPARATOR '.' TEMPLATE_DIRS ('./mchp/templates/',) FIXTURE_DIRS () AWS_SECRET_ACCESS_KEY '**_****************_' FILE_UPLOAD_HANDLERS ('django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler') STATICFILES_DIRS () SESSION_ENGINE 'django.contrib.sessions.backends.db' LOCALE_PATHS () DEFAULT_EXCEPTION_REPORTER_FILTER 'django.views.debug.SafeExceptionReporterFilter' SESSION_COOKIE_AGE 1209600 SOCIALACCOUNT_QUERY_EMAIL True SECRET_KEY '**_****************_' CSRF_COOKIE_DOMAIN None AWS_CALLING_FORMAT 2 AWS_S3_SECURE_URLS True DEFAULT_CHARSET 'utf-8' BASE_DIR '.' PASSWORD_HASHERS '**_****************_' TEMPLATE_CONTEXT_PROCESSORS ('django.contrib.messages.context_processors.messages', 'django.contrib.auth.context_processors.auth', 'django.core.context_processors.request', 'allauth.account.context_processors.account', 'allauth.socialaccount.context_processors.socialaccount', 'donottrack.context_processors.donottrack', 'schedule.context_processors.school', 'mchp.context_processors.max_images', 'django.core.context_processors.static') DATE_FORMAT 'N j, Y' PREPEND_WWW False DATETIME_FORMAT 'N j, Y, P' TRANSACTIONS_MANAGED False EMAIL_BACKEND 'django_smtp_ssl.SSLEmailBackend' LANGUAGE_CODE 'en-us' STATIC_URL 'https://mchp-production.s3.amazonaws.com/static/' MESSAGE_TAGS {40: 'danger'} SEND_BROKEN_LINK_EMAILS False SETTINGS_MODULE 'mchp.settings' CSRF_FAILURE_VIEW 'django.views.csrf.csrf_failure' LANGUAGE_COOKIE_DOMAIN None MESSAGE_STORAGE 'django.contrib.messages.storage.fallback.FallbackStorage' MANAGERS () COMMENTS_ALLOW_PROFANITIES False FIRST_DAY_OF_WEEK 0 SHORT_DATE_FORMAT 'm/d/Y' ACCOUNT_LOGIN_ON_EMAIL_CONFIRMATION True ACCOUNT_SIGNUP_FORM_CLASS 'user_profile.form.UserSignupForm' SHORT_DATETIME_FORMAT 'm/d/Y P' AUTHENTICATION_BACKENDS ('django.contrib.auth.backends.ModelBackend', 'allauth.account.auth_backends.AuthenticationBackend') DEFAULT_INDEX_TABLESPACE '' ABSOLUTE_URL_OVERRIDES {} ALLOWED_INCLUDE_ROOTS () LOGOUT_URL '/accounts/logout/' AWS_ACCESS_KEY_ID '**_****************_' STATICFILES_FINDERS ('django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder') EMAIL_HOST_PASSWORD '**_****************_' SERVER_EMAIL 'mchp error contact@mycollegehomepage.com' NUMBER_GROUPING 0 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') SESSION_FILE_PATH None TIME_FORMAT 'P' FILE_UPLOAD_PERMISSIONS None ACCOUNT_USERNAME_REQUIRED True SILENCED_SYSTEM_CHECKS [] EMAIL_USE_SSL False SOCIALACCOUNT_PROVIDERS {'facebook': {'METHOD': 'js_sdk', 'SCOPE': ['publish_actions']}} MCHP_PRICING {'calendar_expiration': datetime.timedelta(183), 'commission_rate': 40, 'delinquent_subscription_length': datetime.timedelta(1), 'referral_reward': 500, 'subscription_length': datetime.timedelta(14)} EMAIL_HOST 'email-smtp.us-east-1.amazonaws.com' BROKER_URL 'amqp://' ACCOUNT_CONFIRM_EMAIL_ON_GET True USE_I18N True USE_THOUSAND_SEPARATOR False DEBUG False CACHES {'default': {'BACKEND': 'django.core.cache.backends.db.DatabaseCache', 'LOCATION': 'default_cache'}, 'rss_cache': {'BACKEND': 'django.core.cache.backends.db.DatabaseCache', 'LOCATION': 'rss_cache'}} ALLOWED_HOSTS ['www.mycollegehomepage.com', 'www.mycollegehomepage.com.', 'mycollegehomepage.com', 'mycollegehomepage.com'] MEDIA_ROOT '/media/' AUTH_USER_MODEL 'auth.User' INTERNAL_IPS () REF_SESSION_KEY '**_****************_' TEMPLATE_LOADERS ('django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader') YEAR_MONTH_FORMAT 'F Y' SESSION_EXPIRE_AT_BROWSER_CLOSE False ACCOUNT_USERNAME_BLACKLIST ['Admin', 'admin'] SITE_ID 3 IGNORABLE_404_URLS () MONTH_DAY_FORMAT 'F j' SESSION_COOKIE_HTTPONLY True LANGUAGE_COOKIE_NAME 'django_language' SESSION_SERIALIZER 'django.contrib.sessions.serializers.JSONSerializer' ACCOUNT_PASSWORD_MIN_LENGTH '**_****************_' FILE_CHARSET 'utf-8' X_FRAME_OPTIONS 'SAMEORIGIN' EMAIL_CONFIRMATION_AUTHENTICATED_REDIRECT_URL '/school/course/add/' CSRF_COOKIE_PATH '/' TEMPLATE_STRING_IF_INVALID '' SECURE_PROXY_SSL_HEADER None DATABASES {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'HOST': 'mchp-prod.cqiufpmwyjdb.us-west-2.rds.amazonaws.com', 'NAME': 'mchp', 'OPTIONS': {}, 'PASSWORD': '**_*****************', 'PORT': '5432', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': 'UTC', 'USER': 'admin_mchp'}} REF_GET_PARAMETER 'ref' CSRF_COOKIE_HTTPONLY False USE_X_FORWARDED_HOST False CACHE_MIDDLEWARE_SECONDS 600 DEFAULT_FROM_EMAIL 'mchp contact contact@mycollegehomepage.com' EMAIL_PORT 465 ACCOUNT_EMAIL_CONFIRMATION_EXPIRE_DAYS 1 FILE_UPLOAD_TEMP_DIR None DATABASE_ROUTERS [] SIGNING_BACKEND 'django.core.signing.TimestampSigner'
Johnsel commented 9 years ago

Is this still relevant?