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

2015-11-24 Thread Rob Hudson
At Mozilla we've used a jinja2 template filter called 'urlparams' for quite some time. You can see the code in jingo here: https://github.com/jbalogh/jingo/blob/master/jingo/helpers.py#L116 In Python: urlparams(reverse('translate', kwargs={'slug': document.slug}), to_locale=locale) In Jinja2 temp

Re: User_logged_in signal

2011-01-09 Thread Rob Hudson
I opened bug: http://code.djangoproject.com/ticket/15043 I actually stumbled on this just a few days ago while trying to put a session_key to user ID mapping into Redis upon login and was stumped for awhile why it didn't match the session key of my logged in user. -Rob On Sun, Jan 9, 2011 at 10:

Re: FK Autocomplete Widget [GSoC '09 Admin UI Improvements]

2010-06-02 Thread Rob Hudson
If I recall correctly, there's another branch on the that project that was refactoring the autocomplete widgets so that there were essentially 2 widgets: A widget intended to be used in your own Django code, and an admin widget that was a subclass for use in the admin. To me that would be a nice

Re: EmailMessage mangles body text

2010-04-28 Thread Rob Hudson
On Tue, Apr 27, 2010 at 6:38 PM, Leo wrote: > Digging deep into Python's innards reveals that this is a somewhat > esoteric protection in case you're writing out Unix mailbox files. The > specific issue is here: > http://docs.python.org/release/2.6.2/library/email.generator.html#email.generator.G

Re: admin javacripts

2010-02-19 Thread Rob Hudson
On Fri, Feb 19, 2010 at 8:58 AM, Luke Plant wrote: > IMO, using 'library agnostic' javascript in the admin will mean we > just end up implementing our own library, which will end up being an > ad hoc, informally-specified, bug-ridden, slow implementation of half > of jQuery/dojo/etc, and even less

Re: admin javacripts

2010-02-18 Thread Rob Hudson
I've battled many of these same issues when working on the debug toolbar... it needs to work the same in any environment it gets loaded into and, as such, has slightly different requirements put on it. It is seeming the admin is heading the same direction to some degree. While certain parts of the

Re: Why not datetime.utcnow() in auto_now/auto_now_add

2009-11-25 Thread Rob Hudson
On Tue, Nov 24, 2009 at 3:36 PM, Russell Keith-Magee wrote: > > Time zone handling is definitely something that Django could handle > better, but simply switching to UTC for certain functions isn't the > solution. > I like the solution proposed on ticket 10587: http://code.djangoproject.com/ticke

Re: Public method for getting model field names in order of definition

2009-11-20 Thread Rob Hudson
On Wed, Oct 21, 2009 at 6:38 AM, David Chandek-Stark wrote: > > The values_list() query set method is useful for dumping data to CSV, > etc.  However, I find that I often want to use it without specifying > the field names (to get them all) and yet also include the field names > as the first row i

Re: The this-needs-to-be-in-django angst

2009-10-22 Thread Rob Hudson
On Wed, Oct 21, 2009 at 12:22 PM, mrts wrote: > A DVCS mm-tree > -- > > Quoting > http://en.wikipedia.org/wiki/Andrew_Morton_(computer_programmer) > > "He currently maintains a patchset known as the mm-tree, > which contains not yet sufficiently tested patches that > might later be ac

Re: Proposal: Tutorial Refresh

2009-10-10 Thread Rob Hudson
On Sat, Oct 10, 2009 at 6:04 AM, Ned Batchelder wrote: > My strong feeling is that these two goals will quickly become impossible to > reconcile.  I think the idea of a conference site is a good one (everyone > will understand the problem domain, lots of interesting avenues to explore, > it's not

Re: Proposal: Tutorial Refresh

2009-10-09 Thread Rob Hudson
I, too, like the idea of a conference site. It fills a void and sounds useful for upcoming conferences. I wasn't too crazy about the blog idea, and was convinced away from the snippets idea. So shall we call it a conference site and move on? :) For a nice reference implementation, I'd like to

Proposal: Tutorial Refresh

2009-10-09 Thread Rob Hudson
I'd like to propose the addition of a new tutorial that represents a complete website, describing everything from start to finish. This would allow for many more topics to come into play -- things we all deal with at some point in developing websites using Django. This would also allow for those

Re: Proposal: Better HTML4 support

2009-09-28 Thread Rob Hudson
On Mon, Sep 28, 2009 at 6:38 AM, Russell Keith-Magee wrote: > By way of greasing the wheels towards trunk: if the outcome of this > mailing list thread was a wiki page that digested all the ideas, > concerns and issues into a single page, it will make the final > approval process much easier. Luk

Re: Proposal: Better HTML4 support

2009-09-28 Thread Rob Hudson
On Sat, Sep 26, 2009 at 11:33 AM, Simon Willison wrote: > I don't think it would involve form widgets being rendered with > templates simply because of the performance overhead - even with the > template caching improvements it's still a lot of work just to output > an input tag. It might involve

Re: Proposal: Better HTML4 support

2009-09-26 Thread Rob Hudson
On Sat, Sep 26, 2009 at 2:13 AM, Simon Willison wrote: > Yes - I looked briefly at how much work was involved in doing this and > it's not insubstantial, which is why I opted for string replacement > just to demonstrate the API. I'm confident the exact functionality of > django-html could be repl

Proposal: Better HTML4 support

2009-09-25 Thread Rob Hudson
Or: Why is HTML4 such a PITA to get right? Outline: * What I know about HTML4 and Django * Some info about past efforts and discussions * Thoughts and curiosities about what we can do What I know about HTML4 and Django First, let's not let this turn into an argument

Re: 1.2 Proposal: Add a few more tutorial steps

2009-08-20 Thread Rob Hudson
On Thu, Aug 20, 2009 at 1:03 PM, Nicolas Steinmetz wrote: > Maybe you can inspire from the Jobeet [1] tutorial which consists at the > beginning as an advent calendar (a one hour tutorial published > everyday). Jobeet is a Job board and allow to deal with all aspects of > Symfony framework from fr

Re: Suggestion: Better way to extend user table

2009-08-20 Thread Rob Hudson
Take a look at ticket 3011: http://code.djangoproject.com/ticket/3011 --~--~-~--~~~---~--~~ 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

Re: 1.2 Proposal: django debug toolbar in contrib

2009-08-12 Thread Rob Hudson
I'm not sure if this is the place but here are some other issues or questions I have if this were to happen... * The jQuery question is a big one. I've taken strides to make the debug toolbar interoperate with other popular JS frameworks (mootools and prototype, namely). But if jQuery were deci

Re: 1.2 Proposal: django debug toolbar in contrib

2009-08-11 Thread Rob Hudson
On Tue, Aug 11, 2009 at 7:01 AM, Russell Keith-Magee wrote: > Firstly, there is the simple issue of ownership and copyright. > Obviously, those that have written DDT components that are to be > included need to be onboard with this idea. On this point I've strived to be pro-active (thanks to Jaco

1.2 Proposal: Add a few more tutorial steps

2009-08-07 Thread Rob Hudson
At the end of the 4th step of the tutorial, it lists some tutorials that are upcoming: Coming soon === The tutorial ends here for the time being. Future installments of the tutorial will cover: * Advanced form processing * Using the RSS framework * Using the cache framework

Ticket 8638: Provide setting to disable e-mail sending

2008-11-24 Thread Rob Hudson
Hi Django Devs, I saw that ticket[1] made it into the 1.1 list and I was drawn to it. I have a project that will be doing some mass sending of emails soon, so I could definitely use something more than what is currently there. Firstly, the title simply says it wants the ability to disable emails

Re: Absolute paths in settings.py

2008-10-30 Thread Rob Hudson
On 10/30/08, Thomas K. Adamcik <[EMAIL PROTECTED]> wrote: > If django where to ship something like this __file__ would point to somewhere > within the installation folder of django, which is obviously not what we > want. Not necessarily true. If this code were in the settings.py from the proje

Re: Proposal: Decouple messages from contrib.auth

2008-10-28 Thread Rob Hudson
On 10/28/08, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote: > > On Mon, Oct 20, 2008 at 12:33 PM, Rob Hudson <[EMAIL PROTECTED]> wrote: > > I think decoupling messages from contrib.auth is a worthy step to > > making auth a little bit more reusable. > > Agreed

Re: Proposal: Decouple messages from contrib.auth

2008-10-20 Thread Rob Hudson
On Mon, Oct 20, 2008 at 11:33 AM, Rob Hudson <[EMAIL PROTECTED]> wrote: > * Should a pre-existing reusable app (like django-notification[2]) > be used/considered instead? > [2] http://code.google.com/p/django-notification/ I actually meant to link to the django-notices app

Proposal: Decouple messages from contrib.auth

2008-10-20 Thread Rob Hudson
Hi Devs, I just posted a question on Django users about how to best remove the extra query to auth_messages on every request while still using contrib.auth and contrib.admin in my own code[1]. This led me to the thought that contrib.auth should follow the reusable apps mantra of do only one thin

Process for new contrib apps?

2008-10-09 Thread Rob Hudson
Hi Devs, At DjangoCon it was mentioned that you were working on a process for nominating or approving 3rd party Django apps to be pulled in as official contrib apps. I'm curious if that's been worked out yet. Thanks, Rob --~--~-~--~~~---~--~~ You received this me

Re: Proposal: {% doctype %} and {% field %} tag for outputting form widgets as HTML or XHTML

2008-09-10 Thread Rob Hudson
On 9/9/08, Simon Willison <[EMAIL PROTECTED]> wrote: > http://code.google.com/p/django-html/ As a 3rd party app this is awesome. It's simple and clean and doesn't require much from the user. But as part of Django itself, it seems like fixing django.forms (the source) would be a better solution

Re: Proposal: {% doctype %} and {% field %} tag for outputting form widgets as HTML or XHTML

2008-09-09 Thread Rob Hudson
On 9/9/08, Simon Willison <[EMAIL PROTECTED]> wrote: > > Back in March there was a discussion about providing a way to output > django.forms widgets as HTML (at the moment they always use XHTML, > which leads to nastyness on sites using an HTML doctype): After I read that I created the doctype

Re: Locations needed for 1.0 sprints.

2008-06-26 Thread Rob Hudson
OSCON is July 21st to the 25th in Portland, OR. It's not in a date range listed but I'm curious if something could be arranged there? If not a sprint maybe a BOF or just a meet and greet? On Jun 25, 3:58 pm, "Jacob Kaplan-Moss" <[EMAIL PROTECTED]> wrote: > Hi folks -- > > I'm setting up sprints

Re: Experimental Git repository available

2008-06-19 Thread Rob Hudson
On 6/19/08, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote: > Please don't try to turn this into a "Django should use > Git!" thread; if you do I'll just ignore you. We're not switching from > SVN any time in the foreseeable future. I hope you are nearsighted and the foreseeable future isn't too

Re: Experimental Git repository available

2008-06-19 Thread Rob Hudson
On 6/19/08, Rob Hudson <[EMAIL PROTECTED]> wrote: > Use the `-T`, `-t`, `-b` flags, or `-s` if the project has a "standard > layout". This should bring over branches and tags as well. I forgot to reference the man page (which was in my clipboard): http://www.kernel.or

Re: Experimental Git repository available

2008-06-19 Thread Rob Hudson
On 6/19/08, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote: > > On Thu, Jun 19, 2008 at 11:55 AM, [EMAIL PROTECTED] > <[EMAIL PROTECTED]> wrote: > > Is this only going to offer the trunk branch? > > > Until I learn more about Git, yes :) > > If you know the correct incantation to add other git-sv

Re: Understanding HTML, XML and XHTML

2008-06-11 Thread Rob Hudson
On 6/10/08, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > However, if we _ever_ want to get v1.0 out the door, we're going to > have to draw the line somewhere. This wouldn't be a trivial change - > at the very least, it will require a bit of discussion to work out > exactly what we should

Re: Understanding HTML, XML and XHTML

2008-06-10 Thread Rob Hudson
Hi Dango devs, I wanted to publicly apologize for the framing of my question... I meant it to be humorously provocative but I fear it could be easily misread to be rude and annoying, and not easily turned into something productive. That wasn't my intention. I am curious if anyone thinks having

Re: Django releases

2008-06-09 Thread Rob Hudson
Posting this here rather than someone's blog post comments: Just a note up front, Django has completely changed the way I build websites and I'm totally enamored with it, but I'm trying to think of how official releases could have benefitted myself in my situation and this is what I came up with.

Re: Django releases

2008-06-09 Thread Rob Hudson
On 6/7/08, Jeremy Dunck <[EMAIL PROTECTED]> wrote: > On Sat, Jun 7, 2008 at 7:23 PM, Rob Hudson <[EMAIL PROTECTED]> wrote: > > Where I work we use 0.96 (though I use trunk on my personal projects). > > We use 0.96 because we have up to 12 separate Django projects

Re: Django releases

2008-06-07 Thread Rob Hudson
On Sat, Jun 7, 2008 at 4:45 PM, Tim Chase <[EMAIL PROTECTED]> wrote: > I'm not sure blessing it with a number does much but pander to > folks that are scared to make a tough call: > > Use 0.96: blessed with a magic number, but old and not much like > 1.0 will be > > or use Trunk: suggested (but

Re: Little help with #6886 ("Assigning a Model Instance to a Foreign Key Attribute Doesn't Cache the Instance")

2008-06-07 Thread Rob Hudson
On Sat, Jun 7, 2008 at 1:03 PM, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote: > One suggestion is to assign to "foo.bar_id" instead of "foo.bar"; that > skips the validation hook. But if you've got more suggestions I'm > listening... I got around it just by putting the FK assignments in a try bloc

Re: Little help with #6886 ("Assigning a Model Instance to a Foreign Key Attribute Doesn't Cache the Instance")

2008-06-07 Thread Rob Hudson
On Sun, Jun 1, 2008 at 8:11 AM, Ivan Sagalaev <[EMAIL PROTECTED]> wrote: > Why not defer it to save()? Currently you can assign invalid values to > other fields and it won't break until save(): > > obj.time = 125 # Ok > obj.save() # ProgrammingError > > And many things even won't break at all

Re: Django releases

2008-06-07 Thread Rob Hudson
On Sat, Jun 7, 2008 at 12:06 PM, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote: > * Start a "train release" schedule: schedule a couple of 1.0 betas, a > rc or two, and then a final release. Features that are done by the > dates get released, those that aren't, don't. Make these dates > aggressive b

Django releases

2008-06-07 Thread Rob Hudson
Regarding this blog post: http://www.technobabble.dk/2008/jun/07/django-importance-releases/ I think the most often reason why I've heard is that it takes time to create a release, post it, push security patches to it, etc. Which makes sense, but at the same time there are a lot of valid points

Understanding HTML, XML and XHTML

2008-06-06 Thread Rob Hudson
I'm pretty sure this has been beaten to death, and I was going to pass on sending this in, but this paragraph made me ask, "What would it hurt to ask?": {% block quote %} Unfortunately, sometimes you are not fully in control of the content you produce. For example, this very blog, published with

Re: Proposal: Form rendering with filters

2008-05-21 Thread Rob Hudson
I'd like to know too. I especially liked both of Simon Willison's ideas of 1) Template tags for form rendering, and 2) Outputting and setting of a _doctype variable that the template tags use to decide what kind of HTML to output. If nobody has officially started anything, could we set up a Goog

