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: #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:

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

Re: Discussion regarding #32628 and #32823

2021-06-19 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
I've made a PR to remove the options parameter: https://github.com/django/django/pull/14542 On Wed, 9 Jun 2021 at 07:03, 'Sébastien Gélis' via Django developers (Contributions to Django itself) wrote: > > *The number of lines is not the most important factor. There is no > point in adding a new

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

2021-06-19 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
ity 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 culling probably is the best we can d

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

2021-06-21 Thread '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: 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

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

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,

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

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

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

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

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

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

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=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, but

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: Should there be a default lockfile location for SerializeMixin?

2021-05-23 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
> > I guess this is true in a technical sense, but is it true in a noticeable > sense? Yes, having lots of processes vying for a lock isn't great, but I'd > be surprised if it adds up to very much. Am I wrong about this? Running the tests serially in a single process doesn't have the setup cost

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

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

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

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

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)
I'm also -1 on changing anything in Django right now. I think we should indeed take the "default position" for complex features: write a third party library, get some traction. If many people find it useful, we can look at adding something to core. It sounds like you're already working on such 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):

Re: Django | Counting word frequency.

2021-07-06 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

Re: How to differ the web engage curl request in Django without affecting the performance of the API?

2021-07-08 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

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

2021-07-03 Thread '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.

Re: CAS in cache framework

2021-06-29 Thread '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

Re: Lack of validation at the object level.

2021-06-30 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
юн. 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, 30 Jun 2021 at 08:05, Михаил Итпрогер

Re: Lack of validation at the object level.

2021-06-30 Thread '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: TemplateCommand

2021-06-28 Thread '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

Re: Recognising Contributions

2021-07-05 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
I'm all for exposing names in more places. Linking through to PR's from the release notes would also be useful for "pulling back the curtain" and making Django's code a bit less magical. Plus it could help the workflow for current contributors. On Mon, 5 Jul 2021 at 16:07, Tom Forbes wrote: >

Re: #32907 Allow duplicate headers while sending email

2021-07-06 Thread '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)

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

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

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 -

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

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*

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

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

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

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

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 but to the ticket tracker.

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

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: 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

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

2021-03-26 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
That would be counter to how all current dict based settings work, so I think it would be too surprising. On Fri, 26 Mar 2021 at 05:35, chris.j...@gmail.com wrote: > I just came across this thread after seeing a related PR. Rather than a > "get_security_header()" function, couldn't Django make

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

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

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

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

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

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

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

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: 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

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

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

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

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

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

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

Re: Fail test runs on unraisable exceptions?

2021-03-16 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
> > Would we need to run “gc.collect” after each test to make it deterministic? > Not particularly. In CPython, most objects are deterministically deleted when they go out of scope. Only circular references are gathered by the garbage collector, and I think it's okay to leave them as-is - the

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

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

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: 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

'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

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

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

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

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

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

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

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

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

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

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

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

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. >> >> >>> An explicit

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): >

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: 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: Races in sessions

2021-02-14 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Indeed, locking is hard. I think it'd be better to warn more about how sessions do not have guarantees against parallel writes. And perhaps we could update the example to use the session as a cheap first check whether the user has commented, actually defending with a full query against the

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: makemessages management command should not touch POT-Creation-Date

2021-08-31 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
I'm in favour of the change. Leaving the file as-is when no actual data changed just makes sense to me. The original discussion didn't touch upon the --update flag, so maybe it didn't exist then, or the participants didn't know about it. Its existence really weakens the argument that “we

Re: Help: Getting error when trying run test “RuntimeError” Database access not allowed

2021-08-14 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

Re: How to decode data? (trick question)

2021-08-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

Re: Need help for django fix testing

2021-08-19 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
I'm responding to your other thread where you gave a little more information. Please be careful posting to the list in future ;) On Thu, 19 Aug 2021 at 07:17, No Offence wrote: > Hey there, I'm new in this contributing environment. I have fixed one > issue but now I don't know how to test it

Re: Need help in testing out the fix

2021-08-19 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Hi You can use 'pip install --editable' with the path to your copy of the django repo to test it in another virtualenv. Here's the option docs: https://pip.pypa.io/en/stable/cli/pip_install/#install-editable Here's a demo video: https://www.youtube.com/watch?v=gYYi7varbmE Thanks, Adam On

Re: Website Projects

2021-09-03 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

Re: Feature request : Load signals automatically

2021-09-14 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
I've replied on the forum. On Tue, 14 Sept 2021 at 13:21, Roxane Bellot wrote: > > > Hi guys ! > > First of all, i’m new here, so if this issue has already been discussed or > if here is not the place to talk about it (I also opened a forum post >

Re: Idea

2021-09-15 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
DRF remains an extension to Django. We don't want Django to depend on it. But you're free to set up a startproject template that includes the settings, and use that. https://docs.djangoproject.com/en/3.2/ref/django-admin/#cmdoption-startproject-template On Tue, 14 Sept 2021 at 08:44, abdul azeez

Re: Developer wanted

2021-09-06 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
This is the wrong mailing list for such requests. Try posting on the django forum or Twitter. On Sun, 5 Sept 2021 at 15:49, 'la...@larrylobert.com' via Django developers (Contributions to Django itself) wrote: > I would like to connect with an experienced Django developer to continue > with

  1   2   3   4   >