HTML escaping of help_text in Django 4.0

2022-01-06 Thread Matt Westcott
ecreed by the core team a long time back (https://code.djangoproject.com/ticket/6041#comment:6), and I can't find any indication of that decision being reversed. Was this change intentional? Cheers, - Matt -- You received this message because you are subscribed to the Google Groups "

Re: Races in sessions

2021-02-07 Thread Matt
Adam Johnson wrote: > 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 l

Races in sessions

2021-02-07 Thread Matt
The "post_comment" example of sessions appears to be incorrect: https://docs.djangoproject.com/en/3.1/topics/http/sessions/#examples Imagine two HTTP requests coming in at the same time, both seeing that "has_commented" is False, and then both create a comment and set the session variable to Tr

Re: [Feature Request] Having an middleware to be able to force authentication on views by default

2020-03-19 Thread Matt Magin
s works well, and managing the exclusions through settings is not a big deal. Having said that, I do like the idea of putting it inside the Auth middleware as well. +1 from me to put this into core functionality, I include django-stronghold in basically all my projects already. Cheers, Matt O

Re: [Feature Request] Option to implicitly create tables within a database schema based on their model's app

2020-02-16 Thread Matt del Valle
EDIT: Actually, after some further digging it turns out it's worse than I thought. Unless I'm missing something it looks like there currently isn't any non-hacky way at all to set a table's schema in django. There are workarounds that involve SQL escaping hacks such as setting a model's db_na

[Feature Request] Option to implicitly create tables within a database schema based on their model's app

2020-02-16 Thread Matt del Valle
Hi, So currently django seems to take the name of your models (either inferring it from the model class name or, if provided, it takes it from the model Meta options), and prepends the name of the app the model belongs to with an underscore to avoid table name conflicts. It then creates that t

[Feature Request] Allow a Field/DeferredAttribute object everywhere a field name as a string is currently expected

2020-01-13 Thread Matt del Valle
ango where such field name strings are expected and wrapping the input in this function. Is there any chance something like this could be considered as a new feature? Thanks in advance, Matt -- You received this message because you are subscribed to the Google Groups "Django developers (C

Re: Stop QuerySet repr from executing queries

2019-10-20 Thread Matt
Perhaps we ought to just keep the current behavior when DEBUG is True (it seems so obvious now, I can't believe it wasn't the first thing I suggested)? Django does lots of helpful things in DEBUG mode at the expense of performance. I think this would be an innocuous change for most people. It

Re: Stop QuerySet repr from executing queries

2019-10-14 Thread Matt
T ... FROM HugeTable ORDER BY NonIndexedColumn LIMIT 21 (locking it up) 8. Bonus: Trigger all of the above on all your wsgi processes In short, just call repr(BigTable.objects.all()) (where BigTable has an ordering on an non-indexed column and lots of rows) On Thursday, October

Re: Stop QuerySet repr from executing queries

2019-10-11 Thread Matt
like such a minor thing. And I don't know of any precedent for changing the behavior of Django in an interactive shell (and you can tell I'm not a fan of inconsistent behaviors). I'm going to re-open the ticket and hope other Django devs chime in. On Thursday, October 10,

Stop QuerySet repr from executing queries

2019-10-10 Thread Matt
repr(some_queryset) will execute the query and display some results from the query. This is done because it's (somewhat) helpful for debugging. https://github.com/django/django/blob/2a6f45e08e8cb8c7e5157915c378b453109424d2/django/db/models/query.py#L248 This has caused at least two people to sc

Re: #29752 Adding a ALLOWED_HOSTS_IGNORABLE_URLS setting

2018-09-14 Thread Matt Pegler
properly. -Matt On Fri, Sep 14, 2018 at 11:29 AM, Tim Graham wrote: > Sorry, I still don't understand what "whitelisting the health check path" > looks like. > > Here's the snippet for anyone reading the thread after the pastebin expires. > > ALLOWED_H

Re: #29752 Adding a ALLOWED_HOSTS_IGNORABLE_URLS setting

2018-09-14 Thread Matt Pegler
se in production to support AWS health checks that may help give some more context: http://dpaste.com/2BS0C5M -Matt On Fri, Sep 14, 2018 at 10:44 AM, Tim Graham wrote: > What would be the value of that setting for your use case? > > On Friday, September 14, 2018 at 11:52:46 AM UTC-4, Jonas H w

