Re: Google Summer of Code 2019

2019-01-24 Thread Adam Johnson
I'd be happy to help mentor a cross-DB JSONField, it's something I'd like to see done so I can deprecate the one I maintain in Django-MySQL. On Thu, 24 Jan 2019 at 14:43, Carlton Gibson wrote: > Perhaps it's partly the GSoC doesn't cross the radar until just a few > weeks before the deadline...

Re: revisiting the Python version support policy

2019-01-24 Thread Adam Johnson
> > So, phrasing... maybe... as a draft: "Typically, we will support a Python > version unless it will be end of life before the corresponding version of > Django is outside of mainstream support. For example, Python 3.5 security > support ends September 2019, whilst Django 3.1 ends mainstream supp

Re: photobook designing

2019-01-24 Thread Adam Johnson
This mailing list is for the development of Django itself, not for support using Django. Please use the django-users mailing list for that, or IRC #django on freenode, or a site like Stack Overflow. P.S. did you see https://www.djangoproject.com/start/ ? On Thu, 24 Jan 2019 at 21:49, Esra Başkurt

Re: Automatically initialise the project as git repo

2019-01-25 Thread Adam Johnson
Agree Feel free to make a script that does startproject, git init, and anything else you need. Did you know startproject supports templates so if you’re really cranking out projects with a standard format, you can make one for yourself to save much more time there? On Fri, 25 Jan 2019 at 12:42,

Re: Proposal: Track used headers and use that information to automatically populate Vary header.

2019-01-25 Thread Adam Johnson
Accessing the value of a header doesn't necessarily mean that the response varies based up on, for example it might simply be accessed for storage in informational logs. Additionally, Request.headers is not the only way to access the values now, Request.META has not been removed. I don't believe an

Re: connection between django and mysql

2019-01-28 Thread Adam Johnson
This mailing list is for the development of Django itself, not for support using Django. Please use. the django-users mailing list for that, or IRC #django on freenode, or a site like Stack Overflow. Additionally your problem is not related to Django but to installing mysqlclient, a package that D

Re: Google Summer of Code 2019

2019-01-29 Thread Adam Johnson
Small point: a cross-DB JSONField could also serve as a cross-DB ArrayField, since JSON can store arrays. I don't believe MySQL or SQLite have "array" types, so to build a cross-DB ArrayField you'd emulate them with JSON plus a restriction to just storing arrays, which comes back to building a cros

Re: data sharing with multiple clients by server simultaneously

2019-01-29 Thread Adam Johnson
This mailing list is for the development of Django itself, not for support using Django. Please use the django-users mailing list for that, or IRC #django on freenode, or a site like Stack Overflow. On Tue, 29 Jan 2019 at 17:51, shiva kumar wrote: > Hi guys. I have a doubt regrading communicatio

Re: Fellow Reports - January 2019

2019-02-03 Thread Adam Johnson
This mailing list is for the development of Django. itself, not for support using Django. Please keep such questions to Stack Overflow, or the django-users mailing list. On Sun, 3 Feb 2019 at 14:03, hunar techie wrote: > > https://stackoverflow.com/questions/54503581/python-setup-in-cpanel-file-

Re: django.test: Display tests that succeeded

2019-02-03 Thread Adam Johnson
Django's test runner is based on Python's built-in unittest: https://docs.python.org/3/library/unittest.html#module-unittest . I believe you can use the verbose mode (e.g. -v 2) to see the list of all executed tests. On Sun, 3 Feb 2019 at 21:56, Jeremy Potter wrote: > The Django test runner curr

Re: Post mortem on today's packaging error.

2019-02-11 Thread Adam Johnson
Thanks for the detailed post mortem Carlton. Andrew’s suggested approach to do at least a checkout to a fresh directory makes sense to me. Even got checkout and clean aren’t enough to bring an exisiting checkout folder to the same state as git won’t touch files in the gitignore. Note you can do a

Re: DJANGO FILE

2019-02-12 Thread Adam Johnson
Hi Edward, You probably want the Django "start" page: https://www.djangoproject.com/start/ Emailing this mailing list of more than 10,000 addresses for such help is not appropriate. It is for discussion of the creation of Django itself. For other places to go see the "Join the community" header o

Re: DJANGO FILE