Model Inheritance in qsrf and User?

2008-04-23 Thread Rob Hudson
I don't know if this should go to devs or users but I wanted to ask... Now that queryset-refactor has implemented model inheritance (and will soon be in trunk), will the recommended way to tie in new columns to contrib.auth.models.User change? For example, if we want to add in profile informatio

Re: Maybe DEBUG=True should only record the last N SQL queries?

2008-04-21 Thread Rob Hudson
Simon Willison wrote: > Of course, this behaviour is documented... but I think it's reasonable > to expect that many people will miss that part of the docs. Where? I didn't know about this and feel like I've read most of the Django documentation and the Django book. I'm purposefully looking for

Re: Easier URL patterns

2008-04-08 Thread Rob Hudson
Just a note: I'm not going to champion this one since I do know regular expressions. I simply read elsewhere that it is a common stumbling block for newbies and thought I'd bring it up. Actually, the regex newbies I know usually just need a few examples to get them off the ground. E.g. use "[-\

Easier URL patterns

2008-04-07 Thread Rob Hudson
It was discussed previously that making URL matching easier by not having to understand regular expressions would be a nice goal, and perhaps a nice 1.0 goal... http://groups.google.com/group/django-developers/browse_thread/thread/b4c237ad76f9eeca/b9b2acc81fe6e5cf I just stumbled across yet anoth

