Re: RFC: "UPSERT" in PostgreSQL

2014-09-30 Thread Peter Geoghegan
On Tue, Sep 30, 2014 at 12:37 AM, Anssi Kääriäinen wrote: > The main point is that having WITHIN PRIMARY KEY syntax would make usage > of this feature a lot easier for us. I was thinking about doing that anyway. -- Peter Geoghegan -- You received this message because you are subscri

Re: RFC: "UPSERT" in PostgreSQL

2014-09-30 Thread Peter Geoghegan
or default? The MySQL documentation is mostly due to INSERT...ON DUPLICATE UPDATE completely breaking their statement-based replication. I accept that there are other hazards, but it's difficult to have a fully general syntax that indicates user intent WRT the unique index to merge on. -- Peter

Setting database default values in migrations (postgres)

2014-10-30 Thread Peter Coles
ngo-postgres-dbdefaults and here it is in pypi: https://pypi.python.org/pypi/django-postgres-dbdefaults/0.0.1 I'd love to hear feedback/thoughts/concerns. -Peter -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Djang

Re: Setting database default values in migrations (postgres)

2014-10-30 Thread Peter Coles
have more input on using it in practice and probably find some lurking bug somewhere. Worst case, other people who really want this functionality could use this as a 3rd-party dependency. Regardless, I think the docs should be clearer about defaults not getting set in the db. On Thursday, O

Re: Setting database default values in migrations (postgres)

2014-10-30 Thread Peter Coles
want some way to declare what defaults > to keep. (South actually used to have this with a keep_default option on > the add_column method but it was kind of unmaintained) > > Andrew > > On Thu, Oct 30, 2014 at 1:45 PM, Peter Coles > wrote: > >> Thanks for the quick

Enhancement to assertQuerysetEqual

2020-02-04 Thread Peter Inglesby
ment is passed, and the second argument is not a list of strings, then transform is set to the identity function. As far as I can tell, this would not introduce a meaningful backwards incompatibility. I'm willing to do the work to add code and documentation etc. All the best, Peter. -- You re

Re: [GSoC 2020] Secrets Manager Proposal

2020-03-23 Thread Peter Baumgartner
You might find https://github.com/lincolnloop/goodconf interesting. I see some overlap there with what you're doing. On Mon, Mar 23, 2020 at 9:43 AM Abhirav Dilip Kariya wrote: > > Hi, > > Thank your for the suggestion. > > I did look at some libraries. However, the libraries I looked into (or

Re: Welcome email

2020-07-09 Thread Peter Inglesby
Hi folks, Is there any moderation for posts from new users? It can be enabled <https://support.google.com/groups/answer/2466386?hl=en>, and I'd be willing to be part of a team that filters posts from new users. All the best, Peter. On Thu, 9 Jul 2020 at 13:59, Adam Johnson wrote:

runserver MIME types on Windows

2020-09-25 Thread Peter Marheine
Hi list, When developing on Windows I was recently bit by Windows providing wrong MIME type mappings for file names. I filed a ticked for that which has more details [1], but given it was summarily closed as not a bug in Django I wanted to see if there were broader opinions on the matter. [1]

Help needed to fix hundreds of failing tests

2020-10-10 Thread Peter Inglesby
of test failures. Unfortunately I have no spare time at the moment to resolve these. Would anybody on this list like to take the PR off my hands? Thanks! Peter. -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)"

Re: Help needed to fix hundreds of failing tests

2020-10-12 Thread Peter Inglesby
Thanks Hasan for offering to help. Either of Carles's approaches would work -- I don't have a strong view. Making the smaller fix (ie adding transform=str every time assertQuerysetEqual fails) would require the least thinking. But it may miss some good opportunities to refactor or simplify the te

Ticket update ending up in gmail spam

2020-10-22 Thread Peter Inglesby
Hi folks, An email with an update on ticket that I'm subscribed to has ended up in my gmail spam folder: [image: image.png] I'm not sure what to suggest! Peter. -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions t

Re: #29752 Adding a ALLOWED_HOSTS_IGNORABLE_URLS setting

2018-10-28 Thread Peter Baumgartner
I implemented something for this in the django-alive package via a middleware that will bypass the host checking: https://github.com/lincolnloop/django-alive/#disabling-allowed_hosts-for-healthchecks https://github.com/lincolnloop/django-alive/blob/master/django_alive/middleware.py On Fri, Sep 14