2019-02-13 Thread Adam Johnson
The django documentation can be downloaded as PDF by following the link on the right of its index page: https://docs.djangoproject.com/en/2.1/ On Wed, 13 Feb 2019 at 08:48, Edward Victorhez wrote: > Good evening, please can I get the PDF note? > > On Feb 12, 2019 10:17 AM, "Adam J

Re: Use CDN for djangoproject.com

2019-02-14 Thread Adam Johnson
I have not had great experience with Fastly in the past and would avoid them. They run an old fork of Varnish which is not fun to configure. On Thu, 14 Feb 2019 at 11:16, Josh Smeaton wrote: > Cloudflare have many SSL options, including fully encrypted and > authenticated comms all the way throu

Re: Upload images in admin panel

2019-02-14 Thread Adam Johnson
This mailing list is for the development. of Django itself, not for support using Django. Please use the django-users mailing list for that, or IRC #django on freenode, or a site like Stack Overflow. On Thu, 14 Feb 2019 at 19:29, Surajeet Das wrote: > How do I upload images in the admin panel ?

Re: Google Summer of Code 2019

2019-02-15 Thread Adam Johnson
Yes in my experience Heroku/Divio/Elastic Beanstalk/other PaaS platforms already fit the space of a "simple Django deployment". I am also skeptical, I'd need to see how it fit in the space, what it does differently, and how it will be maintained long term. I think it's a bit outside the remit of DS

Re: BitBounce Spam Replies From the Mailing List

2019-02-17 Thread Adam Johnson
Thanks for getting that done Aymeric. On Mon, 18 Feb 2019 at 08:55, Aymeric Augustin < aymeric.augus...@polytechnique.org> wrote: > They say they removed the offending user: > https://twitter.com/stewart__dennis/status/1097296853551337472?s=21 > > This isn’t a long term fix — we’ll have the same

Re: Adding a database-agnostic JSONField into Django

2019-02-19 Thread Adam Johnson
Dan we don't need a user-operated flag, instead we would introspect the database version in use and have a database backend feature. For example here's where the MySQL backend determines if the "over" clause is supported for window functions: https://github.com/django/django/blob/master/django/db/b

Re: Add an defer=True option for model fields

2019-02-20 Thread Adam Johnson
Dan, as to solving your problem with the Django of today: if you don't mention a field in the Django model definition, Django won't select it. So, you can declare the table for two Django models, and use "vertical partitioning" so that when you query one, the other isn't selected, unless it is adde

Re: Proposal for a new template tag to disable invoking callable variables

2019-03-01 Thread Adam Johnson
I've had a review of the current and historical tickets, and I think that do_not_call_in_templates is sufficient. A template tag to control such a low level feature of the templating system seems a bit niche. If you are worried about adding attributes with objects from third party libraries, you ca

Re: Trying to transfer some data in Sec-websocket-protocol. But the browser breaks the connection with error ----Error during WebSocket handshake: Sent non-empty 'Sec-WebSocket-Protocol' header but no

2019-03-05 Thread Adam Johnson
This mailing list is for the development. of Django itself, not for support using Django. Please use the django-users mailing list for that, or IRC #django on freenode, or a site like Stack Overflow. On Tue, 5 Mar 2019 at 18:36, samarth parashari < samarth.parashari1...@gmail.com> wrote: > Try dj

Re: Hi all

2019-03-05 Thread Adam Johnson
This mailing list is for the development. of Django itself, not for support using Django. Please use the django-users mailing list for that, or IRC #django on freenode, or a site like Stack Overflow. On Tue, 5 Mar 2019 at 13:25, wrote: > I am using sqlite3 and when I open that file in Pycharm it

Re: Development story for CBV FormViews using GET

2019-03-09 Thread Adam Johnson
> > I find it hard to justify adding it to a project just to deal with this. Why is it hard to justify adding it? django-filter is in the class of very stable django third party packages, and it's even maintained by Django fellow Carlton Gibson. * Is my understanding of the current process corr

Re: Use CDN for djangoproject.com

2019-03-11 Thread Adam Johnson
Tested on Chrome with "Disable cache" checked, and no render issue was >>>>> found. >>>>> >>>>> On Friday, February 15, 2019 at 2:09:09 PM UTC+11, Tobias McNulty >>>>> wrote: >>>>>> >>>>>&

Re: Support for unittest -k option

