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

2024-02-17 Thread Jason Johns
agreed about this is a unittest/pytest specific focus, not django. This is pretty straightforward to do with pytest, can have a custom flag and then randomize the test collection. With unittest, not sure. On Monday, February 12, 2024 at 11:36:57 AM UTC-5 Jörg Breitbart wrote: > I also think

Re: The problem of versioning a large project.

2023-04-01 Thread Jason Johns
>Now we have organized versioning, where our project is divided into separate GIT repositories which are created for each application. why? what's the reasoning for this? django already has apps, so why do you need to make multiple projects for single components? On Friday, March 31, 2023 at

Re: dynamically added INSTALLED_APPS

2023-02-21 Thread Jason Johns
I'd be a -1 on dynamic modification with installed apps. that's the developer's responsibility to add in, and should be implicit by design. The list of apps needs to come somewhere via configuration, and django defines that configuration to be done explicitly. I be;ieve some of the major

Re: Proposal for an "Age" PostgreSQL ORM function

2023-01-19 Thread Jason Johns
the AGE function takes in two timestamps and returns an interval. You can do this in python by subtracting two date/datetime objects and getting a timedelta. what would the difference be to kick this out to the db? On Tuesday, January 17, 2023 at 11:11:37 AM UTC-5 niccol...@gmail.com wrote: >

Re: Intention behind `adelete` being a queryset method, and not available on a model instance?

2022-10-22 Thread Jason Johns
> >> >> says “QuerySet now provides an asynchronous interface...”. >> >> On Fri, Oct 21, 2022 at 3:51 PM Jason Johns wrote: >> >>> gotcha, then perhaps a documentation tweak would be in order, on both >>> queryset and model pages? becau

Re: Intention behind `adelete` being a queryset method, and not available on a model instance?

2022-10-21 Thread Jason Johns
ethods, not async Model methods. Async model methods like adelete(), and > perhaps asave(), would be the next logical step. > > On Fri, Oct 21, 2022 at 1:47 PM Jason Johns wrote: > >> I came across a reddit post yesterday >> <https://www.reddit.com/r/django/comments/y

Intention behind `adelete` being a queryset method, and not available on a model instance?

2022-10-21 Thread Jason Johns
I came across a reddit post yesterday about `adelete` raising an attribute error r = await mymodel.objects.aget(some_name=myname) await r.adelete() would throw an `AttributeError`, whereas r = await

Re: Configuration of "level" in LOGGING

2022-04-04 Thread Jason Johns
How would this work with secret stores like hashicorp vault, aws secrets manager? Or even via environment variables? This approach would work if you define the logging level in your configuration, but not so friendly for other approaches. On Monday, April 4, 2022 at 9:26:02 PM UTC-4 Dan

Re: Feature requests for queryset

2022-04-04 Thread Jason Johns
filter takes in a decomposed dict of keys and values, ie filter_dict = { "id_in": SomeIterable } qs = SomeModel.objects.filter(**filter_dict) from your example, IGNORE_FILTER does not return an iterable, so how is that to work with a SQL query? Seems to me that ths might be an x-y

djangocon eu slack and contact information

2022-03-15 Thread Jason Johns
At the django-users google group, someone made a recent post https://groups.google.com/g/django-users/c/E4SX505gTCY about the djangocon EU announcement . Looks like there's two references to the conference

Roadmap and communication of features planned for releases

2022-01-29 Thread Jason Johns
This came up via a query at Reddit https://reddit.com/r/django/comments/setc9n/official_roadmap/ and I wasn’t able to find anything other than what is already in the comments. That also made me curious and feel that more communication about planned features and changes could be useful.

Re: Feature Request: Provide an option to disable static files caching during development

2021-10-25 Thread Jason Johns
https://docs.djangoproject.com/en/3.2/ref/contrib/staticfiles/#django.contrib.staticfiles.storage.ManifestStaticFilesStorage Are you using this? basically, it converts static asset filenames from `styles.css` to `styles.2932y382.css` and other random-seeming hashes in the filename. Useful

Re: RSS access to Google groups?

2021-07-28 Thread Jason Johns
https://support.google.com/groups/thread/118690869/when-will-googlegroups-rss-feed-be-back-online?hl=en Apparently you're not the only one having this error, and seems the solution only applies to public groups. On Tuesday, July 27, 2021 at 11:38:47 AM UTC-4 Claude Paroz wrote: > > Hi, > It

Re: The certificate for code.djangoproject.com expired on 7/4/2021.

2021-07-04 Thread Jason Johns
FWIW, a user at pyslackers said they got a 503 about the same time about 50 minutes after Asif's initial message. Then about two hours later (about an hour before Adam's reply), someone else responded that they weren't able to replicate. Maybe there was a delay in applying the cert rotation?

Re: Should a queryset avoid using a pk of a deleted object?

2020-11-07 Thread Jason Johns
Does https://code.djangoproject.com/ticket/22553 cover this case? It was closed as a documentation update with this commit in the docs: https://github.com/django/django/pull/2974/files >From your example, re-doing the book.authors.all() call will refresh the queryset's cache. On Wednesday,

Re: Proposal - Warn user when creating or applying a delete migration?