Postgres PGCrypto in Django?

2018-11-03 Thread Peter Farrell
So I'm curious what people's opinions are regarding this. Best, Peter J. Farrell -- 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

Resource loading (Django without a filesystem)

2019-06-27 Thread Peter Baumgartner
I'm interested in using PyOxidizer [1] to create single-file executable Django projects. This currently isn't possible because of all the places Django assumes it is operating on a proper filesystem. I haven't done a full audit, but templates, migrations, and static files come to mind. Python h

Re: Resource loading (Django without a filesystem)

2019-06-27 Thread Peter Baumgartner
bit more, though. If we can get Django > compatible, or work with PyOxidiser if we find a reasonable workaround they > could implement, it would be great. > > Andrew > > On Thu, Jun 27, 2019 at 12:39 PM Markus Holtermann > wrote: >> >> Hi Peter, >>

Re: Resource loading (Django without a filesystem)

2019-06-27 Thread Peter Baumgartner
nit__.py file to have > something be a module (because of > https://www.python.org/dev/peps/pep-0420/), but I wonder if there still needs > to be a proper discovery mechanism that flags that they should be considered > as implicit packages/modules. > > Andrew > &g

Re: slow migrations

2016-01-07 Thread Peter Baumgartner
It looks like there are some other fixes in 1.9 that weren't covered by my monkeypatch. I upgraded the project and included a new cProfile in the ticket https://code.djangoproject.com/ticket/22608#comment:23. It shaved 100s off, but still takes 2.5 minutes to create an empty migration. Florian, I'

Re: slow migrations

2016-01-07 Thread Peter Baumgartner
Reporting back on some additional findings for what it's worth. SmileyChris dumped and recreated the project in question's migrations, manually ordering them to minimize dependencies. It was not a major reduction in total migrations: 82 to 58 (mostly third-party migrations and initials), but the ti

Re: undeclared variable appearing in django/db/models/__init__.py

2016-10-07 Thread Peter Inglesby
does by adding it to the __init__ module's locals(), which makes `functions` available as a label in the remainder of the code. Note that I can't actually find the chapter and verse for how this works in the Python docs, but I've been caught out by something similar in the past! Hope this

Re: Problem in current svn TRUNK

2007-07-11 Thread Peter Nixon
Cross posted to -devel as this is definitely a bug On Wed 11 Jul 2007, Peter Nixon wrote: > On Wed 11 Jul 2007, Russell Keith-Magee wrote: > > On 7/10/07, Peter Nixon <[EMAIL PROTECTED]> wrote: > > > How can I debug this in a way that will provide the developers with

Re: Problem in current svn TRUNK

2007-07-11 Thread Peter Nixon
hell Python 2.5.1 (r251:54863, Jun 19 2007, 01:38:21) [GCC 4.2.1 20070604 (prerelease) (SUSE Linux)] on linux2 Type "help", "copyright", "credits" or "license" for more information. (InteractiveConsole) >>> from testprj.testapp.models import Test

Re: Problem in current svn TRUNK

2007-07-11 Thread Peter Nixon
why this matters when the table is empty - as > shown in your example...but just to be sure) me neither :-( -- Peter Nixon http://peternixon.net/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Problem inspecting a (django) postgresql table

2007-07-11 Thread Peter Nixon
rospection.py", line 35, in get_relations relations[int(row[0][1:-1]) - 1] = (int(row[1][1:-1]) - 1, row[2]) TypeError: int() argument must be a string or a number, not 'list' ie. Django doesn't know how to inspect its own tables... Cheers -- Peter Nixon http://peter

Re: Problem in current svn TRUNK

2007-07-11 Thread Peter Nixon
e django unicode branch as django SVN rev 5608 and earlier work fine on SUSE 10.3 alpha Cheers -- Peter Nixon http://peternixon.net/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" g

Ticket #399 (Bigint field object needed) status

2007-07-11 Thread Peter Nixon
PostitiveBigIntegerField and deal with the MySQL incompatibilities... Please forgive any mistakes I made, I am fairly new both to django and python. Regards -- Peter Nixon http://peternixon.net/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: db parameter impemtation

2007-07-12 Thread Peter Nixon
assing in the 1 > as a parameter. > > He says that he saw a query like the first case, and is wondering if > he should open a ticket about it. Yes. That was what I also understood from his questions. 1 is bad from a security and performance point of view. 2 is bett

Re: Problem inspecting a (django) postgresql table

2007-07-12 Thread Peter Nixon
On Thu 12 Jul 2007, Gary Wilson wrote: > Ben Ford wrote: > > Peter, > > I ran into this problem when I was bringing the multi-db branch up to > > date and was so busy I forgot to tell anyone! (My bad) I fixed it, but > > it was on another machine. It's a pre

(Un)Trac

2007-07-12 Thread Peter Nixon
m interested in have been open for 23 months.. How do others keep track of django bugs? I am, like most IT people I am sure, mostly interrupt driven. If something/someone doesn't remind me about a problem I am likely to forget it after a few days/weeks... Regards -- Peter Nixon h

Re: (Un)Trac

2007-07-12 Thread Peter Nixon
On Thu 12 Jul 2007, Jeremy Dunck wrote: > On 7/12/07, Peter Nixon <[EMAIL PROTECTED]> wrote: > > Am I just being dense, or is there no way in django's trac to monitor a > > bug for changes (and receive and email when it does) or even to add a > > bug to a &qu

Re: Move form_for_instance and form_for_model into django.db.models.Model?

2007-07-13 Thread Peter Nixon
> to the form *and* figure out somewhere to call it in the model to be > sure illegal ISBNs don't get stored to the database. If I ever get > around to trying to check forms client-side, I'll need to supply that > information in a third way. (Ignore briefly the fact that cl

Re: Ticket #399 (Bigint field object needed) status

2007-07-21 Thread Peter Nixon
; somewhere else? I wasn't sure how to implement regression tests so I left that bit out :-) -- Peter Nixon http://peternixon.net/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers&quo

Re: Ticket #399 (Bigint field object needed) status

2007-07-23 Thread Peter Nixon
On Sun 22 Jul 2007, Adrian Holovaty wrote: > On 7/11/07, Peter Nixon <[EMAIL PROTECTED]> wrote: > > I have added a patch to Ticket #399 at: > > http://code.djangoproject.com/attachment/ticket/399/django-bigint-200707 > >11.patch > > A few days ago, I added a hook

Max. size of User.email is 75 chars

2007-08-30 Thread Peter Melvyn
Hi all, I've a question, why max. size of User.email field is set to 75 characters, if RFC 2821 limits local part to 64 characters and domain to 255. With '@' it is together 320 chars. Should not be this field extended? --~--~-~--~~~---~--~~ You received this me

Re: GSoC 2007 Status Update VIII: Django REST interface

2007-09-10 Thread Peter Nixon
IndexError: print_usage() if mode == '-g': print "Getting MAC: " + opts['-g'] GetMac(opts['-g']) elif mode == '-d': print "Deleting MAC: " + opts['-d'] DelMac(opts['-d']) elif

Boulder, CO Sprinters

2007-09-11 Thread Peter Baumgartner
If any of you keep an eye on this list, give me a shout. I may be on the Front Range this weekend and would like to participate. -- Pete --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To

models.NullBooleanField()

2007-10-03 Thread Peter Nixon
istake) but I am not sure than Django should _ever_ trying to insert '' into a boolean field. Cheers -- Peter Nixon http://peternixon.net/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django devel

Changes to request_response have broken django-rest-interface

2007-10-04 Thread Peter Nixon
not the author of django-rest-interface but I am using it in production. Can request._load_post_and_files() be updated to support PUT also in order to fix this issue?? -- Peter Nixon http://peternixon.net/ --~--~-~--~~~---~--~~ You received this message bec

Re: Changes to request_response have broken django-rest-interface

2007-10-05 Thread Peter Nixon
On Thu 04 Oct 2007, James Bennett wrote: > On 10/4/07, Peter Nixon <[EMAIL PROTECTED]> wrote: > > I tried to open the following ticket but it thinks my IP is a spammer, > > so I am sending to the list: > > If you create an account in Trac, it won't apply spam fil

Re: Changes to request_response have broken django-rest-interface

2007-10-05 Thread Peter Nixon
On Fri 05 Oct 2007, Tomas Kopecek wrote: > Peter Nixon napsal(a): > > On Thu 04 Oct 2007, James Bennett wrote: > >> On 10/4/07, Peter Nixon <[EMAIL PROTECTED]> wrote: > >>> I tried to open the following ticket but it thinks my IP is a spammer, > >>&g

Re: Changes to request_response have broken django-rest-interface

2007-10-05 Thread Peter Nixon
On Thu 04 Oct 2007, Malcolm Tredinnick wrote: > On Thu, 2007-10-04 at 18:10 +0300, Peter Nixon wrote: > > I tried to open the following ticket but it thinks my IP is a spammer, > > so I am sending to the list: > > > > http://django-rest-interface.googlecode.com/s

Re: Changes to request_response have broken django-rest-interface

2007-10-08 Thread Peter Nixon
On Sat 06 Oct 2007, David Larlet wrote: > 2007/10/5, Malcolm Tredinnick <[EMAIL PROTECTED]>: > > On Fri, 2007-10-05 at 16:17 +0300, Peter Nixon wrote: > > > On Thu 04 Oct 2007, Malcolm Tredinnick wrote: > > > > On Thu, 2007-10-04 at 18:10 +0300, Peter Nixon

Enforcing uniqueness as the ORM layer

2007-10-10 Thread Peter Nixon
ated in the REST API? Cheers -- Peter Nixon http://peternixon.net/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroup

Re: Enforcing uniqueness as the ORM layer

2007-10-15 Thread Peter Nixon
On Wed 10 Oct 2007, Peter Nixon wrote: > Hi Guys > > I am running into the problem that uniqueness is not enforced at the ORM > layer. From: > http://www.djangoproject.com/documentation/model-api/#unique > > "This is enforced at the database level and at the Django adm

somebody to review ticket #5247

2007-11-19 Thread Peter Baumgartner
Can somebody take a look at http://code.djangoproject.com/attachment/ticket/5247/ I updated the existing patch to work with current svn, but I'm not familiar enough with the internals to be sure it isn't breaking things elsewhere. Thanks! -- Pete --~--~-~--~~~---~-

Re: somebody to review ticket #5247

2007-11-19 Thread Peter Baumgartner
> > I've done so rather briefly, comments on the ticket. > Ugh, I think I was asleep at the wheel there. I've uploaded a better patch. If you have time, please take a look. http://code.djangoproject.com/ticket/5247 Thanks! -- Pete --~--~-~--~~~---~--~~ You rec

ticket 3511 backwards incompatible

2007-12-11 Thread Peter Baumgartner
http://code.djangoproject.com/ticket/3511 broke some code I had that caught AssertionError in the past. Seems like it should be listed on http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges -- Pete --~--~-~--~~~---~--~~ You received this message becau

Re: Session save every request

2008-01-06 Thread Peter Rowell
> Just wanted to point out a discussion in django-users which is a bit > of a worry regarding session > behaviour:http://groups.google.com/group/django-users/browse_thread/thread/f7d7... Well, I was the original poster and part of what was reported was an analysis error on my part. Mea culpa. We

Re: Porting Django to Python 3.0 as a GSoC project

2008-03-28 Thread Peter Herndon
nd of "Django3k". :) I would encourage the student to commit to that project, just not under the aegis of SoC. Do it because it is useful, but do it on the side. Do something else for SoC, of a more reasonable scope and immediate payoff. Regards, ---Peter --~--~-~--~~--