2019-03-11 Thread Adam Johnson
+1 from me, I'm okay with the small breaking change to keep in-line with upstream unittest. Since it's restricted to tests, it's unlikely to break anyone's production site. On Mon, 11 Mar 2019 at 12:19, Carlton Gibson wrote: > Thanks François, > > Just on this, my thought is that if we don't fol

Re: Django include default user registration, forgot password, OTP feature by default with Django libraries

2019-03-14 Thread Adam Johnson
See also core contributor James Bennett's blog post about his library django-registration which provides some of these features https://www.b-list.org/weblog/2018/sep/04/three-dot-oh/ On Wed, 13 Mar 2019 at 20:57, Jani Tiainen wrote: > Hi. > > ke 13. maalisk. 2019 klo 18.19 parocks > kirjoitti:

Re: Proposal to re-open #27017 (updating only dirty fields in save())

2019-03-14 Thread Adam Johnson
I believe there's the opportunity for a subtle bug in applications if Django moves from its current default behaviour of saving all fields to saving only dirty fields. Values in a model instance can become "torn" between two versions by two concurrent processes even though neither wanted to do this

Re: Django app taking too long to upload data into postgresql database

2019-03-15 Thread Adam Johnson
This mailing list is for the development of Django itself, not for support using Django. Please use the django-users mailing list for that, or IRC #django on freenode, or a site like Stack Overflow. On Fri, 15 Mar 2019 at 18:25, Guillermo Yáñez Feliú wrote: > Hello, > > > I’m working in a projec

Re: Newcomer's questions

2019-03-17 Thread Adam Johnson
3. I believe I’ve seen Tim use the maintainers’ edits feature. Perhaps we should guide towards its usage? On Sun, 17 Mar 2019 at 17:21, Aymeric Augustin < aymeric.augus...@polytechnique.org> wrote: > Hello Alexey, > > Thanks for contributing! > > 1. You should make a PR against master and, if you

Re: De-assigning "Easy pickings" tickets

2019-03-18 Thread Adam Johnson
Non-fellow agreeing here too :) On Mon, 18 Mar 2019 at 12:08, Mariusz Felisiak wrote: > Totally agree! > > Best, > Mariusz > > W dniu piątek, 8 marca 2019 20:30:11 UTC+1 użytkownik Carlton Gibson > napisał: >> >> Hi all. >> >> We don't have many Easy Pickings tickets, they're all assigned, and g

Re: Optimization for get_search_results() in admin

2019-03-18 Thread Adam Johnson
Hi, I've also seen this behaviour before at YPlan, we sometimes got the "mysql can't join more than 61 tables" error or had the database slow to a crawl. Some of the admin classes required custom get_search_results functions to fix this. I have only skimmed the old tickets and PR's but I think th

Re: Welcome Mariusz Felisiak to his first day as a Django Fellow

2019-03-18 Thread Adam Johnson
Welcome Mariusz! 👋👌👍 On Mon, 18 Mar 2019 at 15:38, Brian Moloney wrote: > On behalf of the Django Software Foundation, the DSF Fellowship Committee > would like to give a shout out and a warm welcome to Mariusz on his first > day as a Django Fellow. > > We are excited to have you in the Fellowsh

Re: GSoC Proposal

2019-03-18 Thread Adam Johnson
Hey Marcio, A cross-DB JSONField is something I'd like to see too, nice proposal. I maintain the MySQL compatible field in Django-MySQL. You wrote in the proposal that SQLite doesn't support JSON, but it does with the json1 extension: https://www.sqlite.org/json1.html Also I don't think it's nec

Re: FetchFromCacheMiddleware.process_request() refactoring proposal

2019-03-18 Thread Adam Johnson
Hi I appreciate the enthusiasm! Making Django's code more readable is certainly a good goal, but refactoring must be done very carefully as we don't want to avoid subtle bugs, especially in a function that's directly used by users. This mailing list is generally not for low level code discussions

Re: FetchFromCacheMiddleware.process_request() refactoring proposal

2019-03-18 Thread Adam Johnson
Well, it might not be the most valuable thing to work on, but if it helps you get comfortable with the code base and the changes are low to zero risk, it’s not so bad. I think there might be a smaller set of changes that reduces the risk. On Mon, 18 Mar 2019 at 23:08, Alexey Tsivunin wrote: > Th

Re: Django 2.2 release candidate 1 released

2019-03-20 Thread Adam Johnson
Hi Mohammed, Thanks for making a suggestion, but this is not the thread to bring such an issue up on. If you want to make a suggestion, it's best to make a new thread. Ryan is also right, 2.2 is feature frozen, so it won't be possible to make such a change, only to fix bugs before it gets its ful

Re: mysqlclient

2019-03-22 Thread Adam Johnson
This mailing list is for the development of Django itself, not for support using Django. Please use the django-users mailing list for that, or IRC #django on freenode, or a site like Stack Overflow. On Fri, 22 Mar 2019 at 14:49, marolahy wrote: > Hi, > We need to run these command with sudo righ

Re: VALUE not resetting on Foriegn Key Delete

2019-03-26 Thread Adam Johnson
This mailing list is for the development of Django itself, not for support using Django. Please use the django-users mailing list for that, or IRC #django on freenode, or a site like Stack Overflow. On Tue, 26 Mar 2019 at 05:49, Arun S wrote: > Hi, > > I have a Model Class which has the Below sc

Trac query page not working on Chrome, patch submitted upstream

2019-03-31 Thread Adam Johnson
Just an FYI: I think I found a bug in Trac that silently prevents the ticket query page from submitting in Chrome, after adding filters. I've reported it upstream and provided a patch: https://trac.edgewall.org/ticket/13141 If this becomes a major problem before Trac (or Chrome!) is fixed I can lo

Re: Trac query page not working on Chrome, patch submitted upstream

2019-03-31 Thread Adam Johnson
Update, a kind anonymous soul posting on the Trac ticket found out it's an experimental web feature in Chrome that does this, and disabling it ( chrome://flags/#enable-experimental-web-platform-features ) fixes the issue. On Sun, 31 Mar 2019 at 11:16, Adam Johnson wrote: > Just an FYI:

Re: Framework support suggestion

2019-04-02 Thread Adam Johnson
This is a complicated topic. See more in the recent thread on Django having an FAQ about working with different JS frameworks: https://groups.google.com/forum/#!topic/django-developers/KVAZkRCq9KU On Tue, 2 Apr 2019 at 07:56, Confi Yobo wrote: > Please, I want to suggest a feature for django to

Re: MultiKeyDictError

2019-04-04 Thread Adam Johnson
This mailing list is for the development of Django itself, not for support using Django. Please use the django-users mailing list for that, or IRC #django on freenode, or a site like Stack Overflow. ...that said your answer is on https://docs.djangoproject.com/en/dev/ref/request-response/ , presum

Re: Should we backport adding support for psycopg2 2.8 to the 1.11.x and 2.1.x?

2019-04-04 Thread Adam Johnson
I'd say backport it. The 1.11 docs say to install 2.5.4 or higher ( https://github.com/django/django/blob/stable/1.11.x/docs/ref/databases.txt#L95 ). So either you backport the fix or edit the old docs to say <2.8, which is just as much work? On Thu, 4 Apr 2019 at 13:52, Mariusz Felisiak wrote:

Re: a bug about ipv6?

2019-04-04 Thread Adam Johnson
Please post the stack trace on a bug report at https://code.djangoproject.com/ , especially after looking for similar tickets :) The mailing list is generally for broader discussion. On Thu, 4 Apr 2019 at 14:15, 林杰 wrote: > OS:windows 10 1803 > Python: 3.6.6 > Django version: 2.2 > > any django

Re: More standard template filters

2019-04-05 Thread Adam Johnson
FYI Jinja2 allows (most) python expressions, so this would Just Work(TM): {{ myvar.startswith("x") }} Django Template Language has a lot of legacy that prevents this from happening, afaiu it would not be possible to move to it. It's not hard to move your templates (asides from those extending e

Re: translation.E005 / Should LANGUAGES_BIDI be a strict subset of LANGUAGES?

