Re: RFC: Django 1.0 roadmap and timeline

2008-06-14 Thread Charlie
I'm curious if there are any plans to support simple urls for "RESTful resources" in Django, especially before the 1.0 release. See discussion here: http://lethain.com/entry/2008/jun/13/a-django-anti-pattern-rolling-your-own-rest/ --~--~-~--~~~---~--~~ You received

Re: When your settings module causes an `ImportError`

2010-05-17 Thread Charlie Nolan
It seems to me like the biggest problem with a settings module not importing is that it's not safe to display a full error message about that file. You can't tell if DEBUG is on, and there may well be information in the settings that is a Bad Idea to leak on a production server. Also, as a friend

Re: django template revision (for 1.4?)

2010-05-26 Thread Charlie Nolan
I'm mostly just a user, and maybe I'm being dense, here, but I just don't see the point of this change. Why is {%%} any harder a syntax than {{{}}} is? Is it an issue of key placement (% is shift-5 for US keyboards)? And why would you type {%%} and then go back to insert the keyword when you can

Re: django template revision (for 1.4?)

2010-05-26 Thread Charlie Nolan
g {% > stuff %}. > > i guess i'll spend more time studyin' pydev.  switching editors every > weekend kinda sucks, and generally with autocomplete I prefer things > to just work. > > @Mike: didn't even know people were including Latex within Django.. I > don

Re: django template revision (for 1.4?)

2010-05-27 Thread Charlie Nolan
My apologies, I did not intend to trigger an offtopic discussion, even a semi-related one. My intent was merely to point out that Django's templating system is far from perfect, and that improving it is definitely a goal of Django, even if we reject a particular change that may appear to be for th

Re: Trac version field

2010-05-27 Thread Charlie Nolan
My interpretation of the "version" field is "the most recent version in which the problem has been confirmed". If a user spots something in an older version, it could be fixed or made irrelevant in SVN, leading to a search for a problem which doesn't exist. By that interpretation, updating the ve

Re: Trac version field

2010-05-27 Thread Charlie Nolan
> That doesn't make any sense since a fixed bug would be closed. Not until after time is spent trying to reproduce/understand the bug. If you know when it was last seen, you can confirm that you are triggering it correctly, but that it no longer exists in the current version. >> interpretation, u

Re: GSOC 2010: App Loading - Week 1

2010-05-28 Thread Charlie Nolan
I think that http://code.djangoproject.com/ticket/13480 may be relevant to your interests. -FM On Fri, May 28, 2010 at 8:22 AM, Arthur Koziel wrote: > Hey there, > > my name is Arthur Koziel and I'll be working on the app loading refactor for > this year's gsoc program. I'm currently a business

Proposal: Nice(r) error messages when a user-provided module fails to load

2010-06-01 Thread Charlie Nolan
It was suggested in bug #13480 that I raise this issue "during the 1.3 feature discussion phase", which we seem to have entered. Essentially, the issue is that a typo in my_app/views.py or any of its dependencies can raise an error on module import and break the entire site, leaving the user with

Re: Proposal: Nice(r) error messages when a user-provided module fails to load

2010-06-03 Thread Charlie Nolan
On Thu, Jun 3, 2010 at 4:38 AM, Russell Keith-Magee wrote: > [...] > Regarding #13480 specifically -- I haven't dug into the problem in > detail, but the approach of telling exceptions apart by inspecting the > number of arguments doesn't fill me with joy. One of the changes in > 1.2 was to improv

Re: Decision for ticket #6362 - Remove blank spaces with strip when validating the data

2010-06-03 Thread Charlie Nolan
I tend to agree that #6362 should be reconsidered. Realistically speaking, almost all form fields aren't going to want leading or trailing spaces. The default case, therefore, should strip them, while allowing the app writer to override that behaviour in the small minority of cases where the whit

Re: Bitwise operations in QuerySets?

2015-03-16 Thread Charlie Hayes
How do you evaluate if something is common enough to warrant inclusion? -Charlie On Tuesday, October 30, 2007 at 9:14:09 PM UTC-5, Malcolm Tredinnick wrote: > > On Tue, 2007-10-30 at 17:03 -0400, George Vilches wrote: > > What I want to do: Assume I have an integer column in

Use cases for a OneToMany field

2011-04-27 Thread Charlie DeTar
Django supports many-to-one relationships -- the foreign keys live on the "many", and point to the "one". So, in a simple app where you have Comments that can get Flagged, one Comment can have many Flag's, but each Flag refers to one and only one Comment: class Comment(models.Model): text = m

new Open Layers map widget for use in/out of admin

2009-04-18 Thread Charlie DeTar
et". Under the hood, it uses a standalone javascript WKT <-> OL map translator that strips some of the magic of the current contrib.gis.admin implementation, and a django app with some pretty light-weight django classes to integrate with forms an

Re: new Open Layers map widget for use in/out of admin

2009-05-14 Thread Charlie DeTar
ckar...@googlemail.com wrote: > Wow, excellent job! > > I've tested olwidget successful on my OpenWebGIS Project (Visit > http://gka.homelinux.org, Login: demo demo) > > But I have some questions, how can I reach you? Feel free to email me at this address. (cha..

code style and external library

2009-07-26 Thread Charlie DeTar
7440e5dc4f12c11e90ec7b34cfe95eca42fb32de/doc/doc.rst#common-options thanks, Charlie --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-de

Re: code style and external library

2009-07-28 Thread Charlie DeTar
Russell Keith-Magee wrote: > On Mon, Jul 27, 2009 at 9:12 AM, Charlie DeTar wrote: >> Hi, >> >> I'm writing a reusable Django app that interfaces with a standalone >> javascript library, which I hope eventually to submit for inclusion in >> Django. I&#

Resolved: wontfix is not productive

2016-07-26 Thread Charlie Hayes
plete, let someone take over or explain what else needs to be implemented before acceptance is gained. Closing it as won't fix is irrational and discourages the community (and adoption of the framework). -Charlie PS: I can't add this as a comment to the ticket because: <https://lh

Re: [Jython-dev] django on jython (new version)?

2007-09-23 Thread Charlie Groves
, that code complains about the lack of __unicode__ under CPython or Jython with your changes in place, so I must be missing something. Charlie On 9/21/07, Tristan King <[EMAIL PROTECTED]> wrote: > Ok I've been working on the problem quoted at the end of this email and have &g

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

2012-03-02 Thread Charlie "meshy" Denton
I'd like to see something like this too: my suggestion is here: https://gist.github.com/1957251 This implementation also allows you to play with the request, args and kwargs before they are saved on the model. On Mar 1, 6:38 pm, Marc Tamlyn wrote: > Hi all, > > Apologies if this has been raised

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

2012-03-02 Thread Charlie "meshy" Denton
I would like to see something like this too. I my suggestion is here: https://gist.github.com/1957251 This method has two advantages: 1. You can modify the request, args, and kwargs before they get saved to the view. 2. You can execute code after request, args, and kwargs are saved but before t

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

2012-03-04 Thread Charlie "meshy" Denton
Firstly, please excuse my double post: I didn't realise posts are vetted, so I thought it had been lost. The very significant advantage of this being a hook (instead of overriding dispatch) is that it allows you to call methods that require dispatch to have already set variables (eg: self.kwarg