Thursday, August 18, 2011

models.py datetimefield mysql datetime problem

i could not recognize the problem when i add a datetimefield to my
model i can't get that model on admin page.
i use mysql. without datetimefield it works. but when comes to add
datetimefield to the model it stucks i get that error message. (ok. i
didn't create 500.html, but i will :))

Traceback (most recent call last):

File "/usr/lib/pymodules/python2.6/django/core/servers/basehttp.py",
line 279, in run
self.result = application(self.environ, self.start_response)

File "/usr/lib/pymodules/python2.6/django/core/servers/basehttp.py",
line 651, in __call__
return self.application(environ, start_response)

File "/usr/lib/pymodules/python2.6/django/core/handlers/wsgi.py",
line 241, in __call__
response = self.get_response(request)

File "/usr/lib/pymodules/python2.6/django/core/handlers/base.py",
line 134, in get_response
return self.handle_uncaught_exception(request, resolver, exc_info)

File "/usr/lib/pymodules/python2.6/django/core/handlers/base.py",
line 166, in handle_uncaught_exception
return callback(request, **param_dict)

File "/usr/lib/pymodules/python2.6/django/views/defaults.py", line
23, in server_error
t = loader.get_template(template_name) # You need to create a
500.html template.

File "/usr/lib/pymodules/python2.6/django/template/loader.py", line
81, in get_template
source, origin = find_template_source(template_name)

File "/usr/lib/pymodules/python2.6/django/template/loader.py", line
74, in find_template_source
raise TemplateDoesNotExist, name

TemplateDoesNotExist: 500.html

--
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 django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate