Re: #25582: Add a way to build URLs with query strings

2015-11-14 Thread Tino de Bruijn
Would it be an idea to have QueryDict accept a dictionary to construct it? Then you could use it’s urlencode method to create the querysting. Seems like a logical place to implement this to me. Tino > On 09 Nov 2015, at 14:30, Merijn Bertels wrote: > > I think would be a good th

Re: Making the test suite run faster

2015-08-30 Thread Tino de Bruijn
--keepdb flag Thanks, Tino On Mon, Aug 31, 2015 at 8:13 AM, Aymeric Augustin < aymeric.augus...@polytechnique.org> wrote: > On 31 août 2015, at 06:12, Andrew Godwin wrote: > > > I'm on board merging this without Oracle support - if I understand > right, it means we just have

Re: Future of the development server's auto-reloading

2015-08-09 Thread Tino de Bruijn
edge-case than typing a typo). There is also watchdog [1], which also seems to work on Windows. It does contain some C for OS X FSEvents bindings. Tino On Sat, Aug 8, 2015 at 11:53 PM, Aymeric Augustin < aymeric.augus...@polytechnique.org> wrote: > Hello, > > While writing some h

Re: django.channels: "async" for Django

2015-07-02 Thread Tino de Bruijn
Hi Andrew, >From reading your proposal, I really like this idea. I did not got around to trying django-channels yet, but it will in August when I start a new project (it's a PoC, so I can try out new stuff :). I hope to be able to give you more feedback then! Thanks so far, Tino On Th

Re: URL dispatcher API

2015-05-17 Thread Tino de Bruijn
, blog_index) -> blog_resolver -> patterns be the replacement of the urlpatterns below? Because I think the latter is a lot more readable. Do you have an example of something that is easy to do with this API that is hard or impossible with the current API? Thanks, Tino On Sun, May 17, 2015 at 2

Re: Idea/request for help: Django Developers Community Survey

2015-04-27 Thread Tino de Bruijn
es. Please enter that information below.") is a little oddly constructed... Tino On Mon, Apr 27, 2015 at 10:32 AM, Mark Bailey wrote: > I think the survey is a great idea. > > Following on from Shai's question "one big project, or many small > ones?"... I am

Re: Password validation in Django revisited

2015-03-11 Thread Tino de Bruijn
Hi Erik, I like the way this is going! I do want to emphasise the point that Josh made: you have to be able to aggregate all ValidationErrors, otherwise things can become quite frustrating. (Try to change your Skype password and you know why...) Tino On Wed, Mar 11, 2015 at 1:44 AM, Josh

Re: Suggestion: add default "registration/login.html" to django.contrib.auth

2015-03-03 Thread Tino de Bruijn
Yeah, or default to admin/login.html. The admin ships with all necessary "registration" templates, but for some reason only the login.html is included in the admin directory. On Tue, Mar 3, 2015 at 2:05 PM, Ilya Kazakevich wrote: > Hello, > > When I use Django auth, I need to provide login.html

Re: Feature proposal: Conditional block tags

2015-02-18 Thread Tino de Bruijn
d probably use it in the sense of "only include this block if", or "if a, block, else block b". Redefining the content block does not seem to make sense to me in those cases. Tino -- You received this message because you are subscribed to the Google Groups "Django d

Re: Drop the TEMPLATE_DEBUG setting

2015-02-15 Thread Tino de Bruijn
+1, sounds logical to me. On Sun, Feb 15, 2015 at 4:42 PM, Marc Tamlyn wrote: > +1 to removing it > On 15 Feb 2015 14:16, "Aymeric Augustin" < > aymeric.augus...@polytechnique.org> wrote: > >> Hello, >> >> During the multiple template engines refactor, I didn’t touch >> TEMPLATE_DEBUG. >> The on

Re: Fellow Report - January 16, 2015

2015-01-23 Thread Tino de Bruijn
he feeling Django development has made a lot more continuous progress these last months. Tino On Tue, Jan 20, 2015 at 1:46 PM, Josh Smeaton wrote: > Definitely. I don't think any of the patches I've written have sat without > review for longer than a day or two. The turn around on f

Re: status of 1.8 release blockers