2019-04-09 Thread Adam Johnson
Hi Matthias, I can see why this is annoying. At least the resolution is easy by setting LANGUAGES_BIDI = []. I do agree that it should be in the release notes, although it's quite hard to miss a new system check's output when upgrading. I see it was only at the last review of the PR ( https://git

Re: translation.E005 / Should LANGUAGES_BIDI be a strict subset of LANGUAGES?

2019-04-09 Thread Adam Johnson
list - removes some "included batteries" but helps users make a more informed choice? On Tue, 9 Apr 2019 at 12:27, Adam Johnson wrote: > Hi Matthias, > > I can see why this is annoying. At least the resolution is easy by setting > LANGUAGES_BIDI = []. I do agree th

Re: Proposal to format Django using black

2019-04-13 Thread Adam Johnson
+1 I’d like to see gradual roll out (one module at a time? One rule at a time?) to spread the work of reformatting all the in-flight patches. On Sat, 13 Apr 2019 at 18:45, Jon Dufresne wrote: > Big +1 > > I've used black in quite a few projects now and found it has greatly > reduced the mental

Re: Add to QuerySet method `one` that acts as `first` but without ordering

2019-04-13 Thread Adam Johnson
Doesn’t it work to do qs[0] ? On Sat, 13 Apr 2019 at 17:48, alTus wrote: > Hello. > > Please consider if that proposal can be useful not only for me :) > > `QuerySet.first` is quite useful shortcut but its drawback is that it > involves ordering so some DB queries become expensive. > But quite o

Re: Proposal to format Django using black

2019-04-15 Thread Adam Johnson
Lukasz Langa, the developer, said he will tag the first non-beta version in "Early April." https://twitter.com/llanga/status/1106247623802060802 There won't be any significant changes when it leaves beta afaiu. On Mon, 15 Apr 2019 at 08:40, Scot Hacker wrote: > Just bringing this up for the sa

Re: GSOC Proposal : CrossDB JSON Field

2019-04-16 Thread Adam Johnson
Hi Rohit! It seems your email thread has been missed by the list, I don't know why, perhaps it hit some spam filters. There's also another thread from a student proposing the same projectt: https://groups.google.com/d/msgid/django-developers/415dbb68-d1a8-4642-8908-e6414dde1ad0%40googlegroups.com

Re: Running Django test suite foo first time on windows Hanging

2019-04-18 Thread Adam Johnson
Hi Chris! I'm not a Windows user, but I guess something in your Windows configuration is making the Python file open in VSCode rather than get run by the Python interpreter. Probably installing VSCode after Python reconfigured Windows to do this. The first line of runtests.py is a shebang: https:

Re: i am presta developer, whats new in django...is it ecommerce platform

2019-04-22 Thread Adam Johnson
Hi Sohail, This mailing list is for mentoring on the development of Django itself, not for support using Django. Please use the django-users mailing list for that, or IRC #django on freenode, or a site like Stack Overflow. Thanks, Adam On Mon, 22 Apr 2019 at 21:08, Rishabh Gupta wrote: > Are

Re: Google "Season of Docs"

2019-04-23 Thread Adam Johnson
Sounds great, thanks for your work here Carlton. On Mon, 22 Apr 2019 at 09:42, Carlton Gibson wrote: > Quick update: > > I've applied Django for Season of Docs. Don't know if we're accepted yet > but 🤞 > > As per the timeline Technical Writer applications open May 29th. > > https://developers.go

Re: Support for CTAS statement with ORM API?

2019-04-25 Thread Adam Johnson
Hi Markus CTAS can be useful in some cases, but I can't imagine how we'd fit it into the Django ORM nicely. There wouldn't be a model for the correspondingly created table. Have you got a suggestion for the way you'd like to see it working? Thanks, Adam On Wed, 24 Apr 2019 at 14:03, Markus Elfr

Re: Deferring "Sign the CLA"

2019-04-27 Thread Adam Johnson
Moving it til later in the docs sounds good. A GitHub bot and digital signing would be a nice next step, it's a bit of a project though. Unless we require it for all submissions, we'd need some kind of policy defining the "trivial" cutoff, e.g. 10 lines or more. On Sat, 27 Apr 2019 at 14:08, J. P

Re: Database Router Abstract Base Class (ABC)

2019-04-28 Thread Adam Johnson
I don't think this would be that helpful, Django relies on ducktyping, and the router docs ( https://docs.djangoproject.com/en/2.2/topics/db/multi-db/ ) clearly document the signatures, and that the methods are all optional: A router doesn’t have to provide *all* these methods – it may omit one or

Re: Support for CTAS statement with ORM API?

2019-04-28 Thread Adam Johnson
> > This is an usual challenge for such software extensions, isn't it? It's more around having an API that makes intuitive sense to ORM users. Django is very model-focused and the ORM is mostly designed to work with tables that are created by migrations. I published examples where data processin