Re: Adding InnoDB table engine to sql.py create table statements

2008-03-25 Thread Rob Hudson
On 3/24/08, Alex Koshelev <[EMAIL PROTECTED]> wrote: > > Hi, ro60 > > There is no need in such setting. Just now you can set table engine to > entire database or in settings.py per-connection with > > DATABASE_OPTIONS = {"init_command": "SET storage_engine=INNODB" } Or to avoid this setting a

Re: Django + SQLAlchemy as a potential GSoC project

2008-03-24 Thread Rob Hudson
On 3/24/08, James Bennett <[EMAIL PROTECTED]> wrote: > > On Mon, Mar 24, 2008 at 3:23 PM, Ben Firshman <[EMAIL PROTECTED]> wrote: > > Would proposing a complete replacement be a tad too controversial for a > GSoC > > project? > > > Yes. It also wouldn't succeed as a project, because it's the

Should manage.py startapp create a urls.py file?

2008-02-04 Thread Rob Hudson
If it's common advice to make apps portable and bundle urls along with an app, shouldn't manage.py startapp also drop in a default urls.py file? I realize it's simple to create a skeleton file yourself, but if manage.py did it, it's one less thing to think about and do, and also promotes good url

Re: Reconsider ADMIN_MEDIA_PREFIX default?

2007-12-18 Thread Rob Hudson
On 12/18/07, Vinay Sajip <[EMAIL PROTECTED]> wrote: > A reasonable approach would be that the media root for any app is > conventionally /media/app_label. This is easily organisable under > Apache/mod_python by having a single media location /media/ for which > you do a "SetHandler None", then cre

Re: Django weekly updates?

2007-12-14 Thread Rob Hudson
On 12/13/07, Empty <[EMAIL PROTECTED]> wrote: > For those that enjoy an audio dump, for a commute or something, I've > put together a podcast called This Week in Django. It's a bit > experimental at this point, but I'm playing around with different > ideas. You can find more here: > > http://blo

Re: Django 1.0 features -- the definitive list

2007-12-11 Thread Rob Hudson
Would it be too much to start thinking about marketing for the 1.0 release? By marketing, I mean, screencasts, t-shirts, coffee mugs. Possibly a not-for-profit entity to pipe whatever proceeds or donations through to help support Django coding, or have paid bounties, etc. IIRC, some of these thi

Re: Django weekly updates?

2007-12-11 Thread Rob Hudson
On 12/11/07, Patryk Zawadzki <[EMAIL PROTECTED]> wrote: > If you parse it with a true XML parser then the content gets unescaped > on delivery. Then feed it to Python's BeautifulSoup to do anything > else. I'm using ElementTree to parse the RSS and you're right about the unescaping. Thanks! --~

Re: Django weekly updates?

2007-12-11 Thread Rob Hudson
On 12/11/07, Patryk Zawadzki <[EMAIL PROTECTED]> wrote: > Why not use > http://code.djangoproject.com/timeline?ticket=on&max=50&daysback=90&format=rss > ? I am actually. But I did just realize the description fields has the full details of the comment. The description field would require a bit

Re: Django weekly updates?

2007-12-11 Thread Rob Hudson
On 12/11/07, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > Looks like a good start. If you can sort out the details of how to > manage this as a group effort and get a regular publication rhythm > going, I'll poke Jacob and Adrian and see what we can do. Great. Thanks. I did ask Jacob if it

Re: Django weekly updates?

2007-12-10 Thread Rob Hudson
On 12/8/07, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > The same is true of a weekly Django update message. There is > absolutely nothing stopping you from writing a weekly blog message and > publishing it somewhere. I posted a quick proof of concept: http://rob.cogit8.org/blog/2007/Dec/10/d

Re: Django weekly updates?

2007-12-08 Thread Rob Hudson
On 12/8/07, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > I'm not sure I'd be a fan of a completely automated mechanism - Django > has a certain sense of style and finess that isn't conveyed by simply > aggregating all updates into a single message. The intent of my first message was to propos

Django weekly updates?

2007-12-07 Thread Rob Hudson
Hi Devs, I've been missing the weekly updates that Clint Ecker was doing and so I thought I'd write in to pitch an idea and offer some help if I could. I'd say a good goal to keep these going would be to not rely in a single person as much. If we can come up with a weekly format that is not ver

Re: Custom permissions and contenttypes