Re: Jenkins resources

2018-07-19 Thread Matt Cooper
ut shortly. Other than that (major) gap, I'd love to hear if I've missed anything important. The build script is here <https://github.com/vtbassmatt/django/blob/ci/.vsts-ci.yml>. On Thu, Jul 12, 2018 at 10:36 AM Matt Cooper wrote: > Thanks! I'll keep in on list as long as no

Re: Jenkins resources

2018-07-12 Thread Matt Cooper
ing/issues/168> with the xmlrunner folks to make the same change. I'm also going to see if I can track down the right person to be more liberal in what the uploader accepts. On Thu, Jul 12, 2018 at 9:40 AM Carlton Gibson wrote: > Hi Matt, > > The settings files from the django-box p

Re: Jenkins resources

2018-07-12 Thread Matt Cooper
Thanks Josh, I'll take a look at that. Also, I got past the pylibmc problem (I wasn't running `apt-get update` before attempting to install libmemcached-dev). On Thu, Jul 12, 2018 at 8:58 AM Josh Smeaton wrote: > Hi Matt, > > The django-box project[0] uses very close

Re: Jenkins resources

2018-07-12 Thread Matt Cooper
r several years, but greatly improved it over the last year. From an open source perspective, the worst problem the "black box" nature -- the community couldn't see built results, test failures, etc since VSTS projects were always private. Now with public projects, we're hoping

Jenkins resources

2018-07-11 Thread Matt Cooper
our CI system is as good a home for Python (and PHP, and Ruby, and ...) projects as any system out there. One of the research activities I'm doing is trying to get a CI pipeline set up for well-known Python projects. Then I can see where we have gaps, where we have better features, et

Missing support for gettext fallback translations

2017-05-20 Thread Matt Westcott
an just our translation management not being up to scratch, and B) whether there's been any previous work on addressing this? Cheers, - Matt -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To

Re: Using auth stuff without installing the auth app

2016-03-23 Thread Matt
> > > On Thursday, March 24, 2016 at 12:07:14 AM UTC+1, Matt wrote: >> >> > the ModelBackend uses the Permission model, so why would that ever >> work without beeing in INSTALLED_APPS? >> >> ModelBackend.authenticate() doesn't use the permissions mod

Re: Using auth stuff without installing the auth app

2016-03-23 Thread Matt
Apolloner wrote: > > > > On Wednesday, March 23, 2016 at 8:36:39 PM UTC+1, Matt wrote: >> >> I created https://code.djangoproject.com/ticket/26401 >> <https://www.google.com/url?q=https%3A%2F%2Fcode.djangoproject.com%2Fticket%2F26401&sa=D&sntz=1&usg=AFQjCNG7tek6

Re: Using auth stuff without installing the auth app

2016-03-23 Thread Matt
r any > model imports. Since the usage of any of the backends requires models, the > import there seems fine -- I'd import RemoteUserBackend in > RemoteUserMiddleware.__init__ -- A patch would be very welcome. > > Cheers, > Florian > > On Wednesday, March 23, 2016

Using auth stuff without installing the auth app

2016-03-22 Thread Matt
I like to use the authentication machinery in Django, without explicitly putting 'django.contrib.auth' in INSTALLED_APPS. This prevents a bunch of unused tables from being creating in the database. This was possible in earlier version of Django. In 1.8, a spurious warning was generated, but tha

Make DATABASES[x]['TEST']['USER'], etc available for non-Oracle DBs

2015-09-20 Thread matt
Currently, the TEST database settings like USER and PASSWORD are only used by the Oracle backend. See: https://docs.djangoproject.com/en/dev/ref/settings/#std:setting-TEST_USER I just hit a case where it would be nice to use a different database user during testing -- and I don't use Oracle.

Re: 1.9 release planning

2015-06-11 Thread Matt Austin
With a more structured release plan, and LTS releases, would it be worth considering LTS releases as 'major' version numbers, with regular releases and 'minor' version releases? It would be easier to identify LTS releases at a glance, and might provide more meaning to the v

Queryset values() differentiate between requests for model objects and model IDs

2015-05-07 Thread Matt C
If I have some models like so: from django.db import models class X(models.Model): y = models.ForeignKey(Y) ... other fields ... class Y(models.Model): ... some fields ... ... and I do a query like so: X.objects.all().values('y') ... I get back a list of dictionaries that contai