Re: Easier URL patterns

2008-04-09 Thread Peter Rowell
This conversation is reminiscent of many others I have seen in other technical communities through the years. I believe the need for a simpler URL pattern mechanism (and perhaps other simplifying tools) is largely dictated by the stated target audience for Django. If Django is meant for experienc

Re: Easier URL patterns

2008-04-09 Thread Peter Rowell
> Django is the web framework for perfectionists with deadlines! Thank you. Somehow I missed that. :-) Seriously, one of the key things you do when marketing a product is identify your target audience. Adrian and Jacob (or their editors) had to do that when writing the book. What specifically m

Callable context variables do not get called during resolution.

2008-05-09 Thread Peter Rowell
Short version: Callable context variables do not get called during resolution. If invoked as a simple variable they return something like . If used in a for loop, they blow up the template. I'm running trunk:7374 Longer version: In order to delay a *very* expensive DB operation, I decided to p

Re: Callable context variables do not get called during resolution.

2008-05-09 Thread Peter Rowell
BTW, I tried to add a comment on this to http://code.djangoproject.com/ticket/7153, but got "Internal Server Error (Submission rejected as potential spam)", which struck me as rather rude. :-) --~--~-~--~~~---~--~~ You received this message because you are subscrib

Re: Callable context variables do not get called during resolution.

