cache_control() "max_age" overrides cache_page() "timeout"

2019-09-12 Thread Danny Flack
It is currently impossible to specify a different client-side cache value than a server-side cache value when using both decorators *cache_control* and *cache_page* on a view. For example: @cache_control(max_age=60) > @cache_page(timeout=3600) > def my_view(): > return HttpResponse() This w

Re: GitHub migration planning

2012-04-23 Thread Danny Adair
t have >> further discussion on django-devs - since it already needed a BDFL >> decision, there was no point making the pretence of discussion in a >> wider forum. [...] This doesn't seem odd to me. Makes perfect sense imho. Cheers, Danny -- You received this message beca

Re: auth.User refactor: reboot

2012-03-17 Thread Danny Adair
sten to post_save() on both of them to synchronize first_name/last_name/email. Would be awesome if such a use case was covered. Cheers, Danny -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email t

Re: authentication by email

2012-03-15 Thread Danny Adair
On Thu, Mar 15, 2012 at 22:53, Danny Adair wrote: >[...] > I'd like to see a later, "proper" auth.user that can undo that chaos. I originally thought you intended a setting which let's the user switch from the existing auth to an email auth with corresponding User mod

Re: authentication by email

2012-03-15 Thread Danny Adair
ng I'm going to do is to bring in what I think the User should look like i.e. use the "auth" to define what really is a "profile". And so will lots of projects. "The User model needs a username for this app to work". "The User model needs a timezone for th

Re: authentication by email

2012-03-09 Thread Danny Adair
red" of username that's the problem if you don't want a username at all when authenticating against email. It would have to be not required and check required fields in clean() where the backend could be asked what's really required. And there's Mr. Schema Migration aga

Re: authentication by email

2012-03-09 Thread Danny Adair
it's that second part that's the problem. That's where I believe a set of settings and conditions is a kneejerk workaround. Cheers, Danny -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send

Re: Possible bug with admin inlines

2012-03-05 Thread Danny Adair
On Tue, Mar 6, 2012 at 12:21, Martin Ostrovsky wrote: > Danny reading your reply gave me an idea to try and it worked. > > I switched the order of the inlines. So I put C first, then B. This way C > validates properly, then B is deleted and the cascaded deletion deletes C > and e

Re: Possible bug with admin inlines

2012-03-05 Thread Danny Adair
x27;s a cascaded delete invoked by the FK object's delete(). I always wondered why children don't get deleted first (which is how the database _has_ to do it anyway). My workaround is to delete in the correct order myself but I wish I didn't have to. Cheers, Danny -- You received this

Re: auto_now=True fields aren't updated on QuerySet.update()

2012-02-21 Thread Danny Adair
s feature, we'd have to bless a timezone implementation. pytz is pretty much the standard, and it's highly recommended, but it's possible to use another implementation of tzinfo classes if you desire." which makes sense to me. Cheers, Danny -- You received this message because

Re: auto_now=True fields aren't updated on QuerySet.update()

2012-02-20 Thread Danny Adair
ake it the "current" timezone. If you don't do that, the "default" timezone (TIME_ZONE setting) will be the current timezone. Whatever a user enters in their "current" timezone is converted to UTC for storage - UTC is the only sane "common denominator&qu

Re: auto_now=True fields aren't updated on QuerySet.update()

2012-02-20 Thread Danny Adair
It would be very weird for me to add a model instance and be told that I did that "tomorrow". Cheers, Danny > > -- > You received this message because you are subscribed to the Google Groups > "Django developers" group. > To post to this group, send email to d

Re: auto_now=True fields aren't updated on QuerySet.update()

2012-02-20 Thread Danny Adair
s themselves, not the mechanism handling them. If USE_TZ is True by default, users without timezone experience should be advised that "today" can also be a matter of location. Cheers, Danny -- You received this message because you are subscribed to the Google Groups "Django developers

Re: auto_now=True fields aren't updated on QuerySet.update()

2012-02-20 Thread Danny Adair
in Sydney saving a model instance, the date will be 21 Feb. No timezone in it. What else would you want to express with "auto_now" - if you have two users in different timezones, whose date is the "authoritative" one? Cheers, Danny -- You received this message because

Re: "Current" timezone in admin

2012-01-28 Thread Danny Adair
hindsight... That makes sense, thank you. I was personally dreaming of a pytz-based optional app where each relevant component could be replaced. Maybe a thirdparty app will provide this and mature until it gets added. Cheers, Danny -- You received this message because you are subscribed to the Go

Re: Feature request: read-only admin view

2012-01-28 Thread Danny Adair
t isn't (or isn't "supposed to be"). I believe the advent of "ModelAdmin.readonly_fields" is a confirmation of this need. "R" and "U" are currently mixed together - there are reasons for why this is the case but I don't see the historic expl

"Current" timezone in admin

2012-01-27 Thread Danny W. Adair
a default None that falls back to settings.TIME_ZONE (and probably another hook to override the default choices). Cheers, Danny -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-develope

Re: ANNOUNCE: Django 1.0 released

2008-09-04 Thread Danny
Great achievement, congratulations from Belgium! We already celebrated on our own release trip. Check out the original Django museum and his place of birth: http://www.think-wize.com/nl/django-10-celebration On Sep 4, 2:07 am, "James Bennett" <[EMAIL PROTECTED]> wrote: > The Django team is plea