Re: Question about support dates

2023-10-25 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
As the maintainer of several Django-related packages and a contributor to many more, I see the policy as fair. Most maintainers have little capacity, and anything to reduce that burden is welcome. Third-party packages typically test with a matrix of Python versions against Django versions. Lett

Re: Testing Unmanaged Models - Using the SchemaEditor to create db tables

2024-02-09 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Hi Emmanuel Most activity from this mailing list has moved to Django Internals category on the forum: https://forum.djangoproject.com/c/internals/5 . Better to post there in future, or you could even duplicate this post. I think your approach is worth sharing in a blog post, or even a package,

Re: New feature request - Run only a random subset of tests.

2024-02-12 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
I’d be against this. I think this approach would be counterproductive in most cases due to the high probability of a false positive. Including it as a core feature is not necessary when it can be added through a third party package. On Mon, Feb 12, 2024, at 2:22 PM, אורי wrote: > Hi, > > Also,

Re: Proposal for SyncChatRoom Integration in Django

2024-02-13 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Hi David SyncChatRoom sounds more like something that Django would help users build, rather than include in the framework. If it’s somewhat reusable between projects, it would be best be published as a third-party package. Thanks, Adam On Tue, Feb 13, 2024, at 8:57 PM, David Ansa wrote: > Hi

Re: Use of TIME_INPUT_FORMATS in TimeField

2024-03-05 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
USE_I18N does not disable localization, but internationalization. USE_L10N was the setting to enable/disable localization, but it was deprecated in Django 4.0: https://docs.djangoproject.com/en/4.0/releases/4.0/#localization . It was removed completely in Django 5.0, in this commit: https://git

Re: Should Django use Ada?

2024-04-02 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
I agree with Jörg. We need evidence of problems before we decide to act, and that those problems aren’t being addressed in Python. Forcing a new dependency on all users is not something we’d do lightly. On the contradictory standards, see the cURL maintainer’s post: https://daniel.haxx.se/blog/

Re: Proposal to upgrade django.core.mail to Python's modern email API

2024-06-25 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
After my comment in the steering council vote and in-person conversation with Jake, I believe the SMTP backend will not be implemented for DEP 14 : https://forum.djangoproject.com/t/steering-council-vote-on-background-tasks-dep-14/31131/20 On Tue, 25 Jun 2024, at 10:27, Arthur Pemberton wrote: >

Re: Proposal to upgrade django.core.mail to Python's modern email API

2024-07-21 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
I wish this discussion was on the forum so I could mark Pankaj’s response as spam 😅 On Sun, 21 Jul 2024, at 08:26, Othniel Davidson wrote: > Thank you for the update > > On Sat, Jul 20, 2024 at 15:26 Pankaj Kumar wrote: >> Hi Sir, >>I hope this message finds you well. >> I am writing t

Re: Django 5.1 - LoginRequiredMiddleware

2024-08-06 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Did you add the middleware to the MIDDLEWARE setting? On Tue, 6 Aug 2024, at 17:19, אורי wrote: > Hi, > > I read about LoginRequiredMiddleware in Django 5.1 release notes, where it's > written "The new LoginRequiredMiddleware redirects all unauthenticated > requests to a login page." > > I wan

Re: Django 5.1 - LoginRequiredMiddleware

2024-08-07 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
I’ve opened a PR for a small docs tweak that may help clarify the release note: https://github.com/django/django/pull/18455 . On Wed, 7 Aug 2024, at 01:29, אורי wrote: > > אורי > u...@speedy.net > > > On Wed, Aug 7, 2024 at 3:17 AM James Bennett wrote: >> On Tue, Aug 6, 2024 at 4:37 PM אורי

Re: Django Firebird driver update for Django 5.0

2024-08-26 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Hi Mariuz This mailing list isn't really a venue for announcing package updates. The forum is a lot more active these days, and the “Show & Tell” section is for announcing projects and updates: https://forum.djangoproject.com/c/projects/11 . Try it there! I also think you could improve the ann

Re: Deprecating django.utils.functional.cached_property() ?

2021-02-04 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
See the ticket. ‪On Thu, 4 Feb 2021 at 11:03, ‫אורי‬‎ wrote:‬ > Is there any difference in the implementation between the two > *cached_property*? > אורי > u...@speedy.net > > > On Thu, Feb 4, 2021 at 12:57 PM Carlton Gibson > wrote: > >> functools.cached_property is available from Python 3.8.