2007-09-28 Thread Rob Hudson
On Sep 27, 12:53 am, eXt <[EMAIL PROTECTED]> wrote: >I found that there was a change in > django.contrib.contenttypes.management.py which adds: I wrote that patch so I can at least respond but I think this bubbles up into a design decision for Django... > This causes removal of my custom con

Is model.objects.all().delete() optimized to use DELETE FROM?

2007-09-18 Thread Rob Hudson
Hi Devs, Is model.objects.all().delete() optimized to use DELETE FROM? I'm only asking because I was trying to clear a table with about 20k records and it took minutes rather than seconds. I'm using MySQL as the backend. I'm not very familiar with the database query mechanism and I know it's b

Re: #2465 - Make select_related() related work for ForeignKeys with null=True

2007-09-17 Thread Rob Hudson
On 9/15/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > On Sun, 2007-09-16 at 00:36 +, Rob Hudson wrote: > > http://code.djangoproject.com/ticket/2465 > > > > I'm running into this and it makes sense to me that select_related > > should do thi

#2465 - Make select_related() related work for ForeignKeys with null=True

2007-09-15 Thread Rob Hudson
http://code.djangoproject.com/ticket/2465 I'm running into this and it makes sense to me that select_related should do this right. I'm curious of Adrian's comment about this involving a bunch of LEFT JOINs and why that's a bad thing? Thanks, Rob --~--~-~--~~~---~--

Re: Add import location of objects to docs?

2007-09-11 Thread Rob Hudson
> However, we're always interested in any way to make the documentation > better, so if you can come up with a way to make this idea work, we > can take a look at it. That's the hard part and was hoping someone would have a bright idea. :) The best idea I've had is to spell out the full path to

Add import location of objects to docs?

2007-09-09 Thread Rob Hudson
Hi Devs, One of the things I'm always stuck with when reading the docs is knowing where to import the described methods or objects from. For example, just now I'm working on Q objects and just read the documentation but don't know where they live without having to jump into the source of where I

should paginator validate and auto-convert args?

2007-09-09 Thread Rob Hudson
Hi Devs, I just bumped into this and can see both sides so I'm posting here... I'm working on a project that wants a list view to have configurable num_per_page for pagination. I set it up to pull from the GET (eg: / search/category-slug/?per_page=10). What I did was check for the existence of

Re: Run script from management.py

2007-08-28 Thread Rob Hudson
I've approached this like the following, though I'd be interested to hear if there is a better way. I like putting the environ settings in the script itself so everything is self contained (could be run from cron, etc)... At the top of my Python file I have this: import os, sys # Connect to Dja

proposal: update QuerySet.get() to return a default if object does not exist?

2007-08-22 Thread Rob Hudson
I did a search and found this thread: http://groups.google.com/group/django-developers/browse_thread/thread/49a6b99dbcea4364/dbaa965c304feed3 It looks like there was general support for the idea but the thread died and as far as I can tell there was never any decision or ticket. Just tonight I f

Re: Multithreaded testing?

2007-08-21 Thread Rob Hudson
I don't know if one problem might be that Django's built-in server isn't multi-threaded (or if it's another part of the chain) but you can try to apply the patch in this ticket as a test... http://code.djangoproject.com/ticket/3357 Note: The patch is a bit old and may need to be adjusted slightly

DDN: On portability of apps and using Meta.app_label

2007-08-21 Thread Rob Hudson
Hi Devs, I'm working on a patch for #5177 (http://code.djangoproject.com/ticket/5177) which will clean up orphaned content types and Malcolm questioned, "What happens if a model has Meta.app_label set?" and further went on to explain that it was never clearly determined if app_label should only r

Re: manage.py idea?

2007-08-16 Thread Rob Hudson
On Aug 15, 4:44 pm, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > I look forward to seeing your patch! :-) First attempt is in this ticket... http://code.djangoproject.com/ticket/5177 I do need to test a bit further on a real project and with users who have permissions to see how it all man

Re: manage.py idea?

2007-08-15 Thread Rob Hudson
On 8/15/07, Deryck Hodge <[EMAIL PROTECTED]> wrote: > Why not, rather than adding another option in django.core.management, > have the contenttypes app do this? The existing post_syncdb hook > could be extended to clear unused content types as well as create new > ones. > > You would have to reme

Re: manage.py idea?

2007-08-15 Thread Rob Hudson
On 8/15/07, Collin Grady <[EMAIL PROTECTED]> wrote: > Shouldn't really be an issue with his scenario though, since he said > this was during initial dev on the data model, so he wouldn't even have > much (if any) data yet :) Right, but when it comes time for the next app I create in that project,

Re: manage.py idea?

2007-08-15 Thread Rob Hudson
On 8/15/07, Collin Grady <[EMAIL PROTECTED]> wrote: > Wouldn't reset do that? > > ./manage.py reset auth contenttypes I haven't tried that but that looks like it would clear those tables completely vs. purging only the unused tables. Would following that with a syncdb then restore the content ty

Re: manage.py idea?

2007-08-15 Thread Rob Hudson
PS: I should add before Malcolm tells me, "We accept patches" that I'm willing to code this up for submissions if the idea is generally well received. :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django deve

manage.py idea?

2007-08-15 Thread Rob Hudson
One of the things I typically do when starting a new project/app is to spend some time adjusting and tweaking the data model. One thing I run into sometimes when I change my model name is leftover content types in the database and also in the permissions. It's a bit of a pain removing these manu

Re: feedback on full atom feed support

2007-08-10 Thread Rob Hudson
I've been watching the development with interest. I'm probably your user #1 with curiosity that might lead to user #2. I know the basics of what Atom is and what AtomPub is (but not quite clear on where REST and full AtomPub differ or relate -- they sound like they have a lot of overlap where may

Re: Simple improvement suggestion for django.contrib.syndication.feeds

2007-08-08 Thread Rob Hudson
FYI: I've also contributed a patch for this ticket: http://code.djangoproject.com/ticket/3624 It adds some extra support so the feeds don't need to hit the filesystem just to pull in a simple template. -Rob On Aug 7, 4:28 am, jorjun <[EMAIL PROTECTED]> wrote: > Done. Thanks for guidance. > > >

Re: Autoescaping: good time?

2007-08-02 Thread Rob Hudson
On Aug 2, 12:55 am, Michael Radziej <[EMAIL PROTECTED]> wrote: > I'd still suggest a 'default off' policy at least when autoescape is > introduced, just to give users a transition period. A 'default on' policy > means that autoescape will break a lot of custom template tags and filters. > The poli

Re: Django Success Stories

2007-07-29 Thread Rob Hudson
On Jul 29, 2:54 pm, Simon Greenhill <[EMAIL PROTECTED]> wrote: > Hmm... off the top of my head - [snip] Cool, I've included those as an example of more details. Feel free to update the following if anyone feels it needs it... http://code.djangoproject.com/wiki/DjangoSuccessStories Now we just n

Re: Django Tutorial

2007-07-29 Thread Rob Hudson
On 7/28/07, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > It's definitely up for discussion, and I'm not tied to the current > tutorial in any way. My personal preference is to replace the official > tutorial with the first few chapters of the Django book, once that's > been published, because thos

Re: Django Success Stories

2007-07-29 Thread Rob Hudson
On 7/29/07, Simon G. <[EMAIL PROTECTED]> wrote: > 4) Politely ask some of the big Django sites if they could answer 5 or > 6 questions (e.g. pownce, tabblo, etc) > > If you get a few "big" names in there, then others should follow. What would the 5 or 6 questions be? -Rob --~--~-~--~---

Re: Django Success Stories

2007-07-29 Thread Rob Hudson
On 7/28/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > 1) Set up a page on the wiki with instructions and suggested outline > > of a success story. > > 2) Post a "Call for Success Stories" somehow, maybe via the weekly updates. > > 3) Keep an eye on the page and linked pages. > > If you're

Re: Django Success Stories

2007-07-28 Thread Rob Hudson
> Now, there's one small wrinkle that may prove unfortunate for you: in > the Django community, it's pretty much established practice to equate > good ideas with a volunteer offer. By this precedent, I do believe > you've volunteered to gather this material . > > Seriously, though -- if it's somet

Django Success Stories

2007-07-28 Thread Rob Hudson
Hi Devs, One thing that came out of the Django Meet-up at OSCON was someone asking for advice on how to convince their superiors that Django is a good choice. This obviously depends on the needs of the individual or shop, but I was wondering if we could add a section to the Wiki for success stor

Django Tutorial