Re: Potentially inconsistent behavior between test client and normal WSGI requests

2015-04-26 Thread Matt Hooks
> > > > On Saturday, April 25, 2015 at 8:46:58 AM UTC+2, Matt Hooks wrote: >> >> I'm not really familiar with the design ideals of the Django devs or the >> WSGI spec. From what I can tell, the spec doesn't specify whether the url >> should be unquoted befor

Re: Potentially inconsistent behavior between test client and normal WSGI requests

2015-04-24 Thread Matt Hooks
o. The gevent ones dont play nice with my python3 install.) On Friday, April 24, 2015 at 5:07:59 PM UTC-4, Florian Apolloner wrote: > > > > On Friday, April 24, 2015 at 10:51:12 PM UTC+2, Matt Hooks wrote: >> >> (The behavior of the development server is similar to the test

Potentially inconsistent behavior between test client and normal WSGI requests

2015-04-24 Thread Matt Hooks
Hi all, As I was fixing an issue in our API related to url encodings, I noticed a problem should have been caught by a test that was somehow passing. (Remember, make sure your test can fail!) If you had some path /some/path/Spam%20Ham, and a URL pattern to capture /some/path/(?P.+)$, it's not

Feedback #24496 - Check CSRF Referer against CSRF_COOKIE_DOMAIN

2015-03-19 Thread Matt Robenolt
Ticket and patch have been submitted regarding this: https://code.djangoproject.com/ticket/24496 https://github.com/django/django/pull/4337 Since this is related to CSRF and technically weakening the strictness of the Referer check, Tim Graham suggested soliciting feedback here to get more eyeb

Re: Support byte range requests in django.views.static.serve

2014-06-30 Thread matt
Here is the commit for adding HTTP range support. I tested it in late versions of Chrome, Firefox, Opera and IE. https://github.com/satchamo/django/commit/2ce75c5c4bee2a858c0214d136bfcd351fcde11d The RangedFileReader class may be superfluous but I'm not aware of anything in Django or the Python

Re: DEPs: Django Enhancement Proposals

2014-04-28 Thread Matt
And DEP20 for Django philosophy :} https://docs.djangoproject.com/en/dev/misc/design-philosophies/ -- You received this message because you are subscribed to the Google Groups "Django developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-d

Re: Possible breakage of queryset week_day lookup - potential 1.6 release blocker?

2013-09-12 Thread Matt Austin
#x27; does appear to return the correct results. Thanks for investigating. -- Matt -- You received this message because you are subscribed to the Google Groups "Django developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+

Possible breakage of queryset week_day lookup - potential 1.6 release blocker?

2013-09-12 Thread Matt Austin
s the correct approach. Should an empty list be the desired behaviour, should an exception be raised, or should the old behaviour (which doesn't honour timezones) be maintained when tzinfo is not available? -- Matt m...@mattaustin.me.uk http://mattaustin.me.uk/ -- You received this message b

Re: Avoid unbounded memory consumption when running `manage.py test`

2013-08-02 Thread Matt McClure
On Thursday, August 1, 2013 3:50:33 AM UTC-4, Florian Apolloner wrote: > For Python >= 2.7 it should be CPython; for everything below the separate > unittest2 repository. > Thanks. Just closing the loop. Now there's a conversation[1] on python-dev which led to an existing ticket[2] that's alm

Re: Avoid unbounded memory consumption when running `manage.py test`

2013-07-31 Thread Matt McClure
report your findings to the upstream maintainers. > > That way if it's actually confirmed as an issue, the solution will benefit > much more people than people doing testing in Django. > Thanks for the lead, Ramiro. Is the ultimate upstream the CPython repository now? Or a

Avoid unbounded memory consumption when running `manage.py test`

2013-07-26 Thread Matt McClure
t_result.test_method)) +_XMLTestResult._test_method_name(test_result.test_id)) testcase.setAttribute('time', '%.3f' % test_result.elapsed_time) if (test_result.outcome != _TestInfo.SUCCESS): With these two changes, I can see memory fluctuate, increasin

ModelMultipleChoiceField, clean and to_python

2012-12-18 Thread Matt Hoskins
I describe as "untidy" rather than as a bug as I'm not clear whether the documentation on validation is suggesting fields should have a "to_python" method and/or whether it's reasonable to expect "to_python" methods (if they exist) on form fields should work.

