I have been working on a site for a few weeks.  I have been checking my changes 
into svn, and use that to update a demo box.  the demo box runs under a 
different user, has django in a different path, and my files in a different 
path.  I did this on purpose just to make sure nothing was relying on any 
absolute paths.  I svn co the files to a mac, my sqlite based demo worked fine. 
  I tried the same thing with windows, and got errors.

C:\Documents and 
Settings\test\django\ridgemoor/eventcal/templates/databrowse/object_detail.html 
(File does not exist)

from IRC:
(04:48:13 PM) mattmcc: Yeah, I don't know what the deal with that is.  The 
appdir template loader seems to be skipping all the installed apps that aren't 
in your project.

Below is the output from my site.  I have similar problems hitting /admin.    I 
am installing py and django on a 2nd win box that will be just for testing 
admin, using a 'new' site.  I'll post results of that shortly.


Carl K



TemplateDoesNotExist at /eventcal/databrowse/eventcal/event/objects/4/
databrowse/object_detail.html
Request Method:  GET
Request URL:  
http://localhost:8000/eventcal/databrowse/eventcal/event/objects/4/
Exception Type:  TemplateDoesNotExist
Exception Value:  databrowse/object_detail.html
Exception Location:  C:\Python25\Lib\site-packages\django\template\loader.py in 
find_template_source, line 72
Python Executable:  C:\Python25\python.exe
Python Version:  2.5.1

Template-loader postmortem
Django tried loading these templates, in this order:

Using loader django.template.loaders.filesystem.load_template_source :
C:\Documents and 
Settings\test\django\ridgemoor/eventcal/templates/databrowse/object_detail.html 
(File does not exist)
Using loader django.template.loaders.app_directories.load_template_source :
C:\Documents and 
Settings\test\django\ridgemoor\core\templates\databrowse/object_detail.html 
(File does not exist)
C:\Documents and 
Settings\test\django\ridgemoor\eventcal\templates\databrowse/object_detail.html 
(File does not exist)
Traceback (innermost last)
Switch to copy-and-paste view


C:\Python25\Lib\site-packages\django\core\handlers\base.py in get_response
          # Apply view middleware

                  for middleware_method in self._view_middleware:

                  response = middleware_method(request, callback, 
callback_args, 
callback_kwargs)

                  if response:

                  return response


                  try:

                 response = callback(request, *callback_args, **callback_kwargs)
          ...

                 except Exception, e:

                  # If the view raised an exception, run it through exception

                  # middleware, and if the exception middleware returns a

                  # response, use that. Otherwise, reraise the exception.

                  for middleware_method in self._exception_middleware:

                  response = middleware_method(request, e)

        ▶ Local vars
Variable  Value
callback  <bound method DatabrowseSite.root of 
<django.contrib.databrowse.sites.DatabrowseSite object at 0x00F8C3B0>>
callback_args  (u'eventcal/event/objects/4/',)
callback_kwargs  {}
debug  <module 'django.views.debug' from 
'C:\Python25\lib\site-packages\django\views\debug.pyc'>
e  TemplateDoesNotExist('databrowse/object_detail.html',)
exceptions  <module 'django.core.exceptions' from 
'C:\Python25\lib\site-packages\django\core\exceptions.pyc'>
mail_admins  <function mail_admins at 0x013DDBB0>
middleware_method  <bound method XViewMiddleware.process_view of 
<django.middleware.doc.XViewMiddleware object at 0x013D9C70>>
request  <WSGIRequest GET:<MultiValueDict: {}>, POST:<MultiValueDict: {}>, 
COOKIES:{'sessionid': '5e82c3b10a83bfac4203509f183bb770'}, 
META:{'ALLUSERSPROFILE': 'C:\\Documents and Settings\\All Users', 'APPDATA': 
'C:\\Documents and Settings\\test\\Application Data', 'CLIENTNAME': 'Console', 
'COMMONPROGRAMFILES': 'C:\\Program Files\\Common Files', 'COMPUTERNAME': 
'TESTXP', 'COMSPEC': 'C:\\WINDOWS\\system32\\cmd.exe', 'CONTENT_LENGTH': '', 
'CONTENT_TYPE': 'text/plain', 'DJANGO_SETTINGS_MODULE': 'demo_settings', 
'FP_NO_HOST_CHECK': 'NO', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HOMEDRIVE': 'C:', 
'HOMEPATH': '\\Documents and Settings\\test', 'HTTP_ACCEPT': 'image/gif, 
image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, */*', 
'HTTP_ACCEPT_ENCODING': 'gzip, deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-us', 
'HTTP_CONNECTION': 'Keep-Alive', 'HTTP_COOKIE': 
'sessionid=5e82c3b10a83bfac4203509f183bb770', 'HTTP_HOST': 'localhost:8000', 
'HTTP_REFERER': 'http://localhost:8000/eventcal/', 'HTTP_USER_AGENT': 
'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)', 
'LOGONSERVER': '\\\\TESTXP', 'NUMBER_OF_PROCESSORS': '1', 'OS': 'Windows_NT', 
'PATH': 
'%SystemRoot%\\system32;%SystemRoot%;%SystemRoot%\\System32\\Wbem;C:\\Program 
Files\\Microsoft SQL Server\\80\\Tools\\BINN;;C:\\Python25;C:\\Program 
Files\\svn-win32-1.4.4\\bin;C:\\Program Files\\UnxUtils\\usr\\local\\wbin', 
'PATHEXT': '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH', 'PATH_INFO': 
'/eventcal/databrowse/eventcal/event/objects/4/', 'PROCESSOR_ARCHITECTURE': 
'x86', 'PROCESSOR_IDENTIFIER': 'x86 Family 6 Model 7 Stepping 3, GenuineIntel', 
'PROCESSOR_LEVEL': '6', 'PROCESSOR_REVISION': '0703', 'PROGRAMFILES': 
'C:\\Program Files', 'PROMPT': '$P$G', 'PYTHONPATH': '"C:\\Documents and 
Settings\\test\\django\\ridgemoor"', 'QUERY_STRING': '', 'REMOTE_ADDR': 
'127.0.0.1', 'REMOTE_HOST': '', 'REQUEST_METHOD': 'GET', 'RUN_MAIN': 'true', 
'SCRIPT_NAME': '', 'SERVER_NAME': 'testxp.DEV.JASSING.COM', 'SERVER_PORT': 
'8000', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SOFTWARE': 'WSGIServer/0.1 
Python/2.5.1', 'SESSIONNAME': 'Console', 'SYSTEMDRIVE': 'C:', 'SYSTEMROOT': 
'C:\\WINDOWS', 'TEMP': 'C:\\DOCUME~1\\test\\LOCALS~1\\Temp', 'TMP': 
'C:\\DOCUME~1\\test\\LOCALS~1\\Temp', 'USERDOMAIN': 'TESTXP', 'USERNAME': 
'test', 'USERPROFILE': 'C:\\Documents and Settings\\test', 'WINDIR': 
'C:\\WINDOWS', 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x0096F0B0>, 
'wsgi.file_wrapper': <class 'django.core.servers.basehttp.FileWrapper'>, 
'wsgi.input': <socket._fileobject object at 0x013C83F0>, 'wsgi.multiprocess': 
False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 
'http', 'wsgi.version': (1, 0)}>
resolver  <RegexURLResolver ridgemoor.urls ^/>
response  None
self  <django.core.handlers.wsgi.WSGIHandler object at 0x013BFFF0>
settings  <django.conf.LazySettings object at 0x00A9FE90>
urlconf  u'ridgemoor.urls'
urlresolvers  <module 'django.core.urlresolvers' from 
'C:\Python25\lib\site-packages\django\core\urlresolvers.pyc'>

C:\Python25\Lib\site-packages\django\contrib\databrowse\sites.py in root
          """

                  self.root_url = request.path[:len(request.path) - len(url)]

                  url = url.rstrip('/') # Trim trailing slash, if it exists.


                  if url == '':

                  return self.index(request)

                  elif '/' in url:

                 return self.model_page(request, *url.split('/', 2))
          ...


                  raise http.Http404('The requested databrowse page does not 
exist.')


                  def index(self, request):

                  m_list = [EasyModel(self, m) for m in self.registry.keys()]

                  return render_to_response('databrowse/homepage.html', 
{'model_list': m_list, 'root_url': self.root_url})

        ▶ Local vars
Variable  Value
request  <WSGIRequest GET:<MultiValueDict: {}>, POST:<MultiValueDict: {}>, 
COOKIES:{'sessionid': '5e82c3b10a83bfac4203509f183bb770'}, 
META:{'ALLUSERSPROFILE': 'C:\\Documents and Settings\\All Users', 'APPDATA': 
'C:\\Documents and Settings\\test\\Application Data', 'CLIENTNAME': 'Console', 
'COMMONPROGRAMFILES': 'C:\\Program Files\\Common Files', 'COMPUTERNAME': 
'TESTXP', 'COMSPEC': 'C:\\WINDOWS\\system32\\cmd.exe', 'CONTENT_LENGTH': '', 
'CONTENT_TYPE': 'text/plain', 'DJANGO_SETTINGS_MODULE': 'demo_settings', 
'FP_NO_HOST_CHECK': 'NO', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HOMEDRIVE': 'C:', 
'HOMEPATH': '\\Documents and Settings\\test', 'HTTP_ACCEPT': 'image/gif, 
image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, */*', 
'HTTP_ACCEPT_ENCODING': 'gzip, deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-us', 
'HTTP_CONNECTION': 'Keep-Alive', 'HTTP_COOKIE': 
'sessionid=5e82c3b10a83bfac4203509f183bb770', 'HTTP_HOST': 'localhost:8000', 
'HTTP_REFERER': 'http://localhost:8000/eventcal/', 'HTTP_USER_AGENT': 
'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)', 
'LOGONSERVER': '\\\\TESTXP', 'NUMBER_OF_PROCESSORS': '1', 'OS': 'Windows_NT', 
'PATH': 
'%SystemRoot%\\system32;%SystemRoot%;%SystemRoot%\\System32\\Wbem;C:\\Program 
Files\\Microsoft SQL Server\\80\\Tools\\BINN;;C:\\Python25;C:\\Program 
Files\\svn-win32-1.4.4\\bin;C:\\Program Files\\UnxUtils\\usr\\local\\wbin', 
'PATHEXT': '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH', 'PATH_INFO': 
'/eventcal/databrowse/eventcal/event/objects/4/', 'PROCESSOR_ARCHITECTURE': 
'x86', 'PROCESSOR_IDENTIFIER': 'x86 Family 6 Model 7 Stepping 3, GenuineIntel', 
'PROCESSOR_LEVEL': '6', 'PROCESSOR_REVISION': '0703', 'PROGRAMFILES': 
'C:\\Program Files', 'PROMPT': '$P$G', 'PYTHONPATH': '"C:\\Documents and 
Settings\\test\\django\\ridgemoor"', 'QUERY_STRING': '', 'REMOTE_ADDR': 
'127.0.0.1', 'REMOTE_HOST': '', 'REQUEST_METHOD': 'GET', 'RUN_MAIN': 'true', 
'SCRIPT_NAME': '', 'SERVER_NAME': 'testxp.DEV.JASSING.COM', 'SERVER_PORT': 
'8000', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SOFTWARE': 'WSGIServer/0.1 
Python/2.5.1', 'SESSIONNAME': 'Console', 'SYSTEMDRIVE': 'C:', 'SYSTEMROOT': 
'C:\\WINDOWS', 'TEMP': 'C:\\DOCUME~1\\test\\LOCALS~1\\Temp', 'TMP': 
'C:\\DOCUME~1\\test\\LOCALS~1\\Temp', 'USERDOMAIN': 'TESTXP', 'USERNAME': 
'test', 'USERPROFILE': 'C:\\Documents and Settings\\test', 'WINDIR': 
'C:\\WINDOWS', 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x0096F0B0>, 
'wsgi.file_wrapper': <class 'django.core.servers.basehttp.FileWrapper'>, 
'wsgi.input': <socket._fileobject object at 0x013C83F0>, 'wsgi.multiprocess': 
False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 
'http', 'wsgi.version': (1, 0)}>
self  <django.contrib.databrowse.sites.DatabrowseSite object at 0x00F8C3B0>
url  u'eventcal/event/objects/4'