2008-05-09 Thread Peter Rowell
> QuerySets are lazy [...] What are you trying to accomplish that is any > different? I'm working around the fact that Django's templates can't take arguments. So I'm calling formatting functions which *do* take arguments, one of which is a QuerySet. Of course, I can't pass args to a function in

Re: Callable context variables do not get called during resolution.

2008-05-09 Thread Peter Rowell
> You probably should take a look at the ORM code. OK, I'll bite. I kind of doubt he rewrote the templating system in the ORM, so you must be inferring that multiple database support was part of the qs-refactoring. I just checked out trunk and I'll admit I'm working with a one-beer-handicap at th

Re: Callable context variables do not get called during resolution.

2008-05-09 Thread Peter Rowell
> Look at the constructor of django.db.models.sql.query.Query for the > "connection" argument. You know, I grepped on that but didn't see anything interesting. Now with a two-beer-handicap, I'll go with Blanche DuBois -- Tomorrow is another day. --~--~-~--~~~---~--~

UNIQUE in PK declaration of refactored OneToOneField

2008-05-09 Thread Peter Melvyn
on know if there are no other dependencies... Peter --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To u

DatabaseFeatures reflecting version of underying SQL server

2008-05-09 Thread Peter Melvyn
Is there a way the DatabaseFeatures would supply different values for different versions of configured SQL server? Thanks, Peter --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group.