2007-07-28 Thread Rob Hudson
Hi Devs, I've been recommending Django to web developer friends. I typically first point them to Jacob's excellent video on Google for the background on Django (with the caveat that some code might be out of date but the general history and Django philosophy is well represented)... http://video.

Django Windows Installers

2007-07-22 Thread Rob Hudson
Hi Devs, In http://code.djangoproject.com/wiki/VersionOneFeatures I see Windows Installers listed with no leader and no start status. I'm pretty comfortable building installers using NSIS (nsis.sf.net) as we do that where I work and could chip in here. Has it been discussed what the installer s

Re: git and Django

2007-07-19 Thread Rob Hudson
On Jul 19, 2:10 am, Michael Radziej <[EMAIL PROTECTED]> wrote: > Was git-svn easy to set up? I'm having issues with its ugly sibling > "git-svnimport" ... On a Mac with MacPorts, very easy: $ sudo port install git-core +svn Anywhere else I'm not sure but the above suggests that git-svn is a

git and Django

2007-07-18 Thread Rob Hudson
After going to a git presentation by Randal Schwartz and watching the video by Linus on git, I decided to play with it some for a patch I'm testing in Django. I got git and git-svn installed on my Mac, pulled down the Django source and started a new branch for the patch I'm working on. What's *r

#640, order_with_respect_to

2007-07-18 Thread Rob Hudson
I've been playing with this a little today and I'm curious... does this work on any database backend? The Django db stuff is a bit magical to me, but in the path I'm following in the code, I don't see anything that tells it to look at order_with_respect_to if ordering == '_order'. I have this si

Re: Multiple Profiles

2007-05-09 Thread Rob Hudson
I'd like to hear what others think of this approach b/c it makes a lot of sense to me and does seem much easier in that: 1) The newly defined user object is in request 2) There's one place to get user info Thanks for sharing, Rob --~--~-~--~~~---~--~~ You receiv

Re: ForeignKeys and friends interface

2007-04-06 Thread Rob Hudson
On Apr 6, 3:51 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > [An unproven gut feeling: keeping a small reminder, however subliminal, > that things are relational-database backed is actually a good idea. It > will stop widely read people from thinking there is a true object > backing store.

Re: Design decision on #3532 -- spaceless templatetag

2007-03-31 Thread Rob Hudson
> Ok - initial opinion appears to be anti configurability and anti > changing the default. Another option is to introduce a different tag > for the 0-spaces case. Opinions? Suggestions for names? Spaceless is > the obvious choice, but that name is taken :-) My thought was: "spaceless" is no spac

Re: Design decision on #3532 -- spaceless templatetag

2007-03-31 Thread Rob Hudson
> Ok - initial opinion appears to be anti configurability and anti > changing the default. Another option is to introduce a different tag > for the 0-spaces case. Opinions? Suggestions for names? Spaceless is > the obvious choice, but that name is taken :-) My thought was: "spaceless" is no spac

Re: Possible bug: How does Django decide when to quote SQL arguments?

2007-03-07 Thread Rob Hudson
On Mar 7, 11:15 am, David Danier <[EMAIL PROTECTED]> wrote: > AFAIK the queries are logged without quoting but executed correctly. > (You can see this, if you have a SQL-error and the DB-backends throws an > exception with the real query) So somewhere else in the ORM it fixes the quoting before i

Possible bug: How does Django decide when to quote SQL arguments?

2007-03-07 Thread Rob Hudson
I was reviewing all the SQL calls in my page views by taking advantage of the context variable "sql_queries" when DEBUG=True. I found this query that isn't quoted correctly (I trimmed out some stuff to make this shorter): SELECT -- various fields listed here FROM `page_content` INNER JOIN

Re: IntegrityError patch

2007-03-07 Thread Rob Hudson
I like it... I had to do a all encompassing "except" just the other day because IntegrityError was in MySQLdb. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send e

Re: Django ORM bug when your app has a model named "ContentType"?

2007-03-01 Thread Rob Hudson
> Could this be related to #2874 ? 2874 looks related in that it is another bug resulting from a similar type of circular table relationship. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" grou

Re: Django ORM bug when your app has a model named "ContentType"?

2007-02-28 Thread Rob Hudson
On Feb 9, 3:12 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > So after some back and forth about whether this should or shouldn't > work, there didn't seem to be any resolution. Your gut feeling looks > right to me Rob: it should probably work as you expect (no collision), > although it won't

  1   2   >