2020-06-12 Thread Jason Johns
I appreciate the feedback! I do agree with you, Adam, that this may not be something that would strictly be Django's responsibility, but I also feel that if a thing is causing a number of footguns, regardless if its primarily the user's fault, Django is getting the blame. I do like your

Proposal - Warn user when creating or applying a delete migration?

2020-06-12 Thread Jason Johns
Should Django output a warning and/or require a prompt when a DeleteModel or RemoveField are to be executed when applying migrations? Over at the pythondev slack group, a user wanted to rename a model to another name, and wasn't aware of the `db_table` attribute in Model Meta. So a new model

Re: Forms submitted by bots

2019-12-14 Thread Jason Johns
We use Signal Sciences at work, integrated with nginx I'm looking for a solution which will be zero time wasting for human users, > not even clicking on the recaptcha's button, but on the other hand will > prevent bots from submitting the form > welcome to

Re: Ideas for a new DEP on long-term Django API compatibility

2019-08-17 Thread Jason Johns
Pascal, I don't think anyone here disagrees with your overall goal to reduce the breaking changes. As someone that got handed a 1.2 project with zero tests and updated it to 1.8, good test coverage to lay the foundation for reviving an ambitious project that went comatose before being

Re: ipdb throws AttributeError in autoreload.py with 2.2.2

2019-06-23 Thread Jason Johns
Wow, that was quick! Thank you! -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to

ipdb throws AttributeError in autoreload.py with 2.2.2

2019-06-23 Thread Jason Johns
Hello, About two weeks ago, work updated the base docker image to use django 2.2.2 and I noticed an issue right off the bat with using ipdb 0.12 and ipython 7.5.0 (which are also defaults for the docker image). I really didn't have the time to dig more, and got along well enough with pdb in

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

2019-02-04 Thread Jason Johns
Tom Christie wrote this about what DRF brings to the table over plain Django: Django REST framework isn't required, but it helps you get a lot of things right that will be time consuming and error prone if you're working from core Django. • Serializers The Django serializers are not really

Re: revisiting the Python version support policy

2019-01-21 Thread Jason Johns
In addition, with tools like https://github.com/pyenv/pyenv available that make changing the currently applicable python version in any given shell extremely easy, I feel pinning support to a specific operating system version, however stable, is not the optimal approach -- You received this

Re: A faster paginator for django

2018-12-05 Thread Jason Johns
https://www.citusdata.com/blog/2016/03/30/five-ways-to-paginate/ has some interesting alternatives. I believe Django uses the first one. But the others have some tradeoffs that might not apply to all the dbs that django supports. -- You received this message because you are subscribed to the

Re: Widening participation (Thoughts from DjangoCon)

2018-11-22 Thread Jason Johns
This is prompted by James Bennet's article yesterday which prompted a discussion with a coworker of mine. I've been using django for a while now, am a mid-level at a company that uses django/DRF heavily, and am a regular lurker here because its

Re: Django and Cython

2018-08-03 Thread Jason Johns
Not at all, just that Cython itself is probably not the approach to take. Andrew Godwin recently posted a proposal for a Django ASGI roadmap and there's a good amount of work to be done there. Benchmarks have their place.

Re: Django and Cython

2018-08-02 Thread Jason Johns
There was a discussion a while back about this https://groups.google.com/forum/#!searchin/django-developers/cython/django-developers/Fi4U602GxHA/mE50LOPkBgAJ tl;dr not sure what benefits Django would get from it, since the bottlenecks you experience are most likely non-Django/Python parts of

[visualization-api] Capture selection event target and save locally for later event trigger

2013-08-06 Thread jason . johns
I'm using the Organizational Chart library to create a dynamic decision tree. One part of the chart library is after adding a new data row, a redraw is necessary to apply the data to the visual graph. When doing so, the visual identifier of an element selection is lost. What I'd like to do

[visualization-api] Dynamic adds to Organization Chart not drawing past first child of root node.

2013-07-29 Thread jason . johns
I'm attempting to adapt Google's organization chart library to aid in the construction of a decision tree question workflow. The tree creation workflow is 1. Select Create New Tree button, root node of tree is created 2. User inserts question text * Text is added to selected node via

RE: srm_env

2003-02-12 Thread Jason Johns - SAS(IT)
The same thing happens on both of my PWS 433au's. I've tried it with a SRM flash that was about 5 years old(when I first got the machines, they had been in use about 6 years) and with the most current flash. One box is running 2.4.18 and the other is running 2.4.20. I cannot change any of the srm

Video and NIC problems

2002-01-26 Thread Jason Johns
Hi, I recently installed debian 2.2.r5 on my laptop and had a few problems with my Video and NIC cards. I have a SIS 630/730 card and a HAMR 5600 Voice modem which I can use as a dialup or NIC card. If anyone can help people fix this it would be greatly appreciated. Jason Johns [EMAIL

Video and NIC problems

2002-01-26 Thread Jason Johns
Hi, I recently installed debian 2.2.r5 on my laptop and had a few problems with my Video and NIC cards. I have a SIS 630/730 card and a HAMR 5600 Voice modem which I can use as a dialup or NIC card. If anyone can help people fix this it would be greatly appreciated. Jason Johns [EMAIL