Re: Time Zone Problem when following on tutorial

2014-06-25 Thread miked
It respects the settings.py time zone not the system locale. This means your question needs to be addressed by someone smarter than me. Sorry Mike On 2014-06-25 16:42, mi...@dewhirst.com.au wrote: On 25/06/2014 7:44 AM, Jerry Wu wrote:> Thanks, Mike. I still have a question. In your

Re: Time Zone Problem when following on tutorial

2014-06-25 Thread miked
On 25/06/2014 7:44 AM, Jerry Wu wrote:> Thanks, Mike. I still have a question. In your code, which part should I change in order to set the time zone to Asia/Shanghai? My settings uses Australia/Melbourne and Postgres stores time correctly as UTC+10 (or UTC+11 in daylight saving time). But

Using Tag Filters in a generic view

2012-08-23 Thread miked
I have create a generic view and in that view I have specified context_object_name of errata_id_list in this case. This generic view is tied to a query set of a model and in the view I specify the list of keys I would like to display. Here is a snippit from the template: {% for record in

Displaying _str__() of a related object.

2007-02-04 Thread miked
My apologies if this is elementary. But I've scoured google, and haven't found the answer I'm looking for. I need to return a queryset, to be serialized for ajax. I have a Store object, which references a State object. State.objects.all() currently returns the state value as the ID field for

strange admin interface issues runserver vs. apache

2006-12-14 Thread miked
Hi All -- Sorry if this is a newbie faux pas. I am having an issue with viewing the adding admin interfaces I created for a number of my models. Everything appears fine when accessing the admin site using the development server, but when I try to view my changes running through Apache, none of