下面是进入之后,再加/edit得到的结果。
TemplateDoesNotExist at /edit/
edit/index.html
Request Method: GET
Request URL:
http://www.ubuntu.org.cn/edit/
Exception Type: TemplateDoesNotExist
Exception Value:
edit/index.html
Exception Location: /usr/local/lib/python2.6/site-packages/django/template/loader.py in find_template_source, line 74
Python Executable: /usr/bin/python
Python Version: 2.6.0
Python Path: ['/var/www/ubuntumain/UbuntuMainSite/src/', '/share/var/www/ubuntumain/UbuntuMainSite/src/mysite/htdocs', '/usr/local/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg', '/usr/local/lib/python2.6/site-packages/flup-1.0.2-py2.6.egg', '/usr/local/lib/python26.zip', '/usr/local/lib/python2.6', '/usr/local/lib/python2.6/plat-linux2', '/usr/local/lib/python2.6/lib-tk', '/usr/local/lib/python2.6/lib-old', '/usr/local/lib/python2.6/lib-dynload', '/usr/local/lib/python2.6/site-packages', '/usr/local/lib/python2.6/site-packages/PIL']
Server time: Wed, 15 Jul 2009 04:39:58 -0500
Template-loader postmortem
Django tried loading these templates, in this order:
* Using loader django.template.loaders.filesystem.load_template_source:
o /share/var/www/ubuntumain/UbuntuMainSite/src/mysite/templates/edit/index.html (File does not exist)
* Using loader django.template.loaders.app_directories.load_template_source:
o /usr/local/lib/python2.6/site-packages/django/contrib/admin/templates/edit/index.html (File does not exist)
o /var/www/ubuntumain/UbuntuMainSite/src/mysite/templates/edit/index.html (File does not exist)
Traceback Switch to copy-and-paste view
* /usr/local/lib/python2.6/site-packages/django/core/handlers/base.py in get_response
85. # Apply view middleware
86. for middleware_method in self._view_middleware:
87. response = middleware_method(request, callback, callback_args, callback_kwargs)
88. if response:
89. return response
90.
91. try:
92. response = callback(request, *callback_args, **callback_kwargs) ...
93. except Exception, e:
94. # If the view raised an exception, run it through exception
95. # middleware, and if the exception middleware returns a
96. # response, use that. Otherwise, reraise the exception.
97. for middleware_method in self._exception_middleware:
98. response = middleware_method(request, e)
▶ Local vars
Variable Value
callback
<function html at 0x12955f0>
callback_args
()
callback_kwargs
{'path': u'edit/'}
e
TemplateDoesNotExist(u'edit/index.html',)
exc_info
(<class 'django.template.TemplateDoesNotExist'>, TemplateDoesNotExist(u'edit/index.html',), <traceback object at 0xb0b5f0>)
exceptions
<module 'django.core.exceptions' from '/usr/local/lib/python2.6/site-packages/django/core/exceptions.pyc'>
middleware_method
<bound method XViewMiddleware.process_view of <django.middleware.doc.XViewMiddleware object at 0xd27450>>
receivers
[(<function _rollback_on_exception at 0xd83230>, None)]
request
<WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{'__utma': '128672712.577035686.1242755453.1245158626.1247650980.8', '__utmb': '128672712', '__utmc': '128672712', '__utmz': '128672712.1247650980.8.8.utmccn=(referral)|utmcsr=forum.ubuntu.org.cn|utmcct=/viewtopic.php|utmcmd=referral', 'has_js': '1'}, META:{'DOCUMENT_ROOT': '/var/www/ubuntumain/UbuntuMainSite/src/mysite/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_CHARSET': 'gb2312,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'zh-cn,zh;q=0.5', 'HTTP_COOKIE': '__utma=128672712.577035686.1242755453.1245158626.1247650980.8; __utmz=128672712.1247650980.8.8.utmccn=(referral)|utmcsr=forum.ubuntu.org.cn|utmcct=/viewtopic.php|utmcmd=referral; has_js=1; __utmb=128672712; __utmc=128672712', 'HTTP_HOST': '
www.ubuntu.org.cn', 'HTTP_KEEP_ALIVE': '300', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux i686; zh-CN; rv:1.9.0.11) Gecko/2009060308 Ubuntu/9.04 (jaunty) Firefox/3.0.11', 'HTTP_X_FORWARDED_FOR': '115.148.183.249', 'HTTP_X_FORWARDED_PROTO': 'http', 'HTTP_X_HOST': '
www.ubuntu.org.cn', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': u'/edit/', 'PATH_TRANSLATED': 'redirect:/ubuntu.fcgi/edit//', 'QUERY_STRING': '', 'REDIRECT_STATUS': '200', 'REDIRECT_URL': '/edit/', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '37588', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/edit/', 'SCRIPT_FILENAME': '/var/www/ubuntumain/UbuntuMainSite/src/mysite/htdocs/ubuntu.fcgi', 'SCRIPT_NAME': u'', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': 'webmaster@localhost', 'SERVER_NAME': '
www.ubuntu.org.cn', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.2.8', 'wsgi.errors': <flup.server.fcgi_base.OutputStream object at 0xb04690>, 'wsgi.input': <flup.server.fcgi_base.InputStream object at 0xb04650>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>
resolver
<RegexURLResolver mysite.urls ^/>
response
None
self
<django.core.handlers.wsgi.WSGIHandler object at 0xab2490>
settings
<django.conf.LazySettings object at 0xa627d0>
urlconf
'mysite.urls'
urlresolvers
<module 'django.core.urlresolvers' from '/usr/local/lib/python2.6/site-packages/django/core/urlresolvers.pyc'>
* /var/www/ubuntumain/UbuntuMainSite/src/mysite/views.py in html
60. if (not os.path.exists(savefile)) or (request.GET.has_key('reload')):
61. savehtml("
http://www.ubuntu.com/"+url,savefile)
62. transhtmlfile(path)
63. if request.GET.has_key('edit'):
64. return edit(request,path)
65. if request.POST.has_key('message'):
66. return save(request,path)
67. return render_to_response(path) ...
68.
69. @login_required
70. def save(request,file):
71. loadfile=SITE_DIR+"trans/"+file
72. path=loadfile[:loadfile.rindex("/")]
73. if not os.path.exists(path):
▶ Local vars
Variable Value
lastkey
u'/'
path
u'edit/index.html'
request
<WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{'__utma': '128672712.577035686.1242755453.1245158626.1247650980.8', '__utmb': '128672712', '__utmc': '128672712', '__utmz': '128672712.1247650980.8.8.utmccn=(referral)|utmcsr=forum.ubuntu.org.cn|utmcct=/viewtopic.php|utmcmd=referral', 'has_js': '1'}, META:{'DOCUMENT_ROOT': '/var/www/ubuntumain/UbuntuMainSite/src/mysite/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_CHARSET': 'gb2312,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'zh-cn,zh;q=0.5', 'HTTP_COOKIE': '__utma=128672712.577035686.1242755453.1245158626.1247650980.8; __utmz=128672712.1247650980.8.8.utmccn=(referral)|utmcsr=forum.ubuntu.org.cn|utmcct=/viewtopic.php|utmcmd=referral; has_js=1; __utmb=128672712; __utmc=128672712', 'HTTP_HOST': '
www.ubuntu.org.cn', 'HTTP_KEEP_ALIVE': '300', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux i686; zh-CN; rv:1.9.0.11) Gecko/2009060308 Ubuntu/9.04 (jaunty) Firefox/3.0.11', 'HTTP_X_FORWARDED_FOR': '115.148.183.249', 'HTTP_X_FORWARDED_PROTO': 'http', 'HTTP_X_HOST': '
www.ubuntu.org.cn', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': u'/edit/', 'PATH_TRANSLATED': 'redirect:/ubuntu.fcgi/edit//', 'QUERY_STRING': '', 'REDIRECT_STATUS': '200', 'REDIRECT_URL': '/edit/', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '37588', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/edit/', 'SCRIPT_FILENAME': '/var/www/ubuntumain/UbuntuMainSite/src/mysite/htdocs/ubuntu.fcgi', 'SCRIPT_NAME': u'', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': 'webmaster@localhost', 'SERVER_NAME': '
www.ubuntu.org.cn', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.2.8', 'wsgi.errors': <flup.server.fcgi_base.OutputStream object at 0xb04690>, 'wsgi.input': <flup.server.fcgi_base.InputStream object at 0xb04650>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>
savefile
u'/var/www/ubuntumain/UbuntuMainSite/src/mysite/templates/edit/index.html'
url
u'edit/'
* /usr/local/lib/python2.6/site-packages/django/shortcuts/__init__.py in render_to_response
13.
14. def render_to_response(*args, **kwargs):
15. """
16. Returns a HttpResponse whose content is filled with the result of calling
17. django.template.loader.render_to_string() with the passed arguments.
18. """
19. httpresponse_kwargs = {'mimetype': kwargs.pop('mimetype', None)}
20. return HttpResponse(loader.render_to_string(*args, **kwargs), **httpresponse_kwargs) ...
21.
22. def redirect(to, *args, **kwargs):
23. """
24. Returns an HttpResponseRedirect to the apropriate URL for the arguments
25. passed.
26.
▶ Local vars
Variable Value
args
(u'edit/index.html',)
httpresponse_kwargs
{'mimetype': None}
kwargs
{}
* /usr/local/lib/python2.6/site-packages/django/template/loader.py in render_to_string
96. get_template, or it may be a tuple to use select_template to find one of
97. the templates in the list. Returns a string.
98. """
99. dictionary = dictionary or {}
100. if isinstance(template_name, (list, tuple)):
101. t = select_template(template_name)
102. else:
103. t = get_template(template_name) ...
104. if context_instance:
105. context_instance.update(dictionary)
106. else:
107. context_instance = Context(dictionary)
108. return t.render(context_instance)
109.
▶ Local vars
Variable Value
context_instance
None
dictionary
{}
template_name
u'edit/index.html'
* /usr/local/lib/python2.6/site-packages/django/template/loader.py in get_template
74. raise TemplateDoesNotExist, name
75.
76. def get_template(template_name):
77. """
78. Returns a compiled Template object for the given template name,
79. handling template inheritance recursively.
80. """
81. source, origin = find_template_source(template_name) ...
82. template = get_template_from_string(source, origin, template_name)
83. return template
84.
85. def get_template_from_string(source, origin=None, name=None):
86. """
87. Returns a compiled Template object for the given template code,
▶ Local vars
Variable Value
template_name
u'edit/index.html'
* /usr/local/lib/python2.6/site-packages/django/template/loader.py in find_template_source
67. template_source_loaders = tuple(loaders)
68. for loader in template_source_loaders:
69. try:
70. source, display_name = loader(name, dirs)
71. return (source, make_origin(display_name, loader, name, dirs))
72. except TemplateDoesNotExist:
73. pass
74. raise TemplateDoesNotExist, name ...
75.
76. def get_template(template_name):
77. """
78. Returns a compiled Template object for the given template name,
79. handling template inheritance recursively.
80. """
▶ Local vars
Variable Value
dirs
None
loader
<function load_template_source at 0x1169050>
name
u'edit/index.html'
Environment: Request Method: GET Request URL:
http://www.ubuntu.org.cn/edit/ Django Version: 1.1 beta 1 Python Version: 2.6.0 Installed Applications: ['django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.admin', 'mysite', 'mysite.registration'] Installed Middleware: ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.middleware.doc.XViewMiddleware') Template Loader Error: Django tried loading these templates, in this order: Using loader django.template.loaders.filesystem.load_template_source: /share/var/www/ubuntumain/UbuntuMainSite/src/mysite/templates/edit/index.html (File does not exist) Using loader django.template.loaders.app_directories.load_template_source: /usr/local/lib/python2.6/site-packages/django/contrib/admin/templates/edit/index.html (File does not exist) /var/www/ubuntumain/UbuntuMainSite/src/mysite/templates/edit/index.html (File does not exist) Traceback: File "/usr/local/lib/python2.6/site-packages/django/core/handlers/base.py" in get_response 92. response = callback(request, *callback_args, **callback_kwargs) File "/var/www/ubuntumain/UbuntuMainSite/src/mysite/views.py" in html 67. return render_to_response(path) File "/usr/local/lib/python2.6/site-packages/django/shortcuts/__init__.py" in render_to_response 20. return HttpResponse(loader.render_to_string(*args, **kwargs), **httpresponse_kwargs) File "/usr/local/lib/python2.6/site-packages/django/template/loader.py" in render_to_string 103. t = get_template(template_name) File "/usr/local/lib/python2.6/site-packages/django/template/loader.py" in get_template 81. source, origin = find_template_source(template_name) File "/usr/local/lib/python2.6/site-packages/django/template/loader.py" in find_template_source 74. raise TemplateDoesNotExist, name Exception Type: TemplateDoesNotExist at /edit/ Exception Value: edit/index.html
Request information
GET
No GET data
POST
No POST data
FILES
No FILES data
COOKIES
Variable Value
has_js
'1'
__utma
'128672712.577035686.1242755453.1245158626.1247650980.8'
__utmz
'128672712.1247650980.8.8.utmccn=(referral)|utmcsr=forum.ubuntu.org.cn|utmcct=/viewtopic.php|utmcmd=referral'
__utmc
'128672712'
__utmb
'128672712'
META
Variable Value
DOCUMENT_ROOT
'/var/www/ubuntumain/UbuntuMainSite/src/mysite/htdocs'
GATEWAY_INTERFACE
'CGI/1.1'
HTTP_ACCEPT
'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'
HTTP_ACCEPT_CHARSET
'gb2312,utf-8;q=0.7,*;q=0.7'
HTTP_ACCEPT_ENCODING
'gzip,deflate'
HTTP_ACCEPT_LANGUAGE
'zh-cn,zh;q=0.5'
HTTP_COOKIE
'__utma=128672712.577035686.1242755453.1245158626.1247650980.8; __utmz=128672712.1247650980.8.8.utmccn=(referral)|utmcsr=forum.ubuntu.org.cn|utmcct=/viewtopic.php|utmcmd=referral; has_js=1; __utmb=128672712; __utmc=128672712'
HTTP_HOST
'
www.ubuntu.org.cn'
HTTP_KEEP_ALIVE
'300'
HTTP_USER_AGENT
'Mozilla/5.0 (X11; U; Linux i686; zh-CN; rv:1.9.0.11) Gecko/2009060308 Ubuntu/9.04 (jaunty) Firefox/3.0.11'
HTTP_X_FORWARDED_FOR
'115.148.183.249'
HTTP_X_FORWARDED_PROTO
'http'
HTTP_X_HOST
'
www.ubuntu.org.cn'
PATH
'/usr/local/bin:/usr/bin:/bin'
PATH_INFO
u'/edit/'
PATH_TRANSLATED
'redirect:/ubuntu.fcgi/edit//'
QUERY_STRING
''
REDIRECT_STATUS
'200'
REDIRECT_URL
'/edit/'
REMOTE_ADDR
'127.0.0.1'
REMOTE_PORT
'37588'
REQUEST_METHOD
'GET'
REQUEST_URI
'/edit/'
SCRIPT_FILENAME
'/var/www/ubuntumain/UbuntuMainSite/src/mysite/htdocs/ubuntu.fcgi'
SCRIPT_NAME
u''
SERVER_ADDR
'127.0.0.1'
SERVER_ADMIN
'webmaster@localhost'
SERVER_NAME
'
www.ubuntu.org.cn'
SERVER_PORT
'80'
SERVER_PROTOCOL
'HTTP/1.0'
SERVER_SIGNATURE
''
SERVER_SOFTWARE
'Apache/2.2.8'
wsgi.errors
<flup.server.fcgi_base.OutputStream object at 0xb04690>
wsgi.input
<flup.server.fcgi_base.InputStream object at 0xb04650>
wsgi.multiprocess
False
wsgi.multithread
True
wsgi.run_once
False
wsgi.url_scheme
'http'
wsgi.version
(1, 0)
Settings
Using settings module mysite.settings
Setting Value
ABSOLUTE_URL_OVERRIDES
{}
ACCOUNT_ACTIVATION_DAYS
7
ADMINS
()
ADMIN_FOR
()
ADMIN_MEDIA_PREFIX
'/media/'
ALLOWED_INCLUDE_ROOTS
()
APPEND_SLASH
False
AUTHENTICATION_BACKENDS
('django.contrib.auth.backends.ModelBackend',)
BANNED_IPS
()
CACHE_BACKEND
'locmem://'
CACHE_MIDDLEWARE_KEY_PREFIX
''
CACHE_MIDDLEWARE_SECONDS
600
COMMENTS_ALLOW_PROFANITIES
False
COMMENTS_BANNED_USERS_GROUP
None
COMMENTS_FIRST_FEW
0
COMMENTS_MODERATORS_GROUP
None
COMMENTS_SKETCHY_USERS_GROUP
None
DATABASE_ENGINE
'sqlite3'
DATABASE_HOST
''
DATABASE_NAME
'/var/www/ubuntumain/UbuntuMainSite/src/mysite//mysite.db'
DATABASE_OPTIONS
{}
DATABASE_PASSWORD
'********************'
DATABASE_PORT
''
DATABASE_USER
''
DATETIME_FORMAT
'N j, Y, P'
DATE_FORMAT
'N j, Y'
DEBUG
True
DEBUG_PROPAGATE_EXCEPTIONS
False
DEFAULT_CHARSET
'utf-8'
DEFAULT_CONTENT_TYPE
'text/html'
DEFAULT_FILE_STORAGE
'django.core.files.storage.FileSystemStorage'
DEFAULT_FROM_EMAIL
'
oneleaf@ubuntu.org.cn'
DEFAULT_INDEX_TABLESPACE
''
DEFAULT_TABLESPACE
''
DISALLOWED_USER_AGENTS
()
EMAIL_HOST
'localhost'
EMAIL_HOST_PASSWORD
'********************'
EMAIL_HOST_USER
''
EMAIL_PORT
25
EMAIL_SUBJECT_PREFIX
'[Django] '
EMAIL_USE_TLS
False
FILE_CHARSET
'utf-8'
FILE_UPLOAD_HANDLERS
('django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler')
FILE_UPLOAD_MAX_MEMORY_SIZE
2621440
FILE_UPLOAD_PERMISSIONS
None
FILE_UPLOAD_TEMP_DIR
None
FIXTURE_DIRS
()
FORCE_SCRIPT_NAME
None
IGNORABLE_404_ENDS
('mail.pl', 'mailform.pl', 'mail.cgi', 'mailform.cgi', 'favicon.ico', '.php')
IGNORABLE_404_STARTS
('/cgi-bin/', '/_vti_bin', '/_vti_inf')
INSTALLED_APPS
['django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.admin', 'mysite', 'mysite.registration']
INTERNAL_IPS
()
LANGUAGES
(('ar', 'Arabic'), ('bn', 'Bengali'), ('bg', 'Bulgarian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('es', 'Spanish'), ('et', 'Estonian'), ('es-ar', 'Argentinean Spanish'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('ga', 'Irish'), ('gl', 'Galician'), ('hu', 'Hungarian'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('ko', 'Korean'), ('km', 'Khmer'), ('kn', 'Kannada'), ('lv', 'Latvian'), ('lt', 'Lithuanian'), ('mk', 'Macedonian'), ('nl', 'Dutch'), ('no', 'Norwegian'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sr', 'Serbian'), ('sv', 'Swedish'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('uk', 'Ukrainian'), ('zh-cn', 'Simplified Chinese'), ('zh-tw', 'Traditional Chinese'))
LANGUAGES_BIDI
('he', 'ar', 'fa')
LANGUAGE_CODE
'en-us'
LANGUAGE_COOKIE_NAME
'django_language'
LOCALE_PATHS
()
LOGIN_REDIRECT_URL
'/accounts/'
LOGIN_URL
'/accounts/login/'
LOGOUT_URL
'/accounts/logout/'
MANAGERS
()
MEDIA_ROOT
''
MEDIA_URL
''
MIDDLEWARE_CLASSES
('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.middleware.doc.XViewMiddleware')
MONTH_DAY_FORMAT
'F j'
PASSWORD_RESET_TIMEOUT_DAYS
'********************'
PREPEND_WWW
False
PROFANITIES_LIST
'********************'
ROOT_URLCONF
'mysite.urls'
SECRET_KEY
'********************'
SEND_BROKEN_LINK_EMAILS
False
SERVER_EMAIL
'root@localhost'
SESSION_COOKIE_AGE
1209600
SESSION_COOKIE_DOMAIN
None
SESSION_COOKIE_NAME
'sessionid'
SESSION_COOKIE_PATH
'/'
SESSION_COOKIE_SECURE
False
SESSION_ENGINE
'django.contrib.sessions.backends.db'
SESSION_EXPIRE_AT_BROWSER_CLOSE
False
SESSION_FILE_PATH
None
SESSION_SAVE_EVERY_REQUEST
False
SETTINGS_MODULE
'mysite.settings'
SITE_DIR
'/var/www/ubuntumain/UbuntuMainSite/src/mysite/'
SITE_ID
1
TEMPLATE_CONTEXT_PROCESSORS
('django.core.context_processors.auth', 'django.core.context_processors.debug', 'django.core.context_processors.i18n', 'django.core.context_processors.media')
TEMPLATE_DEBUG
True
TEMPLATE_DIRS
('./templates',)
TEMPLATE_LOADERS
('django.template.loaders.filesystem.load_template_source', 'django.template.loaders.app_directories.load_template_source')
TEMPLATE_STRING_IF_INVALID
''
TEST_DATABASE_CHARSET
None
TEST_DATABASE_COLLATION
None
TEST_DATABASE_NAME
None
TEST_RUNNER
'django.test.simple.run_tests'
TIME_FORMAT
'P'
TIME_ZONE
'America/Chicago'
TRANSACTIONS_MANAGED
False
URL_VALIDATOR_USER_AGENT
'Django/1.1 beta 1 (
http://www.djangoproject.com)'
USE_ETAGS
False
USE_I18N
True
YEAR_MONTH_FORMAT
'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 500 page.