C:\Python25\Lib\site-packages\django\contrib\databrowse\sites.py in model_page
          model = models.get_model(app_label, model_name)

                  if model is None:

                  raise http.Http404("App %r, model %r, not found." % 
(app_label, model_name))

                  try:

                  databrowse_class = self.registry[model]

                  except KeyError:

                  raise http.Http404("This model exists but has not been 
registered with databrowse.")

                 return databrowse_class(model, self).root(request, rest_of_url)
          ...


                  site = DatabrowseSite()


                  from django.contrib.databrowse.plugins.calendars import 
CalendarPlugin

                  from django.contrib.databrowse.plugins.objects import 
ObjectDetailPlugin

                  from django.contrib.databrowse.plugins.fieldchoices import 
FieldChoicePlugin

        ▶ Local vars
Variable  Value
app_label  u'eventcal'
databrowse_class  <class 
'django.contrib.databrowse.sites.DefaultModelDatabrowse'>
model  <class 'ridgemoor.eventcal.models.Event'>
model_name  u'event'
request  <WSGIRequest GET:<MultiValueDict: {}>, POST:<MultiValueDict: {}>, 
COOKIES:{'sessionid': '5e82c3b10a83bfac4203509f183bb770'}, 
META:{'ALLUSERSPROFILE': 'C:\\Documents and Settings\\All Users', 'APPDATA': 
'C:\\Documents and Settings\\test\\Application Data', 'CLIENTNAME': 'Console', 
'COMMONPROGRAMFILES': 'C:\\Program Files\\Common Files', 'COMPUTERNAME': 
'TESTXP', 'COMSPEC': 'C:\\WINDOWS\\system32\\cmd.exe', 'CONTENT_LENGTH': '', 
'CONTENT_TYPE': 'text/plain', 'DJANGO_SETTINGS_MODULE': 'demo_settings', 
'FP_NO_HOST_CHECK': 'NO', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HOMEDRIVE': 'C:', 
'HOMEPATH': '\\Documents and Settings\\test', 'HTTP_ACCEPT': 'image/gif, 
image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, */*', 
'HTTP_ACCEPT_ENCODING': 'gzip, deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-us', 
'HTTP_CONNECTION': 'Keep-Alive', 'HTTP_COOKIE': 
'sessionid=5e82c3b10a83bfac4203509f183bb770', 'HTTP_HOST': 'localhost:8000', 
'HTTP_REFERER': 'http://localhost:8000/eventcal/', 'HTTP_USER_AGENT': 
'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)', 
'LOGONSERVER': '\\\\TESTXP', 'NUMBER_OF_PROCESSORS': '1', 'OS': 'Windows_NT', 
'PATH': 
'%SystemRoot%\\system32;%SystemRoot%;%SystemRoot%\\System32\\Wbem;C:\\Program 
Files\\Microsoft SQL Server\\80\\Tools\\BINN;;C:\\Python25;C:\\Program 
Files\\svn-win32-1.4.4\\bin;C:\\Program Files\\UnxUtils\\usr\\local\\wbin', 
'PATHEXT': '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH', 'PATH_INFO': 
'/eventcal/databrowse/eventcal/event/objects/4/', 'PROCESSOR_ARCHITECTURE': 
'x86', 'PROCESSOR_IDENTIFIER': 'x86 Family 6 Model 7 Stepping 3, GenuineIntel', 
'PROCESSOR_LEVEL': '6', 'PROCESSOR_REVISION': '0703', 'PROGRAMFILES': 
'C:\\Program Files', 'PROMPT': '$P$G', 'PYTHONPATH': '"C:\\Documents and 
Settings\\test\\django\\ridgemoor"', 'QUERY_STRING': '', 'REMOTE_ADDR': 
'127.0.0.1', 'REMOTE_HOST': '', 'REQUEST_METHOD': 'GET', 'RUN_MAIN': 'true', 
'SCRIPT_NAME': '', 'SERVER_NAME': 'testxp.DEV.JASSING.COM', 'SERVER_PORT': 
'8000', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SOFTWARE': 'WSGIServer/0.1 
Python/2.5.1', 'SESSIONNAME': 'Console', 'SYSTEMDRIVE': 'C:', 'SYSTEMROOT': 
'C:\\WINDOWS', 'TEMP': 'C:\\DOCUME~1\\test\\LOCALS~1\\Temp', 'TMP': 
'C:\\DOCUME~1\\test\\LOCALS~1\\Temp', 'USERDOMAIN': 'TESTXP', 'USERNAME': 
'test', 'USERPROFILE': 'C:\\Documents and Settings\\test', 'WINDIR': 
'C:\\WINDOWS', 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x0096F0B0>, 
'wsgi.file_wrapper': <class 'django.core.servers.basehttp.FileWrapper'>, 
'wsgi.input': <socket._fileobject object at 0x013C83F0>, 'wsgi.multiprocess': 
False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 
'http', 'wsgi.version': (1, 0)}>
rest_of_url  u'objects/4'
self  <django.contrib.databrowse.sites.DatabrowseSite object at 0x00F8C3B0>

C:\Python25\Lib\site-packages\django\contrib\databrowse\sites.py in root
          plugin_name, rest_of_url = url.split('/', 1)

                  except ValueError: # need more than 1 value to unpack

                  plugin_name, rest_of_url = url, None

                  try:

                  plugin = self.plugins[plugin_name]

                  except KeyError:

                  raise http.Http404('A plugin with the requested name does not 
exist.')

                 return plugin.model_view(request, self, rest_of_url)
          ...


                  def main_view(self, request):

                  easy_model = EasyModel(self.site, self.model)

                  html_snippets = u'\n'.join([p.model_index_html(request, 
self.model, self.site) for p in self.plugins.values()])

                  return render_to_response('databrowse/model_detail.html', {

                  'model': easy_model,

        ▶ Local vars
Variable  Value
plugin  <django.contrib.databrowse.plugins.objects.ObjectDetailPlugin object at 
0x00FD66B0>
plugin_name  u'objects'
request  <WSGIRequest GET:<MultiValueDict: {}>, POST:<MultiValueDict: {}>, 
COOKIES:{'sessionid': '5e82c3b10a83bfac4203509f183bb770'}, 
META:{'ALLUSERSPROFILE': 'C:\\Documents and Settings\\All Users', 'APPDATA': 
'C:\\Documents and Settings\\test\\Application Data', 'CLIENTNAME': 'Console', 
'COMMONPROGRAMFILES': 'C:\\Program Files\\Common Files', 'COMPUTERNAME': 
'TESTXP', 'COMSPEC': 'C:\\WINDOWS\\system32\\cmd.exe', 'CONTENT_LENGTH': '', 
'CONTENT_TYPE': 'text/plain', 'DJANGO_SETTINGS_MODULE': 'demo_settings', 
'FP_NO_HOST_CHECK': 'NO', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HOMEDRIVE': 'C:', 
'HOMEPATH': '\\Documents and Settings\\test', 'HTTP_ACCEPT': 'image/gif, 
image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, */*', 
'HTTP_ACCEPT_ENCODING': 'gzip, deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-us', 
'HTTP_CONNECTION': 'Keep-Alive', 'HTTP_COOKIE': 
'sessionid=5e82c3b10a83bfac4203509f183bb770', 'HTTP_HOST': 'localhost:8000', 
'HTTP_REFERER': 'http://localhost:8000/eventcal/', 'HTTP_USER_AGENT': 
'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)', 
'LOGONSERVER': '\\\\TESTXP', 'NUMBER_OF_PROCESSORS': '1', 'OS': 'Windows_NT', 
'PATH': 
'%SystemRoot%\\system32;%SystemRoot%;%SystemRoot%\\System32\\Wbem;C:\\Program 
Files\\Microsoft SQL Server\\80\\Tools\\BINN;;C:\\Python25;C:\\Program 
Files\\svn-win32-1.4.4\\bin;C:\\Program Files\\UnxUtils\\usr\\local\\wbin', 
'PATHEXT': '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH', 'PATH_INFO': 
'/eventcal/databrowse/eventcal/event/objects/4/', 'PROCESSOR_ARCHITECTURE': 
'x86', 'PROCESSOR_IDENTIFIER': 'x86 Family 6 Model 7 Stepping 3, GenuineIntel', 
'PROCESSOR_LEVEL': '6', 'PROCESSOR_REVISION': '0703', 'PROGRAMFILES': 
'C:\\Program Files', 'PROMPT': '$P$G', 'PYTHONPATH': '"C:\\Documents and 
Settings\\test\\django\\ridgemoor"', 'QUERY_STRING': '', 'REMOTE_ADDR': 
'127.0.0.1', 'REMOTE_HOST': '', 'REQUEST_METHOD': 'GET', 'RUN_MAIN': 'true', 
'SCRIPT_NAME': '', 'SERVER_NAME': 'testxp.DEV.JASSING.COM', 'SERVER_PORT': 
'8000', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SOFTWARE': 'WSGIServer/0.1 
Python/2.5.1', 'SESSIONNAME': 'Console', 'SYSTEMDRIVE': 'C:', 'SYSTEMROOT': 
'C:\\WINDOWS', 'TEMP': 'C:\\DOCUME~1\\test\\LOCALS~1\\Temp', 'TMP': 
'C:\\DOCUME~1\\test\\LOCALS~1\\Temp', 'USERDOMAIN': 'TESTXP', 'USERNAME': 
'test', 'USERPROFILE': 'C:\\Documents and Settings\\test', 'WINDIR': 
'C:\\WINDOWS', 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x0096F0B0>, 
'wsgi.file_wrapper': <class 'django.core.servers.basehttp.FileWrapper'>, 
'wsgi.input': <socket._fileobject object at 0x013C83F0>, 'wsgi.multiprocess': 
False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 
'http', 'wsgi.version': (1, 0)}>
rest_of_url  u'4'
self  <django.contrib.databrowse.sites.DefaultModelDatabrowse object at 
0x00FFB270>
url  u'objects/4'

C:\Python25\Lib\site-packages\django\contrib\databrowse\plugins\objects.py in 
model_view
          class ObjectDetailPlugin(DatabrowsePlugin):

                  def model_view(self, request, model_databrowse, url):

                  # If the object ID wasn't provided, redirect to the model 
page, which is one level up.

                  if url is None:

                  return 
http.HttpResponseRedirect(urlparse.urljoin(request.path, '../'))

                  easy_model = EasyModel(model_databrowse.site, 
model_databrowse.model)

                  obj = easy_model.object_by_pk(url)

                 return render_to_response('databrowse/object_detail.html', 
{'object': obj, 'root_url': model_databrowse.site.root_url})
          ...

        ▶ Local vars
Variable  Value
easy_model  <EasyModel for Event>
model_databrowse  <django.contrib.databrowse.sites.DefaultModelDatabrowse 
object 
at 0x00FFB270>
obj  <EasyInstance for Event (4)>
request  <WSGIRequest GET:<MultiValueDict: {}>, POST:<MultiValueDict: {}>, 
COOKIES:{'sessionid': '5e82c3b10a83bfac4203509f183bb770'}, 
META:{'ALLUSERSPROFILE': 'C:\\Documents and Settings\\All Users', 'APPDATA': 
'C:\\Documents and Settings\\test\\Application Data', 'CLIENTNAME': 'Console', 
'COMMONPROGRAMFILES': 'C:\\Program Files\\Common Files', 'COMPUTERNAME': 
'TESTXP', 'COMSPEC': 'C:\\WINDOWS\\system32\\cmd.exe', 'CONTENT_LENGTH': '', 
'CONTENT_TYPE': 'text/plain', 'DJANGO_SETTINGS_MODULE': 'demo_settings', 
'FP_NO_HOST_CHECK': 'NO', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HOMEDRIVE': 'C:', 
'HOMEPATH': '\\Documents and Settings\\test', 'HTTP_ACCEPT': 'image/gif, 
image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, */*', 
'HTTP_ACCEPT_ENCODING': 'gzip, deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-us', 
'HTTP_CONNECTION': 'Keep-Alive', 'HTTP_COOKIE': 
'sessionid=5e82c3b10a83bfac4203509f183bb770', 'HTTP_HOST': 'localhost:8000', 
'HTTP_REFERER': 'http://localhost:8000/eventcal/', 'HTTP_USER_AGENT': 
'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)', 
'LOGONSERVER': '\\\\TESTXP', 'NUMBER_OF_PROCESSORS': '1', 'OS': 'Windows_NT', 
'PATH': 
'%SystemRoot%\\system32;%SystemRoot%;%SystemRoot%\\System32\\Wbem;C:\\Program 
Files\\Microsoft SQL Server\\80\\Tools\\BINN;;C:\\Python25;C:\\Program 
Files\\svn-win32-1.4.4\\bin;C:\\Program Files\\UnxUtils\\usr\\local\\wbin', 
'PATHEXT': '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH', 'PATH_INFO': 
'/eventcal/databrowse/eventcal/event/objects/4/', 'PROCESSOR_ARCHITECTURE': 
'x86', 'PROCESSOR_IDENTIFIER': 'x86 Family 6 Model 7 Stepping 3, GenuineIntel', 
'PROCESSOR_LEVEL': '6', 'PROCESSOR_REVISION': '0703', 'PROGRAMFILES': 
'C:\\Program Files', 'PROMPT': '$P$G', 'PYTHONPATH': '"C:\\Documents and 
Settings\\test\\django\\ridgemoor"', 'QUERY_STRING': '', 'REMOTE_ADDR': 
'127.0.0.1', 'REMOTE_HOST': '', 'REQUEST_METHOD': 'GET', 'RUN_MAIN': 'true', 
'SCRIPT_NAME': '', 'SERVER_NAME': 'testxp.DEV.JASSING.COM', 'SERVER_PORT': 
'8000', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SOFTWARE': 'WSGIServer/0.1 
Python/2.5.1', 'SESSIONNAME': 'Console', 'SYSTEMDRIVE': 'C:', 'SYSTEMROOT': 
'C:\\WINDOWS', 'TEMP': 'C:\\DOCUME~1\\test\\LOCALS~1\\Temp', 'TMP': 
'C:\\DOCUME~1\\test\\LOCALS~1\\Temp', 'USERDOMAIN': 'TESTXP', 'USERNAME': 
'test', 'USERPROFILE': 'C:\\Documents and Settings\\test', 'WINDIR': 
'C:\\WINDOWS', 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x0096F0B0>, 
'wsgi.file_wrapper': <class 'django.core.servers.basehttp.FileWrapper'>, 
'wsgi.input': <socket._fileobject object at 0x013C83F0>, 'wsgi.multiprocess': 
False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 
'http', 'wsgi.version': (1, 0)}>
self  <django.contrib.databrowse.plugins.objects.ObjectDetailPlugin object at 
0x00FD66B0>
url  u'4'

C:\Python25\Lib\site-packages\django\shortcuts\__init__.py in render_to_response
          # for convenience's sake.


                  from django.template import loader

                  from django.http import HttpResponse, Http404

                  from django.db.models.manager import Manager


                  def render_to_response(*args, **kwargs):

                 return HttpResponse(loader.render_to_string(*args, **kwargs))
          ...

                 load_and_render = render_to_response # For backwards 
compatibility.


                  def get_object_or_404(klass, *args, **kwargs):

                  if isinstance(klass, Manager):

                  manager = klass

                  klass = manager.model

        ▶ Local vars
Variable  Value
args  ('databrowse/object_detail.html', {'object': <EasyInstance for Event 
(4)>, 
'root_url': u'/eventcal/databrowse/'})
kwargs  {}

C:\Python25\Lib\site-packages\django\template\loader.py in render_to_string
          get_template, or it may be a tuple to use select_template to find one 
of

                  the templates in the list. Returns a string.

                  """

                  dictionary = dictionary or {}

                  if isinstance(template_name, (list, tuple)):

                  t = select_template(template_name)

                  else:

                 t = get_template(template_name)
          ...

                 if context_instance:

                  context_instance.update(dictionary)

                  else:

                  context_instance = Context(dictionary)

                  return t.render(context_instance)


        ▶ Local vars
Variable  Value
context_instance  None
dictionary  {'object': <EasyInstance for Event (4)>, 'root_url': 
u'/eventcal/databrowse/'}
template_name  u'databrowse/object_detail.html'

C:\Python25\Lib\site-packages\django\template\loader.py in get_template
          raise TemplateDoesNotExist, name


                  def get_template(template_name):

                  """

                  Returns a compiled Template object for the given template 
name,

                  handling template inheritance recursively.

                  """

                 source, origin = find_template_source(template_name)
          ...

                 template = get_template_from_string(source, origin, 
template_name)

                  return template


                  def get_template_from_string(source, origin=None, name=None):

                  """

                  Returns a compiled Template object for the given template 
code,

        ▶ Local vars
Variable  Value
template_name  u'databrowse/object_detail.html'

C:\Python25\Lib\site-packages\django\template\loader.py in find_template_source
          template_source_loaders.append(func)

                  for loader in template_source_loaders:

                  try:

                  source, display_name = loader(name, dirs)

                  return (source, make_origin(display_name, loader, name, dirs))

                  except TemplateDoesNotExist:

                  pass

                 raise TemplateDoesNotExist, name
          ...


                  def get_template(template_name):

                  """

                  Returns a compiled Template object for the given template 
name,

                  handling template inheritance recursively.

                  """

        ▶ Local vars
Variable  Value
dirs  None
loader  <function load_template_source at 0x01469670>
name  u'databrowse/object_detail.html'

Traceback (most recent call last):
File "C:\Python25\Lib\site-packages\django\core\handlers\base.py" in 
get_response
   77. response = callback(request, *callback_args, **callback_kwargs)
File "C:\Python25\Lib\site-packages\django\contrib\databrowse\sites.py" in root
   119. return self.model_page(request, *url.split('/', 2))
File "C:\Python25\Lib\site-packages\django\contrib\databrowse\sites.py" in 
model_page
   139. return databrowse_class(model, self).root(request, rest_of_url)
File "C:\Python25\Lib\site-packages\django\contrib\databrowse\sites.py" in root
   59. return plugin.model_view(request, self, rest_of_url)
File 
"C:\Python25\Lib\site-packages\django\contrib\databrowse\plugins\objects.py" in 
model_view
   14. return render_to_response('databrowse/object_detail.html', {'object': 
obj, 'root_url': model_databrowse.site.root_url})
File "C:\Python25\Lib\site-packages\django\shortcuts\__init__.py" in 
render_to_response
   10. return HttpResponse(loader.render_to_string(*args, **kwargs))
File "C:\Python25\Lib\site-packages\django\template\loader.py" in 
render_to_string
   101. t = get_template(template_name)
File "C:\Python25\Lib\site-packages\django\template\loader.py" in get_template
   79. source, origin = find_template_source(template_name)
File "C:\Python25\Lib\site-packages\django\template\loader.py" in 
find_template_source
   72. raise TemplateDoesNotExist, name

   TemplateDoesNotExist at /eventcal/databrowse/eventcal/event/objects/4/
   databrowse/object_detail.html

Request information
GET
No GET data

POST
No POST data

COOKIES
Variable  Value
sessionid  u'5e82c3b10a83bfac4203509f183bb770'

META
Variable  Value
ALLUSERSPROFILE  u'C:\\Documents and Settings\\All Users'
APPDATA  u'C:\\Documents and Settings\\test\\Application Data'
CLIENTNAME  u'Console'
COMMONPROGRAMFILES  u'C:\\Program Files\\Common Files'
COMPUTERNAME  u'TESTXP'
COMSPEC  u'C:\\WINDOWS\\system32\\cmd.exe'
CONTENT_LENGTH  u''
CONTENT_TYPE  u'text/plain'
DJANGO_SETTINGS_MODULE  u'demo_settings'
FP_NO_HOST_CHECK  u'NO'
GATEWAY_INTERFACE  u'CGI/1.1'
HOMEDRIVE  u'C:'
HOMEPATH  u'\\Documents and Settings\\test'
HTTP_ACCEPT  u'image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, 
application/x-shockwave-flash, */*'
HTTP_ACCEPT_ENCODING  u'gzip, deflate'
HTTP_ACCEPT_LANGUAGE  u'en-us'
HTTP_CONNECTION  u'Keep-Alive'
HTTP_COOKIE  u'sessionid=5e82c3b10a83bfac4203509f183bb770'
HTTP_HOST  u'localhost:8000'
HTTP_REFERER  u'http://localhost:8000/eventcal/'
HTTP_USER_AGENT  u'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET 
CLR 1.1.4322)'
LOGONSERVER  u'\\\\TESTXP'
NUMBER_OF_PROCESSORS  u'1'
OS  u'Windows_NT'
PATH 
u'%SystemRoot%\\system32;%SystemRoot%;%SystemRoot%\\System32\\Wbem;C:\\Program 
Files\\Microsoft SQL Server\\80\\Tools\\BINN;;C:\\Python25;C:\\Program 
Files\\svn-win32-1.4.4\\bin;C:\\Program Files\\UnxUtils\\usr\\local\\wbin'
PATHEXT  u'.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
PATH_INFO  u'/eventcal/databrowse/eventcal/event/objects/4/'
PROCESSOR_ARCHITECTURE  u'x86'
PROCESSOR_IDENTIFIER  u'x86 Family 6 Model 7 Stepping 3, GenuineIntel'
PROCESSOR_LEVEL  u'6'
PROCESSOR_REVISION  u'0703'
PROGRAMFILES  u'C:\\Program Files'
PROMPT  u'$P$G'
PYTHONPATH  u'"C:\\Documents and Settings\\test\\django\\ridgemoor"'
QUERY_STRING  u''
REMOTE_ADDR  u'127.0.0.1'
REMOTE_HOST  u''
REQUEST_METHOD  u'GET'
RUN_MAIN  u'true'
SCRIPT_NAME  u''
SERVER_NAME  u'testxp.DEV.JASSING.COM'
SERVER_PORT  u'8000'
SERVER_PROTOCOL  u'HTTP/1.1'
SERVER_SOFTWARE  u'WSGIServer/0.1 Python/2.5.1'
SESSIONNAME  u'Console'
SYSTEMDRIVE  u'C:'
SYSTEMROOT  u'C:\\WINDOWS'
TEMP  u'C:\\DOCUME~1\\test\\LOCALS~1\\Temp'
TMP  u'C:\\DOCUME~1\\test\\LOCALS~1\\Temp'
USERDOMAIN  u'TESTXP'
USERNAME  u'test'
USERPROFILE  u'C:\\Documents and Settings\\test'
WINDIR  u'C:\\WINDOWS'
wsgi.errors  <open file '<stderr>', mode 'w' at 0x0096F0B0>
wsgi.file_wrapper  <class 'django.core.servers.basehttp.FileWrapper'>
wsgi.input  <socket._fileobject object at 0x013C83F0>
wsgi.multiprocess  False
wsgi.multithread  True
wsgi.run_once  False
wsgi.url_scheme  u'http'
wsgi.version  (1, 0)

Settings
Using settings module demo_settings
Setting  Value
ABSOLUTE_URL_OVERRIDES  {}
ADMINS  (('Carl Karsten', '[EMAIL PROTECTED]'),)
ADMIN_FOR  ()
ADMIN_MEDIA_PREFIX  u'/media/'
ALLOWED_INCLUDE_ROOTS  ()
APPEND_SLASH  True
AUTHENTICATION_BACKENDS  ('django.contrib.auth.backends.ModelBackend',)
AUTH_PROFILE_MODULE  u'core.UserProfile'
BANNED_IPS  ()
BASE_DIR  u'C:\\Documents and Settings\\test\\django\\ridgemoor'
CACHE_BACKEND  u'simple://'
CACHE_MIDDLEWARE_KEY_PREFIX  u''
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  u'sqlite3'
DATABASE_HOST  u''
DATABASE_NAME  u'demodb'
DATABASE_OPTIONS  {}
DATABASE_PASSWORD  u'********************'
DATABASE_PORT  u''
DATABASE_USER  u''
DATETIME_FORMAT  u'N j, Y, P'
DATE_FORMAT  u'N j, Y'
DEBUG  True
DEFAULT_CHARSET  u'utf-8'
DEFAULT_CONTENT_TYPE  u'text/html'
DEFAULT_FROM_EMAIL  u'[EMAIL PROTECTED]'
DISALLOWED_USER_AGENTS  ()
EMAIL_HOST  u'localhost'
EMAIL_HOST_PASSWORD  u'********************'
EMAIL_HOST_USER  u''
EMAIL_PORT  25
EMAIL_SUBJECT_PREFIX  u'[Django] '
EMAIL_USE_TLS  False
FILE_CHARSET  u'utf-8'
FIXTURE_DIRS  ()
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', 
'django.contrib.databrowse', 'ridgemoor.core', 'ridgemoor.eventcal']
INTERNAL_IPS  ()
JING_PATH  u'/usr/bin/jing'
LANGUAGES  (('ar', 'Arabic'), ('bn', 'Bengali'), ('bg', 'Bulgarian'), ('ca', 
'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 
'German'), ('el', 'Greek'), ('en', 'English'), ('es', 'Spanish'), ('es_AR', 
'Argentinean Spanish'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), 
('gl', 'Galician'), ('hu', 'Hungarian'), ('he', 'Hebrew'), ('is', 'Icelandic'), 
('it', 'Italian'), ('ja', 'Japanese'), ('ko', 'Korean'), ('kn', 'Kannada'), 
('lv', 'Latvian'), ('mk', 'Macedonian'), ('nl', 'Dutch'), ('no', 'Norwegian'), 
('pl', 'Polish'), ('pt', 'Portugese'), ('pt-br', 'Brazilian'), ('ro', 
'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sr', 
'Serbian'), ('sv', 'Swedish'), ('ta', 'Tamil'), ('te', 'Telugu'), ('tr', 
'Turkish'), ('uk', 'Ukrainian'), ('zh-cn', 'Simplified Chinese'), ('zh-tw', 
'Traditional Chinese'))
LANGUAGES_BIDI  ('he', 'ar')
LANGUAGE_CODE  u'en-us'
LOGIN_REDIRECT_URL  u'/core/welcome.html'
LOGIN_URL  u'/accounts/login/'
LOGOUT_URL  u'/accounts/logout/'
MANAGERS  (('Carl Karsten', '[EMAIL PROTECTED]'),)
MEDIA_ROOT  u'C:\\Documents and Settings\\test\\django\\ridgemoor/core/'
MEDIA_URL  u'/static/'
MIDDLEWARE_CLASSES  ('django.middleware.common.CommonMiddleware', 
'django.contrib.sessions.middleware.SessionMiddleware', 
'django.contrib.auth.middleware.AuthenticationMiddleware', 
'django.middleware.doc.XViewMiddleware', 
'core.middleware.bsp.BeautifulSoupPrettifyMiddleware')
MONTH_DAY_FORMAT  u'F j'
PREPEND_WWW  False
PROFANITIES_LIST  u'********************'
ROOT_URLCONF  u'ridgemoor.urls'
SECRET_KEY  u'********************'
SEND_BROKEN_LINK_EMAILS  False
SERVER_EMAIL  u'[EMAIL PROTECTED]'
SESSION_COOKIE_AGE  1209600
SESSION_COOKIE_DOMAIN  None
SESSION_COOKIE_NAME  u'sessionid'
SESSION_COOKIE_SECURE  False
SESSION_EXPIRE_AT_BROWSER_CLOSE  False
SESSION_SAVE_EVERY_REQUEST  False
SETTINGS_MODULE  u'demo_settings'
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  ('C:\\Documents and 
Settings\\test\\django\\ridgemoor/eventcal/templates/',)
TEMPLATE_LOADERS  ('django.template.loaders.filesystem.load_template_source', 
'django.template.loaders.app_directories.load_template_source')
TEMPLATE_STRING_IF_INVALID  u''
TEST_DATABASE_CHARSET  None
TEST_DATABASE_COLLATION  None
TEST_DATABASE_NAME  None
TEST_RUNNER  u'django.test.simple.run_tests'
TIME_FORMAT  u'P'
TIME_ZONE  u'America/Chicago'
TRANSACTIONS_MANAGED  False
URL_VALIDATOR_USER_AGENT  u'Django/0.97-pre (http://www.djangoproject.com)'
USE_ETAGS  False
USE_I18N  True
YEAR_MONTH_FORMAT  u'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.



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to