Re: Database Router Abstract Base Class (ABC)

2019-04-29 Thread Adam Johnson
n, 28 Apr 2019 at 11:30, Adam Johnson wrote: > >> I don't think this would be that helpful, Django relies on ducktyping, >> and the router docs ( >> https://docs.djangoproject.com/en/2.2/topics/db/multi-db/ ) clearly >> document the signatures, and that the methods a

Re: Support for CTAS statement with ORM API?

2019-04-29 Thread Adam Johnson
Hi Markus It seems that the functionality is already usable by this class library > in a convenient way. How do you think about the addition of a base class like “table” with the method “create(parameters)” (if it would not be provided so far)? To both of these - the Django ORM doesn't work i

Re: What should i do to build a django app on any linux distro which one can use by one-click install

2019-04-30 Thread Adam Johnson
This mailing list is for the development of Django itself, not for support using Django. Please use the django-users mailing list for that, or IRC #django on freenode, or a site like Stack Overflow. On Tue, 30 Apr 2019 at 02:29, Meow wrote: > It seems appimage can do these, but i don’t know how

Re: A different approach for the auto-reloader

2019-05-01 Thread Adam Johnson
> > 1. It’s really hard to know where a request is going at this level, so we > could end up with a page view triggering 20 static files requests very > quickly, which would lead to stating all files 20x redundantly. Indeed, maybe this could be solved with a re-stat cooldown? > 2. How would we

Re: injecting settings

2019-05-07 Thread Adam Johnson
If your django apps have default settings, they can use getattr(settings, 'MY_VALUE', default) For third party apps I've often used an object with a bit of logic to encapsulate these defaults, especially useful in the face of app changes. For example: https://github.com/adamchainz/nexus/blob/maste

Re: Django Channels

2019-05-08 Thread Adam Johnson
This mailing list is for the development of Django itself, not for support using Django. Please use the django-users mailing list for that, or IRC #django on freenode, or a site like Stack Overflow. On Wed, 8 May 2019 at 11:33, Faizan Nazeer wrote: > how Django channels connect with android mobi

Re: RANDOM SELECTION

2019-05-11 Thread Adam Johnson
This mailing list is for the development of Django itself, not for support using Django. Please use the django-users mailing list for that, or IRC #django on freenode, or a site like Stack Overflow. Also I searched the web, your query shows up several times on Stack Overflow: https://duckduckgo.co

Re: Django ORM Internals

2019-05-13 Thread Adam Johnson
Yes there isn't much documented on the ORM internals, but there are other resources. The DUTH videos are a great start and inspired me to get started contributing to Django. Specifically: - https://www.youtube.com/watch?v=CGF-0csOjPw - https://www.youtube.com/watch?v=-4jhPRfCRSM - https:/

Re: Introduction

2019-05-14 Thread Adam Johnson
Hi Ruchit You should not be trying to 'pip install' the tests module. There is no tests module in Django's tree, there is a test directory that contains many individual test modules: https://github.com/django/django/tree/master/tests . You can see there's an i18n module in there. >From your trace

Re: Introduction

2019-05-14 Thread Adam Johnson
Try checking out an older commit and running the tests there. It may be that this doesn't work in all situations on the current latest commit on the master branch. On Tue, 14 May 2019 at 14:25, Ruchit Vithani wrote: > Hey Adam! I'm running tests same way as in that documentation. In tests > dire

Re: Form not valid error

2019-05-15 Thread Adam Johnson
Hi! I think you've found the wrong mailing list for this post. This mailing list is for 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 to answer yo

Re: STMP ON DJANGO

2019-05-20 Thread Adam Johnson
Hi! I think you've found the wrong mailing list for this post. This mailing list is for 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 to answer yo

Re: New external package - is there any duplication

2019-05-21 Thread Adam Johnson
Hi Dan, I think this has not got much of a response because it might be a bit niche - it really depends where your teams are struggling to use RunSQL. Looking for other packages at https://djangopackages.org/grids/g/database-migration/ , nothing seems to be related. They are all precursors/replac

Re: Proposal: Add additional password validators (auth/password_validation.py)

2019-05-21 Thread Adam Johnson
Hi Brad, I appreciate no one has replied here for some time, and your ticket was closed rapidly after your work creating the code. I can imagine it might be a bit frustrating. Thanks for trying to improve Django. I see you've submitted some other PR's since, thanks for that work. My thoughts on

Re: New external package - is there any duplication

2019-05-22 Thread Adam Johnson
gt; Hard then to be an idempotent change then, even with create and replace. > > On Tue, May 21, 2019 at 4:48 PM Adam Johnson wrote: > >> Hi Dan, >> >> I think this has not got much of a response because it might be a bit >> niche - it really depends where your te

Re: ERROR: The included URLConf 'website.urls' does not appear to have patterns in it. If u see valid patterns in the file then there is issue of Circular import.

2019-05-27 Thread Adam Johnson
Hi! I think you've found the wrong mailing list for this post. This mailing list is for 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 to answer yo

Re: Proposal: Add additional password validators (auth/password_validation.py)

2019-05-27 Thread Adam Johnson
r to Django. And I must admit you > have me beat on just about all points raised. As a new contributor, > hearing your framing of the consideration that goes into feature requests > was helpful also. > > Brad > > On Tue, May 21, 2019 at 5:58 PM Adam Johnson wrote: > >&g

Re: Add logging to related descriptors

2019-05-28 Thread Adam Johnson
My library https://github.com/adamchainz/django-perf-rec also has some popularity, it's like assertNumQueries on steroids I'd still like to revisit and one day merge auto prefetch_related that would turn every N+1 queries into 2 bigger queries ( https://groups.google.com/d/msg/django-developers/Ep

Re: cannot use a string pattern on a bytes-like object

2019-06-03 Thread Adam Johnson
Hi Saurabh, Tobias has said pointed it out, but I have a template email for "woops wrong mailing list" below that also contains some information that may help with your problem: Hi! I think you've found the wrong mailing list for this post. This mailing list is for the development of Django itse

Re: help with this migrations error the site is running i cant drop the database

2019-06-04 Thread Adam Johnson
Hi! I think you've found the wrong mailing list for this post. This mailing list is for 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 to answer yo

Re: On adding comments to database schema

2019-06-05 Thread Adam Johnson
Mauricio, the ticket tracker doesn't tend to get out of sync, so you can see the ticket is still open and waiting for an implementation: https://code.djangoproject.com/ticket/18468 If you want to help, you can start with the "writing your first patch for django" tutorial: https://docs.djangoprojec

Re: Sending emails

2019-06-13 Thread Adam Johnson
Hi! I think you've found the wrong mailing list for this post. This mailing list is for 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 to answer yo

Re: GDAPS

2019-06-16 Thread Adam Johnson
Hi Christian, Welcome to the django developers list. I have had a quick look over GDAPS and have some comments and questions back for you: * Your “homepage” link on PyPI is example.com. The usual thing to do here is link to your source host or docs. Set this as url in your setup.py. * I see you l

Re: Difficulty setting dynamic 'db_table' in Meta

2019-06-26 Thread Adam Johnson
Hi, The SO post shows you (?) testing on Django 1.10, have you tried with the latest 2.2? You could also try implementing this with just a class decorator which is much more likely to work, although it’s not inheritable. You could also enforce with a a custom system check for manual declaration

Re: Difficulty setting dynamic 'db_table' in Meta

2019-06-27 Thread Adam Johnson
#x27;ll be losing > inheritance. > > On Wednesday, June 26, 2019 at 12:01:31 PM UTC-4, Adam Johnson wrote: >> >> Hi, >> >> The SO post shows you (?) testing on Django 1.10, have you tried with the >> latest 2.2? >> >> You could also try implementing this w

Re: CommandTemplate Behavior Is Inconsistent

2019-07-06 Thread Adam Johnson
Hi John! Thanks for taking the time to compile a detailed bug report. Unfortunately, emailing django-developers isn't the right approach here - the mailing list is normally for higher level discussion. The normal process is to write a ticket on Trac, our ticket tracker: https://docs.djangoproject.

Re: Application specific middleware support

2019-07-07 Thread Adam Johnson
Hi Kapil The main reason I believe is because URL's are project global, rather than per app. Yes the root urlconf can include URL's kept within apps, but because it's a recursive data structure this isn't so easy. For your use case I'd suggest either: - Using class based views, creating a sub

Re: Application specific middleware support