Github tags

2012-10-28 Thread Matt Austin
Hi, Would it be possible to get tags for 1.3.3, 1.3.4, 1.4.2, and 1.5 alpha tagged on the github repository? The tagging seems to have fallen behind with these releases. Thanks, -- Matt -- You received this message because you are subscribed to the Google Groups "Django developers&q

Re: finding the source of "interesting" SQL queries

2012-10-22 Thread Matt McClure
Thanks, Russell. That's similar to the approach we were thinking of implementing. Hopefully we'll have a straw man to share shortly. Matt -- You received this message because you are subscribed to the Google Groups "Django developers" group. To view this discussion on

finding the source of "interesting" SQL queries

2012-10-22 Thread Matt McClure
t, an approach that the community would like to include in Django? [1]: http://nedbatchelder.com/blog/201008/global_django_requests.html -- Matt McClure http://www.matthewlmcclure.com http://www.mapmyfitness.com/profile/matthewlmcclure -- You received this message because you are subscri

Re: authentication by email

2012-03-08 Thread Matt Pegler
Sorry all, disregard my previous email, I misread one thing and completely missed Wim's original message. On Thu, Mar 8, 2012 at 11:07 PM, Matt Pegler wrote: > For the project I am working on, we solved this by making a custom > auth backend that checks the username against the e

Re: authentication by email

2012-03-08 Thread Matt Pegler
For the project I am working on, we solved this by making a custom auth backend that checks the username against the email column. We've found it to be a nice clean solution to wanting to use email addresses instead of usernames. On Thu, Mar 8, 2012 at 9:54 PM, Clay McClure wrote: > "Django is a

Re: Logging configuration and handle_uncaught_exception

2011-06-17 Thread Matt Bennett
On Fri, Jun 17, 2011 at 6:45 PM, Vinay Sajip wrote: > Matt Bennett writes: > >> >> > This is a case for a custom Filter object [1]. The filter object >> > implementation would only be a few lines, to reject logging when DEBUG >> > is True, and can be att

Re: Logging configuration and handle_uncaught_exception

2011-06-17 Thread Matt Bennett
> code paths, and the admin email handler itself can remain > general-purpose, but the backwards-compatible behavior can be maintained. > > Matt, if you'd be willing to open a ticket for this, that'd be helpful. > If you feel like putting together a patch using the Fil

Re: Logging configuration and handle_uncaught_exception

2011-06-14 Thread Matt Bennett
On Mon, Jun 13, 2011 at 9:53 PM, Vinay Sajip wrote: > On Jun 10, 2:05 pm, Matt Bennett wrote: > >> Is there a reason the call to logger.error can't come before we return >> the technical_500_response when DEBUG=True? It seems to me that the >> debug level should

Logging configuration and handle_uncaught_exception

2011-06-10 Thread Matt Bennett
rror is passed to the logger at all. Regards, Matt. [1] http://stackoverflow.com/questions/6305132/django-1-3-logging-500-errors-are-not-logged -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send em

I don't think #15289 has been fully fixed

2011-04-11 Thread Matt Hoskins
g off - a call has to be made to the object.__getattribute__ - so self.db and self.cursor would need to be fished out using that. I wasn't sure about reopening #15289 or raising a new ticket, so thought I'd post here to ask about the best course of action (assuming I'm spot on i

Re: Using OneToOneField in reverse from values or values_list is rejected with "Invalid field name" (repost)

2011-04-08 Thread Matt Hoskins
On Apr 7, 10:47 am, Julien Phalip wrote: > Hi Matt, > > Do you think this could be related > tohttp://code.djangoproject.com/ticket/11448 > ? > > If so, do the patches attached to that ticket help resolve your issue? > > Thanks, > > Julien Hi Julien, Tha

Re: Using OneToOneField in reverse from values or values_list is rejected with "Invalid field name" (repost)

2011-04-08 Thread Matt Hoskins
han the public API. Want me to log it as a bug and include the test that'll pass and some notes explaining what's gone on? (I can, and have, run the same test against Django 1.2.5 to prove the test fails where the problem hasn't been masked by the change to the call to add_fields).

Using OneToOneField in reverse from values or values_list is rejected with "Invalid field name" (repost)

2011-04-05 Thread Matt Hoskins
se of a reverse OneToOne then something along the lines of "if not allow_many and (m2m or (not direct and not isinstance(getattr(field,'field',None),OneToOneField))" instead could work to allow OneToOne reverses through in setup_joins when allow_many is False. Regards, Matt --

Re: Proposal: switch to HTML5 for bundled templates

2011-03-29 Thread Matt Harasymczuk
nfluence on our potential revenue sees pages like lynx does. If not support html5 features now before the 1.4 release, then mark support for ie6 like the XMLField, obsolete and on an accelerated deprecation schedule. I rest my case ;} -- Matt Harasymczuk http://www.matt.harasymczuk.pl -- Yo

Re: Proposal: switch to HTML5 for bundled templates

2011-03-29 Thread Matt Harasymczuk
/ I think we should join this movement, and provide modernizr, for example in conditional css tag It works for me, hence all should benefit from it. -- Matt Harasymczuk http://www.matt.harasymczuk.pl -- You received this message because you are subscribed to the Google Groups "D

Re: Django urls in JavaScript

2011-03-24 Thread Matt Robenolt
Ahh, I missed that from your original post. I like that. :) -- 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 unsubscribe from this group, send email to django-deve