2015-01-12 Thread Tino de Bruijn
Congratulations! Looks like you've steadily moved it through. Tino On Tue, Jan 13, 2015 at 3:25 AM, Tim Graham wrote: > We did it -- all features are in or out for alpha. Please consider master > frozen for new features until we cut the stable/1.8.x branch later this > week

Re: Form Model Validation Error

2014-11-09 Thread Tino de Bruijn
link to it. Tino On Sun, Nov 9, 2014 at 7:54 PM, Aman Kumar wrote: > i am trying the save the date using formmodel but it is giving error "The > Course could not be changed because the data didn't validate." > i attched themodel.py ,form.py and view.py > > -- >

Re: feature request - use logging in WSGIRequestHandler

2014-05-29 Thread Tino de Bruijn
`django.security`[1]? And it appears colouring log messages is possible with a custom formatter [2]. +1 from me to have more control over the output of the devserver. Tino [1] https://github.com/django/django/blob/778ce245dd466bce1b19f89e52cf9ed8f1b46513/django/utils/log.py [2] http://stackove

Re: Should there be a "is" comperator: {% if A is B %}?

2014-04-10 Thread Tino de Bruijn
Wouldn't this be easier?: {'required': "", 'name': 'fieldname'} => {% for name, value in attrs.items %} {{ name }}{% if value %}="{{ value }}"{% endif %}{% endfor %} Tino On Wed, Apr 9, 2014 at 11:53 PM, Gregor Müllegger wrote: &g

Re: Should AdminSite be able to handle different namespace?

2013-11-22 Thread Tino de Bruijn
;. Is this the right usage? Tino On Fri, Nov 22, 2013 at 2:18 PM, German Larrain wrote: > On Thursday, November 14, 2013 12:55:32 PM UTC-3, Amirouche Boubekki wrote: >>> >>> >>> 2013/11/14 Florian Apolloner >>> >>> We might have to fix the docs th

Re: Creating a minimal custom user model. Seems last_login is required. Should it be?

2013-10-21 Thread Tino de Bruijn
On Mon, Oct 21, 2013 at 2:13 AM, Russell Keith-Magee < russ...@keith-magee.com> wrote: > > On Mon, Oct 21, 2013 at 7:17 AM, Tino de Bruijn wrote: > >> >> On Mon, Oct 21, 2013 at 12:25 AM, Harry Percival < >> harry.perci...@gmail.com> wrote: >> &g

Re: Creating a minimal custom user model. Seems last_login is required. Should it be?

2013-10-20 Thread Tino de Bruijn
a look at django-authtools[1]. The last_login field will still be there, but it saves you quite some lines of code, and it is not like that little database column is gonna cost you. (I know, it feels impure. I had that feeling for quite a while too, but hé, practicality beats purity :). Tino [0] htt

Re: Working towards a simpler GCBV implementation?

2013-10-05 Thread Tino de Bruijn
On Thu, Oct 3, 2013 at 11:09 AM, Tom Christie wrote: > * If a simpler GCBV implementation along the lines of django-vanilla-views > is something we think we should working towards. > Hells yes, +1. I love CBV, but when it gets a little more complex, I get dazzled. > * What approaches we might b

Re: Add strutctured settings module to django 1.7?

2013-10-02 Thread Tino de Bruijn
ng environment variables as a > source of configuration gives you that you cannot do using a python > configuration file and it makes your configuration management messy > and chaotic. > Well, it makes my code deployable anywhere where I can run python and have the necessary resources,

Re: Add strutctured settings module to django 1.7?

2013-10-01 Thread Tino de Bruijn
ython port of Foreman (that what Heroku uses) is a procfile based application manager that also loads variables from .env files is also a way to pick those up, if you run on Heroku for production for example. Tino [1]https://github.com/jezdez/envdir [2]https://github.com/nickstenning/honcho On Sat, S

Re: Not calling things twice in templates

2013-06-05 Thread Tino de Bruijn
for a template author to evaluate it twice. If that didn't happen, *{% with %}* still exists. I don't see any other suggestions add in clarity, or make for significantly less code. - Tino -- You received this message because you are subscribed to the Google Groups "Django develope

Re: ClearableFileInput doesn't render a currently value when invalid

2012-11-12 Thread Tino de Bruijn
and was referenced a few weeks ago on this mailinglist ([2]). Feel free to comment on that ticket if you have new insights or a patch. [1] https://code.djangoproject.com/ticket/19215 [2] https://groups.google.com/d/topic/django-developers/3lpFZ380dzQ/discussion Regards, Tino -- You received this message becau

Re: Custom user models in 1.5, not flexible/dry enough?

2012-11-07 Thread Tino de Bruijn
the notion that you have to add the USERNAME_FIELD yourself. Regards, Tino On Wed, Nov 7, 2012 at 10:04 AM, Florian Apolloner wrote: > Hi Alex, > > > On Tuesday, November 6, 2012 11:55:39 PM UTC+1, Alex Ogier wrote: >> >> So, I went ahead and implemented the most u

Re: A.objects.getdefault

2012-10-09 Thread Tino de Bruijn
+1 on a method that returns non upon not finding. We don't need to do: try: val = some_dict.get('key') except KeyError: val = None either. A nget or get_or_none would save me a lot of boilerplate code in my views as well. Tino On Tue, Oct 9, 2012 at 8:48 PM, Wim Feijen w

Re: authentication by email

2012-03-09 Thread Tino de Bruijn
My django-email-login app ( https://bitbucket.org/tino/django-email-login/overview) does this by putting a hash of the email adress in the username field. It isn't as nice as it could be, but it works. I would really like to see this solved another way, but it is a hard problem with the cu

Re: Class based views: A standard hook for http-method-independent code

2012-03-04 Thread Tino de Bruijn
. What is wrong with overriding dispatch and calling super? (Or not, if you don't want to progress in the view) Tino On Fri, Mar 2, 2012 at 18:15, Jonathan French wrote: > That's not the case - get_context_data, get_queryset, are examples of > hooks like this preprocess one, not

Re: Cleaning up manage.py and import paths

2011-10-11 Thread TiNo
to the path that is provided so I can pass 'mysite.settings.production' for example? And if it's not provided, listen to DJANGO_SETTINGS_MODULE for backwards compatibility. Tino -- You received this message because you are subscribed to the Google Groups "Django developers

Re: Should I split ticket #16502 in three tickets or not?

2011-09-16 Thread TiNo
method things should be allright in my opinion. Tino 2011/9/16 Silver_Ghost > I've already started on splitting patches so let me finish a work and > separate tickets :) > > As I understand the problem, there should be patch without addition of > `get_model` to resolve #16502 wi

Re: Should I split ticket #16502 in three tickets or not?

2011-09-16 Thread TiNo
empty list of templates. Tino On Thu, Sep 15, 2011 at 21:51, Aymeric Augustin < aymeric.augus...@polytechnique.org> wrote: > Hello, > > Yes, I think ticket #16502 should focus on the problem of CreateView: why > doesn't it have a default template and does it need one? &

Re: Forced password reset in django-admin

2011-06-29 Thread TiNo
'new account created' email, or creates a link to 'activate account'/'pick your password'? This is one of the biggest hurdles I usually have with the admin and giving other people accounts, let alone having somebody not used to django be the superuser or main admin. Tin

Re: Help review tickets, get a prize!

2011-04-26 Thread TiNo
bug is a > problem. Perfect is the enemy of the good, and all that. > > All in all, I'd guess that of the "bug" category tickets I see I need > to take the time to reproduce about half of them. Maybe 2/3rds. > > Jacob Hi, Thanks to both of you for the write ups. It

Re: Help review tickets, get a prize!

2011-04-20 Thread TiNo
ind sharing your workflow? Any scripts to create environments at certain revisions or something alike? Or to quickly run the relevant tests? Thanks, Tino -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group,

Re: Wrong error message when user having is_staff=False tries to login to admin

2011-03-13 Thread TiNo
+1 for giving a correct message. It has bitten me more than once, and I really don't think it would make any attack harder. The information you would give is the same information that can be acquired by logging in to the main site first, and then trying to log in to the admin site. So at the momen

Re: Proposal: Meta.required_together

2010-10-04 Thread TiNo
Sorry I didn't reread this thread, or remembered it after my previous post. I just replied to clearify my previous post. Tino On Mon, Oct 4, 2010 at 02:57, LookMa NoSQL wrote: > Tino, are you joking? Did you even bother to read the OP's proposal. I > think there is a real lack

Re: Proposal: Meta.required_together

2010-10-03 Thread TiNo
re many possibilities for validating a model, and at the moment we have quite some good tools for them. Adding another Meta option for a small portion of the cases doesn't seem so necessary to me... Anyway, that's just my 2c. TinO On Sun, Oct 3, 2010 at 05:58, LookMa NoSQL wrote: &g

Re: Proposal: Meta.required_together

2010-10-02 Thread TiNo
Hi, Isn't this covered by model validation [1]? Tino [1] http://docs.djangoproject.com/en/dev/ref/models/instances/#validating-objects On Fri, Oct 1, 2010 at 15:59, hejsan wrote: > Hi. > I just filed a feature request on the same or similar issue, and this > thread was

Re: Custom template tag with boolean parameter?

2010-08-08 Thread TiNo
On Sun, Aug 8, 2010 at 00:19, adambossy wrote: > I have a custom template tag that looks like so: > > @register.inclusion_tag('bar.html') > def foo(b=None) >return locals() > > The variables b is a boolean. How do I pass a boolean to it from the > django template? > {% foo 0 %} or {% foo 1 %

Re: Feedback for #13849 (csrf referer checking)

2010-06-29 Thread TiNo
f the page) or http://vimeo.com/7618090 from 2:45' Just my 2 cents, Tino -- 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

Re: Proposal: Replace django.contrib.formtools.wizard

2010-05-30 Thread TiNo
just use python's *tempfile.NamedTemporaryFile*[1]? That way the file will get cleaned by the filesystem itself, unless you move it somewhere else in your ``done`` method. If you pass delete=False, you will be able to open the file again in the last step, as long as you properly closed it b

Re: Translation patch and the I18N mailinglist

2010-01-26 Thread TiNo
On Tue, Jan 26, 2010 at 11:04, Jannis Leidel wrote: > Am 25.01.2010 um 23:06 schrieb TiNo : > > > Hi, >> >> I posted a message [1] to the Django I18N list on the 28th of December. >> Apparently, it is also the last message to that list. Is the I18N list dead? >

Re: Translation patch and the I18N mailinglist

2010-01-26 Thread TiNo
On Tue, Jan 26, 2010 at 01:55, Russell Keith-Magee wrote: > On Tue, Jan 26, 2010 at 6:06 AM, TiNo wrote: > > Hi, > > The reason I posted there was to see if anybody had any objections to the > > one-liner patch [2] I suggested for a dutch translation that is wrong at >

Re: [GSOC] Altering the signature of Field.db_type and Field.get_db_prep_*

2009-07-30 Thread TiNo
ible, but what about: get_prep_db_value(self, value, connection=default_connection) ? Wouldn't that accepts both current and new parameters? Just my 2c, TiNo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gr

Re: DB Fields: reserved_names

2009-07-30 Thread TiNo
and write some tests, so I made an ExcludeField :D. See: http://dpaste.com/hold/73186/ When Honza's modelvalidation is usable, that will probably be better, but you might be able to use this in the mean time. TiNo --~--~-~--~~~---~--~~ You received this message

Re: suggestion for ticket #8618, Many-to-many intermediary with multiple foreign keys

2008-10-06 Thread TiNo
through sounds a little odd to me, as Vacation is the table 'through' which the m2m is made. Shouldn't it be 'in_between' or something the like here? (As Vacation is kind of 'in between' Person and Location) just my 2p. TiNo On Mon, Oct 6, 2008 at 2:44 AM,

Re: Non editable fields in admin

2008-07-04 Thread TiNo
How about creating a widget that just displays the data? Then override the form and use this widget instead of the default widget. On Fri, Jul 4, 2008 at 6:14 PM, Alex Rades <[EMAIL PROTECTED]> wrote: > Hi, > I'm writing an application which makes a pretty heavy use of the > newforms-admin admini