Re: Admin login view does not respect REDIRECT_LOGIN_URL

2023-10-17 Thread Maciek Olko
Hello, Please double check the setting name, it should be LOGIN_REDIRECT_URL https://docs.djangoproject.com/en/4.2/ref/settings/#login-redirect-url. Regards, Maciej wt., 17 paź 2023 o 05:35 Gagan Deep napisał(a): > Hello everyone, > > While working on my project, I found that the admin login v

Re: Feature Idea: Allow setting session cookie name dynamically

2022-06-07 Thread Maciek Olko
Ah, thank you for explaining. I missed the point and the existing setting, sorry. Cheers, Maciej wt., 7 cze 2022 o 11:26 Florian Apolloner napisał(a): > Hi Maciej, > > You can already customize the cookie name via a setting. What this request > is asking is customization based on the request ob

Re: Feature Idea: Allow setting session cookie name dynamically

2022-06-06 Thread Maciek Olko
Hi Dan and Carlton, In my current company I am impacted by conflicting session cookie name. We have several internal tools built on Django, available in the internal network under the same top-level domain. The scope of session cookies apparently was set on more than one service to a wildcard. Maj

Re: Admin change list header for languages with grammatical cases

2021-05-24 Thread Maciek Olko
t title only). >> >> I think there comes natural expectation that similar mechanism would work >> also in Django templates. That may be impossible because of dynamic nature >> of this feature and serialization needed for safety and portability in >> templates, although

Re: Admin change list header for languages with grammatical cases

2021-05-21 Thread Maciek Olko
'm not yet 100% sure. Regards, Maciej [1] https://docs.djangoproject.com/en/3.2/topics/i18n/translation/#contextual-markers sob., 22 maj 2021 o 01:35 Maciek Olko napisał(a): > Admin’s change list headers are “Select {model} to change”, “Select > {model} to view” or “Select {model}” (

Admin change list header for languages with grammatical cases

2021-05-21 Thread Maciek Olko
Admin’s change list headers are “Select {model} to change”, “Select {model} to view” or “Select {model}” (for pop-ups). We inject model’s verbose name in that strings. It renders correct strings for most of the languages, but not for those, which have grammatical cases [1] for nouns. Such languages

Re: ngettext_lazy and ngettext

2019-12-05 Thread Maciek Olko
Hi, I am wondering if Django shouldn't use Unicode Plural Rules as standard and promote it for third-party apps. Even if sometimes number of forms are not applicable to certain cases, there may be cases when all of forms will be needed. Especially if implementing having different plural rules for

Re: ngettext_lazy and ngettext

2019-11-26 Thread Maciek Olko
f characters. The translation is just > using the Hebrew word for characters ("תווים"). Even if this number was 2, > it would have used the same word, but there is a singular word for 1. > > אורי > u...@speedy.net > > > On Tue, Nov 26, 2019 at 1:29 PM Maciek Olko w

Re: ngettext_lazy and ngettext

2019-11-26 Thread Maciek Olko
It looks like Transifex uses [1] Unicode Language Plural Rules [2]. If they are incorrect for Hebrew, maybe they should be fixed on Unicode side? Regards, Maciej [1] https://community.transifex.com/t/where-does-the-5-come-from-in-the-json-export-of-pluralized-strings/1389/2?u=m-aciek [2] http://w

Re: Extend FAQ with "How do I get Django and my JS framework to work together?"

2019-03-27 Thread Maciek Olko
Thank you all for all your responses! It's been a long time (sorry!), but: * I've added a Django ticket considering topic discussed here. [1] (* I updated a bit AJAX Django wiki page. [2]) Aymeric, in terms of copyright ownership, would you agree on rephrasing fragments of your articles to put it

Extend FAQ with "How do I get Django and my JS framework to work together?"

2019-02-04 Thread Maciek Olko
I didn't find this topic being discussed before. It seems to me to be good idea to place "How do I get Django and my JS framework to work together?" or similar question and answer to it in FAQ in Django's docs. Having very big popularity of JS frameworks now it is indeed very common question bein

Re: Add support for filter arguments in queryset.exists() and queryset.count()

2019-01-18 Thread Maciek Olko
Dear Sjoerd, dear all, My thoughts: * on one hand it feels natural to simplify calls and keep things simple, from this perspective +1; * on the other I can imagine new Django user that gets confused by inconsistency in code snippets or StackOverflow: you can now filter not only using filter() or g

Re: What do you think about unify templates feature?

2019-01-17 Thread Maciek Olko
Did you try to measure the difference in time of rendering standard and your way? Regards, Maciej czw., 17.01.2019, 10:02 użytkownik J. Pablo Martín Cobos napisał: > Hi, > > From one year ago, I am using an own command for Django templates that > unify them. With an example it is easy to see. I

[Feature request] Allow grammatical cases for verbose_names

2019-01-07 Thread Maciek Olko
Django calls itself a framework for perfectionists, whereas isn’t perfect for locale Django admin in languages with grammatical cases. Please find a description of an idea of one step towards perfection below. PEP 3101 introduced compound field names

Re: Security Advisory: BREACH and Django

2013-08-06 Thread maciek
Am I correct that it is still safe to have compression enabled for static files? Assuming you're not sending secrets inside CSS or JS files? http://wiki.nginx.org/HttpGzipModule says that the gzip on directive can be set in location. On Tuesday, 6 August 2013 17:58:42 UTC+1, Donald Stufft wro