Re: DatabaseFeatures reflecting version of underying SQL server

2008-05-10 Thread Peter Melvyn
d be generate DatabaseFeatures in dependency of specific server version. Peter --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers

Re: UNIQUE in PK declaration of refactored OneToOneField

2008-05-11 Thread Peter Melvyn
n with primary key 'per se' probably not. At least MySQL accepts such syntax in contraty to reference guide: [UNIQUE [KEY] | [PRIMARY] KEY]. The concern is Django-Evolution, because it seems that DB generated prior/post 1:1 refactoring is different, more http://groups.google.com/group/djang

Re: UNIQUE in PK declaration of refactored OneToOneField

2008-05-11 Thread Peter Melvyn
;-) ### From this perspective it seems to me that Django should generate correct DDL without redundant indeces etc... first Peter --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group

Re: UNIQUE in PK declaration of refactored OneToOneField

2008-05-11 Thread Peter Melvyn
: - set kwargs['unique'] = False - set DatabaseFeature.autoindexes_primary_keys = True It seems it solved the basic discrepancies we've met, so we could try to live with, but I'd prefer to have Django experts introspection Peter --~--~-~--~~~---~--~---

Re: Rethinking silent failures in templates

2008-05-17 Thread Peter Rowell
Personally, I prefer fireworks when a variable is not set. Here's yet another possibility, just a variant on current code: TEMPLATE_STRING_IF_INVALID = "% (expression)s: %(error)s" The above would be filled in by _resolve_lookup with appropriate values. Then you have a style: template-var-error

Re: Contribution to Django Decorators for file validation

2023-03-25 Thread Peter Benjamin Ani
Hi, would like to partner with you on the project, I like the idea behind it, and I think you should make it a part of Django rather than a separate package, also there's a code am working on On Thu, 23 Mar 2023, 14:19 Raza ul Mustafa, wrote: > Hey Django developers, > > I am a Django developer

Newer version of Sqlite (3.8.9) breaks django -- should we backport

2015-04-14 Thread Peter J. Farrell
Official ticket: https://code.djangoproject.com/ticket/24637 PR: https://github.com/django/django/pull/4494 Sqlite 3.8.9 which was just released on 4/8/2015 as gold has changed behavior with index_list() functionality by adding 2 more columns of data the returned queryset. This breaks introspe

Re: Django Admin - ModelAdmin exclude

2015-06-06 Thread Peter J. Farrell
In our case, we need to dynamically include additional "exclude" fields in our VersionableAdmin and not override the selections the developer has set in their subclass. There are two options to accomplished this: 1) Override get_form() which is messy because you can't just call super here and

Re: Stalled tickets

2019-09-27 Thread Peter van der Does
in last year > <https://code.djangoproject.com/query?status=assigned&status=new&changetime=09%2F26%2F2018..09%2F26%2F2019&stage=Accepted>: >   >    329 > > > So if we would decide to close stalled tickets after some inactivity > period we could massively reduce the

<    1   2