"Current" timezone in admin
Hi, With 1.4 timezone support I was wondering if/how django admin supports the current user's timezone. There's no corresponding HTTP header like "Accept-Language" so I guess the timezone must be set in the session (looked up from a profile or whatever). Is there a hook that allows the "current" timezone to be set for admin, so that it uses it for datetime display/submission? Maybe a middleware that expects a session variable configured/named in settings? With full timezone support I also think it may be worth adding timezone to the standard User model, with a default None that falls back to settings.TIME_ZONE Cheers, Danny -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
App namespace/packages?
Hi, There are "reusable" apps which provide functionality in a variety of contexts. However, some apps only make sense (because of dependencies) in the context of one or more other apps. For example, I have a relatively big piece of software consisting of (like a good boy) multiple apps, which work together. Some are "core apps", some are optional "plugin apps". The latter could be installed and used, but really only when the core apps are present. Nevertheless, they sit on that same top-level namespace together with all the other "really reusable" apps. I think a shop system is a good example, and looking at satchmo I saw apps called "satchmo_this" and "satchmo_that". I'd rather see such apps packaged up so it's clear where they belong to. Before posting a feature request on the issue tracker I thought I'd ask how other people deal with this situation? I'd love if all apps were in a directory "apps", and the various loaders allowed me to go another level. Cheers, Danny -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Flatten template?
Hi, I need to get the template source of a template "after inheritance", i.e. render just the loader tags "include", "extends" and "block" (incl. variable block.super), so that I end up with one independent template which is otherwise unrendered. Has anyone done this before or has pointers? I'm still undecided whether to work with Node objects (maybe borrowing some ideas from http://djangosnippets.org/snippets/769/ ) or just use regex on the source and manually "glue together". Any help greatly appreciated. Cheers, Danny -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Localized admin and date field formats
Hi Alexander, On Jun 15, 9:54 am, Alexander Jeliuc wrote: > Thank You, I found a patch for that. My version is already 1.2.1 > After pathching fields.py and widgets.py it start working fine It helps others if you mention where they can find such a patch. I assume it was this: http://code.djangoproject.com/ticket/13621 Cheers, Danny > > On Tue, Jun 15, 2010 at 12:49 AM, D3f0 wrote: > > Hi > > There's been a slighty change in 1.2, take a look at: > >http://docs.djangoproject.com/en/dev/ref/settings/#date-input-formats > > > Nahuel > > > On 13 jun, 09:00, Jeliuc Alexandr wrote: > > > Hello. > > > I'm using django1.2.1 with i18n and l10n enabled... > > > > standart django admin date format is mm-dd- > > > when it changes to Spain it becomes dd/mm/ > > > Not problem it is possible to choice date and save it... > > > But if I want to edit row it becomes like standart mm-dd-... > > > No problem... but if I edit row and want to save. I got error - wrong > > > date format... > > > > Question is: How can I change date field format in admin edit form > > > action? to be like it should be dd/mm/? > > > Is it bug? > > > -- > > You received this message because you are subscribed to the Google Groups > > "Django users" group. > > To post to this group, send email to django-us...@googlegroups.com. > > To unsubscribe from this group, send email to > > django-users+unsubscr...@googlegroups.com > > . > > For more options, visit this group at > >http://groups.google.com/group/django-users?hl=en. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.