Re: @cached_property in admindocs

2021-02-04 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Yes seems reasonable. But why end there, can we not mention every descriptor/attribute? On Thu, 4 Feb 2021 at 14:06, Carlton Gibson wrote: > Hey Nat, I’d agree, probably yes. > > On Wed, 3 Feb 2021 at 15:04, Nat Dunn wrote: > >> From the documentation >>

Re: Documenting URL params filter behavior with ModelAdmin.lookup_allowed()

2021-02-05 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Yes this sounds like it's worth documenting. Perhaps there could even be a hint in the UI. In my experience admin "power users" end up discovering this feature by accident. On Fri, 5 Feb 2021 at 19:24, Silvio wrote: > Hi all, > > I recently removed a filter from an admin change list view, but re

Re: Races in sessions

2021-02-07 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Stephen - you're right that a constraint is the best way to enforce consistency in the DB. That doesn't fit every use case for sessions though - people use Django's built-ins with many different kinds of data stores that don't support locking or constraint semantics, such as remote API's. Matt - I

Re: Add a stable and documented setting to add files to the runserver watcher

2021-02-08 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Hi Diptesh The autoreload_started signal looks like the right approach. I see it's not documented but Django uses it internally for watching template and translation changes. I think it would be a good idea to document it. I don't think using the signal hacky, and it's not really a problem that it

Re: runserver hangs forever, without log of error in console, in two cases

2021-02-09 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Carlton - I'm not sure the first issue is covered by the pending migrations check. His post mentions needing to modify the DB router class for the new app. As I understand it, Michael wants a new check that the DB router allows migration of every app on at least one database. I'm not sure *that* ch

Re: Races in sessions

2021-02-14 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
e *downstream. That seems totally impractical. I > do think there are some *very *subtle bugs that would be resolved by > adopting something like this. But it may not be worth the trouble. > > > On Sunday, February 7, 2021 at 11:13:51 AM UTC-8 Adam Johnson wrote: > >> Stephen

Re: Feature request: wigets attribute for ModelFormMixin class

2021-02-17 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
I'll also chime in to say I'd be against expanding these shortcut parameters. They muddy the purpose of the View class for a small saving in LoC, and go against "TOOWTDI". On Wed, 17 Feb 2021 at 15:07, Tim Graham wrote: > This has been proposed before (closed as wontfix): > https://code.djangopr

Re: Feature request: Extend Storage.save() to directly save strings/bytes

2021-02-18 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Hi If you're mocking away the storage class to speed up your tests, instead try this in-memory storage class which implements the complete API: https://github.com/waveaccounting/dj-inmemorystorage . Then you don't need any mocks. As to adding the shortcut - if the only thing it will help with is

Re: New Django Developer

2021-02-21 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Hi! Welcome to the community Jeevan. This isn't really the place to cover learning Django. The place for that would be the django-users mailing list or the "Using Django" section of the forum: https://forum.djangoproject.com/ Thanks, Adam On Sun, 21 Feb 2021 at 16:42, Prateek Lenka wrote: >

Re: Add last active column in the Issue tracker table

2021-02-23 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
I believe this is already possible by activating the "Modified" column: https://imgur.com/E4NFEcM On Tue, 23 Feb 2021 at 07:50, Kumar Shivendu wrote: > Hello everyone, > I am a new contributor to Django and I was facing difficulty in finding > active issues and that gave me the idea of adding a

Re: The blacklist / master issue

2021-02-23 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Yes, let's do it. I did it to my open source projects a couple weeks ago and everything has been smooth since. We'll need some find/replace for links in the main repo, on djangoproject.com, and I imagine some other places. On Tue, 23 Feb 2021 at 22:15, Kenneth wrote: > I agree. We should go ahea

Re: Fingerprint software

2021-02-23 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Hi! I think you've found the wrong mailing list for this post. This mailing list is for discussing the development of Django itself, not for support using Django. This means the discussions of bugs and features in Django itself, rather than in your code using it. People on this list are unlikely t

Re: New to the Community