2019-07-07 Thread Adam Johnson
Aymeric, are you sure about that? I can't find the code, and the docs for current_app say it's noto set by Django itself: https://docs.djangoproject.com/en/2.2/ref/request-response/#django.http.HttpRequest.current_app Also middleware can't reliably make use of routing information except in process

Re: insert or update on table “app_job” violates foreign key constraint “app_job_user_id” DETAIL:Key (user_id)=(1) is not present in table “accounts_user”

2019-07-07 Thread Adam Johnson
Hi! I think you've found the wrong mailing list for this post. This mailing list is for 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 to answer yo

Re: Web Socket Error 404

2019-07-11 Thread Adam Johnson
Hi! I think you've found the wrong mailing list for this post. This mailing list is for 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 to answer yo

Re: Error websocket 404

2019-07-15 Thread Adam Johnson
Hi! I think you've found the wrong mailing list for this post. This mailing list is for 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 to answer yo

Re: The best django file structure

2019-07-17 Thread Adam Johnson
Hi! I think you've found the wrong mailing list for this post. This mailing list is for 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 to answer yo

Re: Pre-proposal: adopt dj-database-url as a DEP 7 official project

2019-07-18 Thread Adam Johnson
+1 from me too. On Thu, 18 Jul 2019 at 17:55, Tobias McNulty wrote: > I think it's a great idea. > > On Thu, Jul 18, 2019, 12:46 PM Jacob Kaplan-Moss > wrote: > >> Hi folks - >> >> I’d like to gauge interest in adopting dj-database-url >> (http://github.com/jacobian/dj-database-url) as an offic

Re: Provide a simpler way to default runserver IP/port to 0.0.0.0:8000

2019-07-19 Thread Adam Johnson
Mario, It's not the best to re-open a 2.5 year old thread :) Better to start a new one, link to the old one, and state what you think is different. I believe your use case can be fit with a custom ruserver management command to override the original as Shai suggested: > from (...)runserver impor

Re: Discuss https://github.com/django/django/pull/11157

2019-07-20 Thread Adam Johnson
I've had a quick look at the PR and discussions. The ability to stream template rendering looks fantastic and I know I've seen on a few features in projects that could take advantage of it. I agree with Carlton's last comment on the PR though. Adding all the extra classes to Django is a bit of a

Re: select quantity for each items selected in many to many field

2019-07-21 Thread Adam Johnson
Hi! I think you've found the wrong mailing list for this post. This mailing list is for 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 to answer yo

Re: this feature available in django

2019-07-23 Thread Adam Johnson
Hi again! I think you've (again) found the wrong mailing list for this post. This mailing list is for 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 unlikel

Re: Feature request: get user by session key

2019-07-26 Thread Adam Johnson
Hey, Welcome to the mailing list. This is probably a little low-level as a feature request here. I think it is better submitted as a ticket as per https://docs.djangoproject.com/en/dev/internals/contributing/bugs-and-features/ :) Where on the docs did you read about django-developers? As for your

Re: Translation templatetag aliases

2019-07-27 Thread Adam Johnson
+1 from me too for the reasons that Aymeric states. Another small pro: "translate" is a few more characters to type, but it should make it easier to understand the purpose of the tags to newcomers. "trans" is a prefix used for many words - Wiktionary lists 609: https://en.wiktionary.org/wiki/Categ

Re: Why not just use Python for templating smart components?

2019-07-30 Thread Adam Johnson
Hi Bobby Interesting approach. I think Python has had a few experiments with templates as classes/functions before, such as https://pypi.org/project/yattag/ . But you're right, f-strings do make this easier. If this idea is something that's several years away from usability, I suggest releasing a

Re: Cross-DB JSONField ready for review

2019-08-02 Thread Adam Johnson
Sage, I think that should go in the main docs, in the docs/ folder in the repo, no? On Fri, 2 Aug 2019 at 18:09, Sage M.A. wrote: > Hi Carlton, > > Thanks! I hope it can be merged soon :D > > Oh, and by the way, where should I write a setup guide for SQLite+JSON1? I > don't know where and how to

Re: retriving all table from database

2019-08-07 Thread Adam Johnson
Hi! I think you've found the wrong mailing list for this post. This mailing list is for 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 to answer yo

<    1   2   3   4   5   6   7   8   9   10   >