Re: Django urls in JavaScript

2011-03-24 Thread Matt Robenolt
It could just be a combo of both. There'd be one file for the urlresolver.js, and a patterns.js. Interesting. Now, could the patterns in Python be translated to Javascript properly? I'll do some playing around today and see if I can come up with some basics. Even if this doesn't land in Django

Re: Django urls in JavaScript

2011-03-24 Thread Matt Robenolt
I think the biggest problem with translating the reverse() lookup is the lack of kwargs and named capture groups in Javascript regex. So a pattern such as: /page/(?P\d+)/ would not translate whatsoever. Then on the Javascript side, we wouldn't be able to use: reverse('goto_page', [], {page_id:

Re: Django urls in JavaScript

2011-03-24 Thread Matt Robenolt
There also proposes the problem of selecting which urls are "published" in this file and which aren't. Any ideas for that? I'm sure lots of people wouldn't want their entire sitemap exposed to the public in one large js file. -- You received this message because you are subscribed to the Googl

Re: Django urls in JavaScript

2011-03-24 Thread Matt Robenolt
So you're basically proposing to write a Javascript library that is a translation of URLResolver, and essentially have a dynamic "Javascript" file that could be included that would contain your URL patterns? Just trying to make sure we're on the same page. -- You received this message because

Re: Django urls in JavaScript

2011-03-23 Thread Matt Robenolt
How could this even begin to be solved without incurring another http request to resolve the url pattern? The only way I can imagine it is if we had a generic /resolve/ path that took some get parameters to return a full URL, or even it translate to a 301 redirect, but that'll get messy with PO

MEDIA, STATICFILES and ADMIN to dictionaries like CACHES and DATABASES

