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
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
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
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
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
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
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
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:
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]
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)"
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
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
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
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
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
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,
>>
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
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'
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
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
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
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
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
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
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
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
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
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
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
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
> 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
; 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
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
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
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
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
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
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
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
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
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
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
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
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
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
--~--~-~--~~~---~-
>
> 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
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
> 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
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
--~--~-~--~~--
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
> 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
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
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
> 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
> 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
> 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.
--~--~-~--~~~---~--~
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
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.
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
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
;-)
###
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
:
- 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
--~--~-~--~~~---~--~---
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
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
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
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
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
101 - 167 of 167 matches
Mail list logo