2021-02-23 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Welcome! There are many different ways to contribute to Django - the forum, blogging, translating, documenting, writing code, and more. As Harouna pointsout, our Contributing Guide can help you get started with many of these: https://docs.djangoproject.com/en/stable/internals/contributing/ If you

Re: New to the Django Community

2021-02-25 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Welcome! There are many different ways to contribute to Django - the forum, blogging, translating, documenting, writing code, and more. Our Contributing Guide can help you get started with many of these: https://docs.djangoproject.com/en/stable/internals/contributing/ If you’re looking to work wi

Re: Contributing to Django Documentation

2021-02-26 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Hi Cammil For small changes it's fine to just open a PR. For larger changes I often open a ticket with the suggested change, and then maybe a PR to go along to show what it would look like. Do check out the Contributing Guide: https://docs.djangoproject.com/en/stable/internals/contributing/ And t

Re: Need Help

2021-03-01 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Click the "GitHub Login" button at the top of the ticket tracker pages to create an account [image: Screenshot 2021-03-01 at 19.16.51.png] Do read the "first patch" tutorial: https://docs.djangoproject.com/en/dev/intro/contributing/ On Mon, 1 Mar 2021 at 18:54, Mhd Ali wrote: > Hello, this mu

Re: Invitation to participate in a survey about Django

2021-03-02 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
I receive an average of one academic survey a week. I think it's a terrible shame that computer science academia has descended to the same level as the worst spammers, scraping emails and sending them unsolicited "research" emails, without a mote of personal thought/engagement. On Tue, 2 Mar 2021

Re: Help with ticket #28426

2021-03-04 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
I also think this is feature creep and if it's a complicated change it's not worth it. On Thu, 4 Mar 2021 at 18:36, Tim Graham wrote: > I'd like to see what your code looks like so far. Personally, this is > sounding a lot more complicated than I imagined when I accepted the ticket. > I doubt th

'npm init django' works, maybe let's stop that?