2011-03-23 Thread Matt Harasymczuk
I give you an example: BTW switch name from media to "useruploaded" or "uploaded", which IMHO is self explaining, hence MEDIA is not. STATICFILES = { 'uploaded' : { # old name MEDIA 'PREFIX' : '', 'ROOT': '', 'URL': '', }, 'admin': { 'PREFIX' : '', 'ROOT': '',

Re: secret key from file...

2011-03-22 Thread Matt Robenolt
s a nice little pattern that gets us by, but yes, things like this do show that there needs to be one overall "recommended" method for maintaining separate settings on a per server/environment basis. On Mar 22, 2011, at 7:05 PM, Ian Kelly wrote: > On Tue, Mar 22, 2011 at 4:49 PM, Ma

Re: secret key from file...

2011-03-22 Thread Matt Robenolt
Why not just do an import for your custom settings? try: from site_settings import * except ImportError: pass On Mar 22, 2011, at 5:51 PM, Ian Kelly wrote: > On Tue, Mar 22, 2011 at 6:44 AM, Kristaps Kūlis > wrote: >> I personally would greatly appreciate update in docs to sho

Re: secret key from file...

2011-03-21 Thread Matt Harasymczuk
Thats right, there should be a secret_settings.py file with db credentials and secret_key also a warning that it should not be added to version control -- Matt Harasymczuk http://www.matt.harasymczuk.pl On Mar 21, 5:07 pm, Kristaps Kūlis wrote: > "real" config should not be in ve

Re: secret key from file...

2011-03-21 Thread Matt Robenolt
What we use is a settings.cfg, which is an ini file for global configurations. Database settings, etc. We need to share these settings across different languages and parts of our application. You can set up your ini file as such: [secret] key=abcdefghijklmnopqrstuvwxyz0123456789 ini files are

secret key from file...

2011-03-21 Thread Matt Harasymczuk
What do you think? IMHO both this ways are good -- Matt Harasymczuk http://www.matt.harasymczuk.pl -- 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 unsubsc

Re: Default project layout / directory structure

2011-03-21 Thread Matt Harasymczuk
/__init__.py imports all models. It works like a charm. I think it should be by default :} I created skel/django/project and skel/django/app folders, where I have this file structure when I start project I simply copy folder, rename it, and adjust -- Matt Harasymczuk www.matt.harasymczuk.pl -- You

Re: HTTP methods in urls.py

2011-03-21 Thread Matt Harasymczuk
e per view -- Matt Harasymczuk www.matt.harasymczuk.pl On Mar 21, 8:44 am, Russell Keith-Magee wrote: > On Mon, Mar 21, 2011 at 9:09 AM, haras.pl wrote: > > It would be nice to have possibility to distinguish a HTTP method in > > urls.py. IMHO it would be clearer and more

Using OneToOneField in reverse from values or values_list is rejected with "Invalid field name"

2011-01-31 Thread Matt Hoskins
the case of a reverse OneToOne then something along the lines of "if not allow_many and (m2m or (not direct and not isinstance(getattr(field,'field',None),OneToOneField))" instead could work to allow OneToOne reverses through in setup_joins when allow_many is False. Regards, Ma

Re: Django, The Web Framework for perfectionists and innovative with rechargeable batteries.

2010-07-30 Thread Matt Boersma
On Fri, Jul 30, 2010 at 2:57 PM, Jerome Leclanche wrote: > [2] People who do have ideas and do write code, but still get rejected > because their ideas don't conform to whatever the core devs need in > their websites. I don't think that's a fair criticism at all. > ... > Nice job scaring that po

Re: Make "required=True" on forms.fields.NullBooleanField do something useful?

2010-06-17 Thread Matt Hoskins
is set to True doesn't mean that False now is not of the correct data type for BooleanField) so to_python shouldn't be doing this check. I think it's probably an oversight as the code that's now in "to_python" on BooleanField in 1.2 is what was in "clean" in 1.

Re: Make "required=True" on forms.fields.NullBooleanField do something useful?

2010-06-17 Thread Matt Hoskins
the default and thus the default value would be valid so the user could just hit submit without interacting with the field, whereas if the selection list includes "Unknown" and defaults to that, the user has to interact with the field and change it to "Yes" or "No" to pa

Re: Make "required=True" on forms.fields.NullBooleanField do something useful?

2010-06-17 Thread Matt Hoskins
For the reasons I gave in my explanation above - which bit isn't clear? > If you require a "Yes" or "No" choice, why do you use a > NullBooleanField in the first place and not a BooleanField ? > > George -- You received this message because you are subscribed to the Google Groups "Django develo

Make "required=True" on forms.fields.NullBooleanField do something useful?

2010-06-17 Thread Matt Hoskins
change would be in to_python in the latter to check in the case where it would return None if self.required is true and raise the validation error if that's the case (i.e. similar to what BooleanField.to_python does for values of False). Matt -- You received this message because you are subscr

Re: Decision required: PostgreSQL minimum versions

2010-06-09 Thread Matt Hoskins
> If we'd thought of it, dropping 7.4 support in 1.2 would have been the > right thing to do. However, retroactively doing so now would be abuse > of the time machine privileges and I'd like to avoid being grounded. > #1's not worth the effort, so that just leaves #2, which sounds about > right to

Re: Decision required: PostgreSQL minimum versions

2010-06-09 Thread Matt Hoskins
out it being a known issue just because the change in m2m saves means that users (like me) who have a combination of a longish model name and a longish m2m field name will find things break on upgrading from 1.1 to 1.2 so you'd want to warn them off doing so! Matt -- You received thi

Re: Progressing #8901 "last_insert_id() for postgres fails when the autoincrement sequence name is too long"

2010-06-03 Thread Matt Hoskins
it - I was just wanting to make sure my updated patch was on someone's radar to get looked at eventually so it's great to hear you've picked it up (it's not urgent at all for me - just thought I'd check before it slipped my mind :). Hope you're having some luck getti

Re: Progressing #8901 "last_insert_id() for postgres fails when the autoincrement sequence name is too long"

2010-06-03 Thread Matt Hoskins
get the ticket moved along (and whether my tests are sufficient and in a good enough place in the test suite). Regards, Matt On May 25, 12:00 pm, Matt Hoskins wrote: > I think (from squinting at the code) that in Django 1.2 m2m field > updates now use the object save code to add relati

Progressing #8901 "last_insert_id() for postgres fails when the autoincrement sequence name is too long"

2010-05-25 Thread Matt Hoskins
've noted on the issue, although maybe I should flag it thus). Regards, Matt -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-develop...@googlegroups.com. To unsubscribe from this gro

Re: dbsettings, and user configurable app settings

2010-03-10 Thread Matt Boersma
On Wed, Mar 10, 2010 at 7:51 AM, Brian Rosner wrote: > > On Mar 10, 2010, at 7:16 AM, Joan Miller wrote: > >> It's a disaster from the maintenance view point. If it were not so, >> then people would not be proposing to refactor the settings as has >> been made in Pinax, or from multiple posts so m

Re: why last_login in django.contrib.auth.models.User cannot be null?

2009-12-15 Thread Matt Schinckel
> on this field not being null? > What isn't clear is that this value must be after 1900: I had used a value of datetime(1,1,1,0,0) as "never logged in", but this fails with password reset. Matt. -- You received this message because you are subscribed to the Google Groups &q

Re: why last_login in django.contrib.auth.models.User cannot be null?

2009-12-15 Thread Matt Schinckel
en logs in. This could occur if a person creates password reset requests for a user that is not themself. Matt. -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-develop...@googlegroups.com

Re: Feature Request: Reinteract

2009-11-27 Thread Matt Schinckel
On Nov 27, 10:07 pm, noel wrote: > I really love this application Reinteract. Its an enhancement to > Python Interactive Shell. And it would be lovely if I can use > Reinteract with manage.py shell. Have a look at bpython. I have a command set up where I can run ./manage.py bshell And I get a

Re: Adding signing (and signed cookies) to Django core

2009-10-06 Thread Matt Brubeck
On Oct 5, 1:44 pm, Simon Willison wrote: > Other than dates being a bit more annoying to pass around, I really > don't think that telling people they can only dumps/loads JSON- > encodable data would be a huge burden. You could use YAML instead if you want date support... although JSON does seem

Re: Adding signing (and signed cookies) to Django core

2009-10-05 Thread Matt Brubeck
On Sep 24, 10:18 am, Simon Willison wrote: > This offers two APIs: sign/unsign and dumps/loads. sign and unsign > generate and append signatures to bytestrings and confirm that they > have not been tampered with. dumps and loads can be used to create > signed pickles of arbitrary Python objects.

Check Constraints for databases that support them

2009-09-26 Thread Matt Schinckel
I'm very interested in the idea of expanding the database level constraints that can be supplied to a database schema, and also automatically apply the same constraints to the model/view in django. The various backends that support them, I believe already apply such constraints for PositiveIntege

Re: Check Constraints for databases that support them

2009-09-26 Thread Matt Schinckel
, which I have just started using for migrations. It doesn't have anything in there that is that useful, other than raw SQL. Which can do those type of things, but it is nicer to move into the declaration. Matt. --~--~-~--~~~---~--~~ You received this me

Re: Oracle savepoints

2009-05-16 Thread Matt Boersma
On Sat, May 16, 2009 at 1:42 PM, Richard Davies wrote: > > My question is effectively the same as asking if the test suite passed > on Oracle between [8314] in August 2008 and [10022] in March 2009. > > I assume that it must have passed during those six months (Django 1.0 > was [8961] in Septembe

Re: Is the Oracle backend passing the model_forms_regress test?

2009-05-06 Thread Matt Boersma
On May 6, 2009, at 8:50 PM, Karen Tracey wrote: > On Wed, May 6, 2009 at 10:34 PM, Leo Soto M. > wrote: > > While testing the django-jython oracle backend I get an ugly failure > on model_forms_regress, Yes, I saw this too. I'll check in a fix tomorrow a.m. if no one beats me to it. >

Re: [PATCH] Trivial typo in testing documentation

2009-03-07 Thread Matt Doran
Done. http://code.djangoproject.com/ticket/10433 On Sun, Mar 8, 2009 at 3:20 PM, Matt Doran wrote: > Thanks Malcom. > > Will do. I saw the patch contribution guidelines, but wasn't sure if a > ticket was required for such a trivial patch. > > Matt > > > On Sun,

Re: [PATCH] Trivial typo in testing documentation

2009-03-07 Thread Matt Doran
Thanks Malcom. Will do. I saw the patch contribution guidelines, but wasn't sure if a ticket was required for such a trivial patch. Matt On Sun, Mar 8, 2009 at 2:54 PM, Malcolm Tredinnick wrote: > > On Sun, 2009-03-08 at 14:19 +1100, Matt Doran wrote: > > Hi all, >

[PATCH] Trivial typo in testing documentation

2009-03-07 Thread Matt Doran
Hi all, Attached is a trivial patch for a typo in the testing documentation. Regards, Matt --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email

Re: Controlling form/widgets output

2009-01-22 Thread Matt Boersma
On Jan 22, 2009, at 9:23 PM, catsclaw wrote: > > On Jan 22, 12:12 am, Jacob Kaplan-Moss > wrote: >> Why don't we start over here: what is the problem? What did you try >> do >> do? What did you expect to happen? What actually happened? > > Here's another problem I'm stuck at. I'm trying

Re: Testing speedup checked in

2009-01-16 Thread Matt Boersma
ce in helping Ian Kelly and I to keep the Oracle backend in shape. Matt On Jan 16, 8:17 am, "Karen Tracey" wrote: > On Fri, Jan 16, 2009 at 9:43 AM, Alex Gaynor wrote: > > PgSQL is indeed PostgreSQL.  Yes, I do still get the failures pre-fast > > tests, I guess I

Re: Using pysqlite2 instead of sqlite3 when desired

2008-11-24 Thread Matt Hancher
n is, what should the configuration option look like? Here are two options: 1: SQLITE_MODULE_NAME = 'pysqlite2' 2: DATABASE_OPTIONS = {'module': 'pysqlite2'} 3: USE_PYSQLITE2 = True 4: # Other Preferences? My current vote is option 2, because it does not introd

Non-trivial patches question, + whether mine qualifies

2008-11-18 Thread Matt Brown
I have a bit of confusion about how possibly "non-trivial" patches are supposed to be handled. Common practice here seems to be that if someone wants to propose a change and has a patch ready, they open a ticket first and then a discussion here. The docs indicate that if the patch is non-trivial

Re: Multi-Threaded Dev Server

2008-11-17 Thread matt westerburg
Is there any documentation as to why Django is not threadsafe? It just seems to me that with the Global Interpreter Lock and all, it would be threadsafe. I don't intend to start a flame, I am just curious about learning why this might be. I am favor of the mutlitprocess approach layed out by Lud

Re: #7611 contrib.auth PasswordResetTest requires specific templates for tests to pass

2008-11-10 Thread Matt Brown
used by ChangePasswordTest, to ensure that the correct templates are used during the test. - Matt Brown --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send

Re: Absolute paths in settings.py

2008-10-30 Thread matt westerburg
I would like to see this, it seems to be an idiom that most people use. I know i have to implementent that exact same thing for every project I have ever done with django. On Thu, Oct 30, 2008 at 1:34 PM, Ole Laursen <[EMAIL PROTECTED]> wrote: > > Hi, > > There are a couple of things in settings

Re: Oracle IntregrityError and get_or_create test case -- MySQL also

2008-08-25 Thread Matt Boersma
On Aug 25, 10:51 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > I just noticed that the MySQL backend also fails on this get_or_create > test.  It is returning an OperationalError instead of an IntegrityError. > Looks like MySQL returns errno 1364 (ER_NO_DEFAULT_FOR_FIELD) in this case > but this

Re: Oracle IntregrityError and get_or_create test case

2008-08-25 Thread Matt Boersma
side the oracle backend. Let me know if you think that's acceptable. On Aug 23, 10:47 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Sat, 2008-08-23 at 08:07 -0700, Matt Boersma wrote: > > [...] > > > However, I grep'ed the Django source and found t

  1   2   >