2021-03-07 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
It has been brought to my attention[1] that running 'npm init django ' works. This is due to the existence of a package called create-django on npm ( https://www.npmjs.com/package/create-django ). This package is 17 days old at time of writing. It starts a Python virtualenv, installs Django, and i

Re: 'npm init django' works, maybe let's stop that?

2021-03-07 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
I thought of this, but I also wanted to have the discussion out in the open before the decision that it’s a use of the trademark we want to stop. I guess we don’t have any other place for such a discussion? On Mon, 8 Mar 2021 at 00:05, James Bennett wrote: > Any time this happens, just notify th

Re: Difference between AdminSite.admin_view and staff_member_required?

2021-03-09 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
admin_view does extra stuff like calling the admin site's get_permission method and using the admin login page rather than the default auth one: https://github.com/django/django/blob/98d3fd61026457a435ef5b7afce6b6e64e9f241d/django/contrib/admin/sites.py#L198 It should indeed be used only for admin

Re: 'npm init django' works, maybe let's stop that?

2021-03-09 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
I re-submitted my proposal through the "contact the foundation" form ( https://www.djangoproject.com/contact/foundation/ ) since that is the only way I know of contacting the board. On Mon, 8 Mar 2021 at 08:09, Florian Apolloner wrote: > Mhm, I expected such an answer when I hit send :) I maybe

Re: request to reopen ticket #24522: --random test option

2021-03-10 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
This would be something I'd really like to see. Also it would be nice to make it the default. I suggest we add the flag as "--random" taking an integer that is the seed, or 0 to disable. Do check out my project pytest-randomly for a battle-tested project randomly shuffling tests. One thing pytes

Re: Contribution in GSOC Django projects

2021-03-13 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Hi Khushi The wiki page has much information, including many potential projects: https://code.djangoproject.com/wiki/SummerOfCode2021 Thanks, Adam On Sat, 13 Mar 2021 at 09:12, Khushi Kaushal wrote: > Hello! > I will be participating in Google Summer of code. I wanted to ask about > the proje

Re: Working in Django project through GSOC

2021-03-15 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Hi Adarsh, Did you see the Wiki page on GSoC? https://code.djangoproject.com/wiki/SummerOfCode2021 Let us know if you have any specific questions after reading that, and the below links I send to everyone who asks about contributing! Thanks, Adam --- There are many different ways to contribut

Re: GSOC participation-What next?

2021-03-15 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Hi Anath, Did you see the Wiki page on GSoC? https://code.djangoproject.com/wiki/SummerOfCode2021 Let us know if you have any specific questions after reading that, and the below links I send to everyone who asks about contributing! Thanks, Adam --- There are many different ways to contribute

Re: Contributing for GSOC

2021-03-15 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Hi Ananth I responded in the other thread you started: https://groups.google.com/g/django-developers/c/EEij1pzCVD8/m/FkWfc9iHAQAJ As far as GSoC goes we have limited slots and successful candidates have often made some contributions to Django or a similar project before, even if small. If you hav

Re: Participating in GSoC to get exposure to the developer’s world

2021-03-15 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Welcome Vikky, Have you had a look at the GSoC wiki page? https://code.djangoproject.com/wiki/SummerOfCode2021 . Do you have any ideas what you'd like to work on? I'll also paste below the normal text for anyone seeking to contribute. Thanks, Adam -- There are many different ways to contribut

Re: Difference between AdminSite.admin_view and staff_member_required?

2021-03-15 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
+1 for deprecating. > Yes, it can be reduced to a `user_passes_test` call, but that's more > verbose for a limited gain (given that this convenience method already > exists, is tested, etc). > I don't see this as an argument not to deprecate staff_member_required, since the verbosity of user_pas

Re: Another approach to ticket373:Add support for multiple-column primary keys

2021-03-15 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Hi Arisophy I am interested in seeing composite PK's land in Django - I recently made a composite PK table for a client with a hack to make it work on Django. I'm sure others are interested too - I just guess at this point there is not so much momentum on the topic since it's so long running with

Re: request to reopen ticket #24522: --random test option

2021-03-16 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
> > because I think the number of tests inside a PR is small enough that you > probably do not see isolation failures, but you really want to see progress > in a PR without random failures due to isolation. > I think it's the opposite - most isolation problems are best detected at the time they're

Re: Fail test runs on unraisable exceptions?

2021-03-16 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
;t picked up by the main thread: https://code.djangoproject.com/ticket/32558 On Sat, 31 Oct 2020 at 08:22, Carlton Gibson wrote: > > > On 30 Oct 2020, at 17:29, Adam Johnson wrote: > > Focussing only on the asyncio case may be counter productive. They are > warnings by defaul

Re: Proposal to add attribute 'step' to FloatField and DecimalField

2021-03-17 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
I agree that it makes sense to add the argument to FloatField so we can add the server-side validation logic. I would also like to see it on IntegerField for consistency, and since IntegerField also maps to a NumberInput. I'd also be against the widget_attributes proposal - there are already too m

Re: Proposal to add attribute 'step' to FloatField and DecimalField

2021-03-22 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Use the modulo operator In [1]: 4.5 % 1.5 Out[1]: 0.0 https://en.wikipedia.org/wiki/Modulo_operation https://docs.python.org/3/reference/expressions.html?highlight=modulo#binary-arithmetic-operations On Sun, 21 Mar 2021 at 23:47, Jacob Rief wrote: > Say, you have a value and step, both are flo

Re: Stop QuerySet repr from executing queries

2021-03-23 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Would James' suggestion of reusing the result cache in __repr__ have solved your issue? I would like to see that first. I'm not against the DEBUG-only fetching but there hasn't been any suggestion what to show instead that could be of use. One can also mitigate against bad queries particularly we

Re: Moving rest_framework.status into core?

2021-03-23 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Python 3.5 added http.HTTPStatus: https://docs.python.org/3.9/library/http.html#http.HTTPStatus , so I don't see a need for such constants in Django, unless they add something extra. Perhaps you could deprecate from DRF. On Tue, 23 Mar 2021 at 15:18, Carlton Gibson wrote: > Hiya. > > Maybe my se

Re: testcases

2021-03-23 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Hi! I think you've found the wrong mailing list for this post. This mailing list is for discussing the development of Django itself, not for support using Django. This means the discussions of bugs and features in Django itself, rather than in your code using it. People on this list are unlikely t

Re: Rethink (?) how we handle security headers.

2021-03-26 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
f.global_settings import SECURITY_HEADERS >> SECURITY_HEADERS['REFERRER_POLICY'] = '...' >> >> If users redefine the entire dictionary, then adding new SECURITY_HEADERS >> options in future Django versions will require something like >> "get_secur

Re: Update - MSSQL support for Django

2021-03-26 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Great work Warren and co! I see you already have a number of stars on GitHub. A promotional blog post could help get the word out as well. If you do write one, submit your blog's Django-specific feed to "Community blog posts" on https://www.djangoproject.com/community/ and it will get picked up by

Re: GSOC intro and guidance

2021-03-26 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Welcome Raj, Have you had a look at the GSoC wiki page? https://code.djangoproject.com/wiki/SummerOfCode2021 . Do you have any ideas what you'd like to work on? I'll also paste below my normal reply for anyone seeking to contribute. Thanks, Adam -- There are many different ways to contribute

Re: Steps To Contribute ?

2021-03-26 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Welcome! There are many different ways to contribute to Django - the forum, blogging, translating, documenting, writing code, and more. Our Contributing Guide can help you get started with many of these: https://docs.djangoproject.com/en/stable/internals/contributing/ If you’re looking to work wi

Re: Match i18n.set_language view next param / Referer header against ALLOWED_HOSTS

2021-04-04 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
> > For exemple, if a user changes language at subdomain.exemple.com/whatever, > by sending a POST request to exemple.com/i18n/setlang, it will be > redirected to exemple.com/. Why would you not use subdomain.example.com/i18n/setlang to change the user's language? That seems like it would work.

Re: Test fails silently when using --tag

2021-04-05 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Please don't report bugs here but to the ticket tracker. If you're not sure there's a bug, django-users, the forum, or IRC are the recommended venues. That said, I cannot reproduce your problem. Using django's main branch, I started a new project with a tests.py file using your exact content and i

Re: Django Channel Multiple Auth

2021-04-05 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Hi! I think you've found the wrong mailing list for this post. This mailing list is for discussing the development of Django itself, not for support using Django. This means the discussions of bugs and features in Django itself, rather than in your code using it. People on this list are unlikely t

Re: Test fails silently when using --tag

2021-04-05 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Great, thanks Tim. On Mon, 5 Apr 2021 at 13:28, Tim Graham wrote: > This was fixed a week ago (will be in Django 4.0). > https://code.djangoproject.com/ticket/29127 > > On Monday, April 5, 2021 at 5:18:45 AM UTC-4 Adam Johnson wrote: > >> Please don't report bugs here

Re: remove SECURE_BROWSER_XSS_FILTER setting?

2021-04-05 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
I agree. The time has come to remove it as it offers little protection, and it's easy to add back if you have the requirement. Two more data points: securityheaders.com no longer gives you points for setting the header, and caniuse.com data ( https://caniuse.com/mdn-http_headers_x-xss-protection )

Re: Can't translate strings properly to Hebrew and Arabic (#31937)

2021-04-06 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Hi Uri It depends on someone making the change. It looks like Ryan Cheley assigned it to themselves but hasn't made a PR. Perhaps you could? Thanks, Adam ‪On Tue, 6 Apr 2021 at 11:17, ‫אורי‬‎ wrote:‬ > Hi, > > https://code.djangoproject.com/ticket/31937 > > Any chance this will be fixed befor

Re: Adding ability to choose AutoField type (signed vs unsigned)

2021-04-06 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
I also don't think this is necessary any more and can be closed. > An explicit `id = PositiveBigIntegerField(...)` workaround would be fine > to be honest, for those that need it. I also would like to meet the django app that *does* need it (for non-silly reasons like deciding to start ID's nea

Re: django-amp-tools project improvement

2021-04-08 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Hi Pratham, Sorry to be a bit of a downer here... The django-amp-tools project is not an official django project and has not been updated for a while (it doesn't support *any* currently supported Django versions). It's also not particularly popular - 65 stars - and in general I feel like AMP is i

Re: Adding ability to choose AutoField type (signed vs unsigned)

2021-04-08 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Okay fair enough, it wouldn't be much work to ship a PositiveBigAutoField class. On Wed, 7 Apr 2021 at 08:29, Florian Apolloner wrote: > On Tuesday, April 6, 2021 at 7:08:06 PM UTC+2 Adam Johnson wrote: > >> I also don't think this is necessary any more and can be closed.

Re: need a good idea

2021-04-10 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Hi Check out the wiki page: https://code.djangoproject.com/wiki/SummerOfCode2021 Adam On Fri, 9 Apr 2021 at 05:05, fake man wrote: > Hello there , > can u please tell me what is a good idea or proposal for GSOC 2021 > > thanks > > -- > You received this message because you are subscribed to th

Re: Issue with multiple database backends

2021-04-14 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Hi This seems like a genuine bug, Django should not assume that all backends have the same max table name length. Please file a ticket. You can workaround this right now by defining db_table on your model. You might need two model classes, sharing details via inheritance, for the different backen

Re: Internal Server Error after deploy into hosting (cPanel)

2021-04-19 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Hi! I think you've found the wrong mailing list for this post. This mailing list is for discussing the development of Django itself, not for support using Django. This means the discussions of bugs and features in Django itself, rather than in your code using it. People on this list are unlikely t

Re: Paid Contributions for specific feature in Django

2021-04-20 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Hi Taylor FYI Disney have already made a snowflake backend - they were asking about open sourcing it in this thread: https://groups.google.com/g/django-developers/c/po9dS-2h4lg/m/Qa8H2h_6AwAJ . You might want to get in touch with them. Otherwise, if you wanted this developed, it would probably be

Re: Loading CSV Data in Model

2021-04-29 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Hi! I think you've found the wrong mailing list for this post. This mailing list is for discussing the development of Django itself, not for support using Django. This means the discussions of bugs and features in Django itself, rather than in your code using it. People on this list are unlikely t

Re: APPEND_SLASH behavior

2021-04-29 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
I don't think Django should change here. The current APPEND_SLASH behaviour is conservative and expected. Django can't tell the difference between a catch-all view that "shouldn't really catch the URL", and any other view. Notably your suggestion would undo the work in django 3.2 to add a catch-al

Re: APPEND_SLASH behavior

2021-05-06 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
> > That said, I think doing this in process_response would be preferable over > doing it in process_request so the extra checks when the URL is valid (the > common case) are reduced. Resolving URLs can take a bit, especially when > the urlconf is long and as such I'd like to get that check out of

Re: APPEND_SLASH behavior

2021-05-07 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
> > To avoid the problems with the bad interaction with the request machinery, > another approach that came to mind would be to allow inserting / including > a function at any point in the URLconf. The function would return whether > the pattern should be skipped or claimed. That would have the adv

Re: Best status to start to contribute

2021-05-14 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Hi The search linked from the contributing docs is to: https://code.djangoproject.com/query?status=!closed&easy=1 If you uncheck the "assigned" flag you'll find those tickets that have not been claimed by anyone. That said, often tickets are claimed by people, by assigning them to themselves, bu

Re: Hi everyone, I am Akash and am very new to this community however not that new to django itself.

2021-05-18 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Hi! I think you've found the wrong mailing list for this post. This mailing list is for discussing the development of Django itself, not for support using Django. This means the discussions of bugs and features in Django itself, rather than in your code using it. People on this list are unlikely t

Re: Should there be a default lockfile location for SerializeMixin?

2021-05-21 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
> 1. Should we tweak the docs to show something like the above, that would > make the solution there easier to just drop in? > I don't think so. Locking is a last resort and ruins performance - if used across your whole test suite you will degrade to *worse than single process* speed. You should i

Re: making TemplateView.template_name point to a file NOT in the templates directory.

2021-05-21 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Hi! I think you've found the wrong mailing list for this post. This mailing list is for discussing the development of Django itself, not for support using Django. This means the discussions of bugs and features in Django itself, rather than in your code using it. People on this list are unlikely t

Re: Should there be a default lockfile location for SerializeMixin?

2021-05-23 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
f you're using it, > that's exactly what you're after right? My thought is that by default it > should fully serialize tests it's mixed into, and that by configuring a > different file (or "__file__", say), you can create sub-groups of tests > that must run serially (

Re: Transaction APIs do not consult the DB router to choose DB connection

2021-05-28 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Aditya - you didn't answer Simon's first question: "Can you think of places where this db_for_transaction hook would differ in any way from what db_for_write returns?" I think this is the crux of the issue. atomic does already call DB routers - in what case could you need to return a different resu

Re: Transaction APIs do not consult the DB router to choose DB connection

2021-05-31 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Having a separate method for transaction is good because it need >>>>not be mangled up with the other methods i.e db_for_read / db_for_write >>>> as >>>>they clearly indicate certain operational semantics which aren't tied >>>> to a

Re: How to do a counter in DB cache class?

2021-06-01 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Hi Mike! Probabilistic culling probably is the best we can do in the DB cache, aside from moving culling to a background task. I wrote an implementation of this probabilistic culling in the django-mysql cache backend (which is mysql only): https://django-mysql.readthedocs.io/en/latest/cache.html#

Re: Requesting new feature for Django Admin Panel

2021-06-04 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
The packages Django-import-export provides such functionality in a fairly robust manner. Try that. I don’t see a reason to merge too much functionality into the core Django admin, as it will become a maintenance burden. On Fri, 4 Jun 2021 at 16:51, Mohit Gupta wrote: > Hello, > > I'm Mohit Gupta

Re: Changing widget rendering templates

2021-06-05 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
I think a breaking change for the widget HTML is fine too, if it improves everyone’s apps. Perhaps documenting in the release notes how to undo it (eg copy this template file into your project, reconfigure the widget to use the template like so) will make it easier for folks with incompatible CSS t

Re: Checking logs of a Jenkins CI job

2021-06-06 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
The logs last a limited amount of time, I think it’s maybe 7 days. You’ll need to push again to trigger a new run after that. On Sun, 6 Jun 2021 at 12:57, Sanskar Jaiswal wrote: > Hello everyone > > I'm working on this PR >

Re: django projects in india

2021-06-06 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Hi This mailing list is not for commercial purposes. Thanks, Adam On Sun, 6 Jun 2021 at 08:31, Cyber Black wrote: > hey, i am tushar chauhan from india in dehradun so i hope everyone are > good i want to discuss for django scope in india i want to say i have > completed django framework and s

Re: IRC Archive

2021-06-07 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Hi I believe archiving stopped with the introduction of GDPR, which caused the IRC archive bot we were using to shut down. GDPR made it quite unclear if persisting chat logs (that users could assume to be ephemeral) would be allowed. There was a previous django-developers thread on this. Thanks,

Re: Adding a decorator to include a property in an object's serialization

2021-06-08 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Hi Diptesh Django's serialization framework is mostly used for saving model data for later loading into the DB - normally for setting up environments or tests. I don't think saving properties is useful in this case. If you're using serialization for API responses, look at Django REST Framework's s

Re: Discussion regarding #32628 and #32823

2021-06-08 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Sébastien - on your original post: you didn't provide any useful title or ticket links in your post. That may have stopped readers engaging on the list. No one knows ticket numbers, but some people will be interested when they see a post on "the admin autocomplete". Links would make it easy to catc

Re: Django website Down

2021-06-08 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Yes we use fastly and that's the reason it has been down. On Tue, 8 Jun 2021 at 14:38, Roger Gammans wrote: > It may have had something to do with this? I seem to remember fastly > did offer some OSS projects some CDN services. > > https://www.bbc.co.uk/news/technology-57399628 > > > On Tue, 202

Re: Discussion regarding #32628 and #32823

2021-06-08 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
> > I'd be happy to suggest longer versions (if technically possible to > implement). > At least the documentation for triaging tickets is here: https://github.com/django/django/blob/main/docs/internals/contributing/triaging-tickets.txt . I do not understand why the $.fn.djangoAdminSelect2 funct

Re: Python PEP for more convenient HTML generation

2021-06-11 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Hi Thomas As I understand there wouldn't be much required by Django to support this - just one function. So if it came to Python, I think we'd like to see a working snippet, maybe in a third party package, before merging support. In terms of the PEP, - there are already "too many" ways to templat

Re: #32749 PyMemcacheCache uses default_noreply=False although pymemcache recommends to set to True

2021-06-16 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
> > I've gone through the documentation of pymencache and if I'm not wrong its > nowhere written that it recommends default_noreply to be set to True > It's covered in the "best practices" section, which is a list of their recommendations: https://pymemcache.readthedocs.io/en/latest/getting_start

Re: Changing the models default __repr__

2021-06-18 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Model defines these defaults: def __repr__(self): return '<%s: %s>' % (self.__class__.__name__, self) def __str__(self): return '%s object (%s)' % (self.__class__.__name__, self.pk) The repr includes "self", which will call __str__, which includes self.pk. So the default repr

Re: Discussion regarding #32628 and #32823

2021-06-19 Thread &#x27;Adam Johnson' via Django developers (Contributions to Django itself)
> Would be happy to push a commit in this direction. > > Thanks again to you guys for taking the time to lead me through this! > > Sébastien > > Le mardi 8 juin 2021 à 17:39:22 UTC+2, Adam Johnson a écrit : > >> I'd be happy to suggest longer versions (if technic

Re: How to do a counter in DB cache class?

2021-06-19 Thread &#x27;Adam Johnson' via Django developers (Contributions to Django itself)
ging this functionality into > django itself? I hadn't seen anything related before now. > > On Tue, Jun 1, 2021 at 11:38 AM 'Adam Johnson' via Django developers > (Contributions to Django itself) > wrote: > >> Hi Mike! >> >> Probabilistic cu

Re: CTRL-BREAK still make sense on Windows for `runserver`?

2021-06-21 Thread &#x27;Adam Johnson' via Django developers (Contributions to Django itself)
Would it be bad to have Django respond to both shortcuts? On Mon, 21 Jun 2021 at 21:40, Matthew Pava wrote: > Ctrl + Break and Ctrl + C are treated slightly differently by Windows. > Ctrl + Break is always a signal, but an application can override the > functionality of Ctrl + C. > > > > Please

Re: TemplateCommand

2021-06-28 Thread &#x27;Adam Johnson' via Django developers (Contributions to Django itself)
Django has the TemplateCommand class to support its startproject and startapp. These two are fairly similar so the class exists to share code between them. As I understand, your GDAPS project aims to provide similar functionality, but with differences. In this case I can see that you'd have overla

Re: CAS in cache framework

2021-06-29 Thread &#x27;Adam Johnson' via Django developers (Contributions to Django itself)
pymemcache also supports a cas() method, so that's two backends that could have the other method. I think the main problem is as Russell highlighted - supporting other backends. It would be nice to see research into emulating cas(), at least on LocMemCache which is often used as a fake during test

Re: Lack of validation at the object level.

2021-06-30 Thread &#x27;Adam Johnson' via Django developers (Contributions to Django itself)
What validation do you need? Much can be done in the database with constraints, especially check constraints. On Wed, 30 Jun 2021 at 08:05, Михаил Итпрогер wrote: > Hello, I am currently developing a reusable application using the Django > framework. > > It just so happens that the instances of

Re: Lack of validation at the object level.

2021-06-30 Thread &#x27;Adam Johnson' via Django developers (Contributions to Django itself)
27;s what I mean: > > ср, 30 июн. 2021 г. в 16:45, 'Adam Johnson' via Django developers > (Contributions to Django itself) : > >> What validation do you need? Much can be done in the database with >> constraints, especially check constraints. >> >> On Wed

Re: #16406 - Allow separate access to matches from urlpatterns and extra_context args

2021-07-03 Thread &#x27;Adam Johnson' via Django developers (Contributions to Django itself)
Hi Alexandre This ticket does go quite deep into the URL resolution infrastructure. You could try reading more of its internals, but for a first ticket I'd say this one is quite advanced. If there's another ticket in an area of Django you are more comfortable with, perhaps that would be better. T

Re: Recognising Contributions

2021-07-05 Thread &#x27;Adam Johnson' via Django developers (Contributions to Django itself)
ted by` in the release notes. I'm not so >>> sure about adding the ticket number (in fact I think I saw Nick Pope point >>> to something today that says we don't ref tickets?). [1] >>> >>> - For the headline features add names to the blog post [2]. Could also

Re: #32907 Allow duplicate headers while sending email

2021-07-06 Thread &#x27;Adam Johnson' via Django developers (Contributions to Django itself)
Hi, If you just opened a ticket there's no need to come directly to the mailing list. Someone will respond to you on the ticket tracker first. Thanks, Adam On Tue, 6 Jul 2021 at 10:55, shrwnkr wrote: > Hi, > can we talk more about this, ticket ( > https://code.djangoproject.com/ticket/32907)

<    5   6   7   8   9   10   11   12   >