Re: Countdown to 1.0 alpha

2008-07-17 Thread Jacob Kaplan-Moss
On Thu, Jul 17, 2008 at 9:20 AM, Dan <[EMAIL PROTECTED]> wrote: > I was wondering when the 1.0alpha was due so I went to Trac and found this > page: > > http://code.djangoproject.com/query?status=new&status=assigned&status=reopened&milestone=1.0+alpha > > There is only 10 tickets left before alpha

Re: ANNOUNCE: Django 1.0 released

2008-09-05 Thread Jacob Kaplan-Moss
On Fri, Sep 5, 2008 at 3:10 AM, Matic Žgur <[EMAIL PROTECTED]> wrote: > I would have one question though. What will the releases look from now > on? I mean, will 1.x contain only security/bug fixes or new features > as well? And how long will it stay supported? I know that these > questions may no

[ANN] Call for proposals: PyCon 2009

2008-10-09 Thread Jacob Kaplan-Moss
Howdy folks -- It's that time of year again: PyCon 2009 is accepting proposals for talks and tutorials. PyCon 2009 will be held in Chicago, Illinois from March 27 - 29; there will be two tutorial days before and four development sprint days after. PyCon has special meaning to Django: we first de

Re: Customizing Admin for Large Data Sets

2009-02-17 Thread Jacob Kaplan-Moss
On Tue, Feb 17, 2009 at 12:15 PM, mermer wrote: > Does anybody have any advise on how best to customize the Admin to > cope with large data sets. > > We need to deal with 500K plus records - and the loading times are > just too slow. You might want to clarify a bit more what you're doing -- what

Re: linking to files from database

2009-02-17 Thread Jacob Kaplan-Moss
On Tue, Feb 17, 2009 at 1:15 PM, Tonu Mikk wrote: > Looking at the database, I see a photo and thumbnail columns, but there > is no data. Do I need to write code to store a link to images in the > photo and thumbnail columns? Yes, that's it. Read the section of the file reference titled "Additi

Re: Simply adding GROUP BY to a QuerySet

2009-02-18 Thread Jacob Kaplan-Moss
On Wed, Feb 18, 2009 at 11:12 AM, Deniz Dogan wrote: > Let's say I have a model called Bike with a DateField called > "production_date". Now I want to get all of the Bikes and group them > by their production date. How would I do this in Django? I can't seem > to figure it out. For this type of

Re: Simply adding GROUP BY to a QuerySet

2009-02-18 Thread Jacob Kaplan-Moss
On Wed, Feb 18, 2009 at 12:24 PM, Deniz Dogan wrote: > I'm sorry about that, I meant something like this: > > { 2008-01-02 : [Bike 1, Bike 2], > 2008-02-09 : [Bike 7, Bike 4] } Well, you can't do this with the aggregation API because you can't do that is SQL. Remember: there's no such thing as

Re: Django "tracking" app

2009-02-18 Thread Jacob Kaplan-Moss
On Wed, Feb 18, 2009 at 6:10 PM, DougC wrote: > Any thoughts from experienced Django developers? Two things you might want to look into: The first is model inheritance (http://docs.djangoproject.com/en/dev/topics/db/models/#id4). You could, for example, have an abstract ``TrackedObject`` model

Re: how to save a file from a remote server?

2009-02-20 Thread Jacob Kaplan-Moss
On Fri, Feb 20, 2009 at 9:25 AM, ondrey wrote: > In my view I need to save locally a file (image) from a different > server so I can further process it. But I can't figure out how to do > it. Can someone help me with that? http://docs.python.org/library/urllib.html#urllib.urlretrieve Jacob --~

Re: Query over related models

2009-02-20 Thread Jacob Kaplan-Moss
On Fri, Feb 20, 2009 at 9:43 AM, Peter Müller wrote: > I want to select all Posts where text contains "Some Text" or > Attachment.name (which is related to one post) contains "Some Text". > Is there a way to do this with Django's ORM? This is covered in the "Making queries" documentation (http:/

Re: Using a community Django Development system

2009-02-20 Thread Jacob Kaplan-Moss
On Fri, Feb 20, 2009 at 12:09 PM, DoJoe wrote: > Can anyone share their experiences and setup details for using a > Django development server? I just ran across http://lethain.com/entry/2009/feb/13/the-django-and-ubuntu-intrepid-almanac/ the other day; maybe it'll help you out a bit. Jacob --~

Re: Is safe unsafe?

2009-02-23 Thread Jacob Kaplan-Moss
On Mon, Feb 23, 2009 at 3:50 PM, Andy Mckay wrote: > You want to use a script to only allow certain HTML tags and enforce a > whitelist. Don't be naive and just use string or regular expression to > strip only a few, there's lots of hacks that can be done. I use the > SGMLParser in Plone, here's

Re: Is safe unsafe?

2009-02-23 Thread Jacob Kaplan-Moss
On Mon, Feb 23, 2009 at 4:04 PM, Michael Repucci wrote: > While we're on the general topic of security, I've got another > question. In my application, users are also allowed to upload a file, > which will be served (to allow other users or visitors to download > it). I've used a clean_() method

Re: Is safe unsafe?

2009-02-23 Thread Jacob Kaplan-Moss
On Mon, Feb 23, 2009 at 7:49 PM, Brian Neal wrote: > Interesting, I've also come across this: > > http://codespeak.net/lxml/lxmlhtml.html#cleaning-up-html > > I've heard it is very fast as it is just a python binding to a C- > library...? Short version: don't use lxml.html.clean, either. Long v

Re: Anybody had any problems increasing the length of a varchar field in PostgreSQL?

2009-02-25 Thread Jacob Kaplan-Moss
On Wed, Feb 25, 2009 at 5:16 PM, bobhaugen wrote: > This is probably something that lots of people do all the time, but > this will be my first such change on a production Django + PostgreSQL > installation, so I thought I'd ask. For the record, it works fine. However, you really shouldn't be m

Re: checking if db is empty

2009-02-25 Thread Jacob Kaplan-Moss
On Wed, Feb 25, 2009 at 5:23 PM, Russell Keith-Magee wrote: > There isn't a simple 'is_my_database_empty' command that returns > true/false. Actually, "SELECT COUNT(*) FROM pg_tables WHERE schemaname = 'public'" does pretty well. But Russ is right that this isn't the type of question Django's go

Re: lighty vs. nginx for deploying Django

2009-02-26 Thread Jacob Kaplan-Moss
On Thu, Feb 26, 2009 at 2:46 AM, Gour wrote: > Although I'm still fiddling on my 'localhost', I'd like to know which > web server you recommend to settle on between lighty and nginx (Apache > excluded) so I can be clear in the future when choosing hosting/VPS for > Django sites and can learn abou

Re: Module not found

2009-03-05 Thread Jacob Kaplan-Moss
On Thu, Mar 5, 2009 at 2:44 PM, neri...@gmail.com wrote: >    (r'^$', include('dzopastudio.views.current_datetime')), There's the bug. ``include()`` does what the name suggests: it includes another urlconf. Drop the include and it should work. Jacob --~--~-~--~~~---

Re: template include and for loop speed

2009-03-06 Thread Jacob Kaplan-Moss
On Fri, Mar 6, 2009 at 4:25 AM, Thierry wrote: > Why is an include tag so much heavier on the template system? Because it has to search for the given template on the file system. Depending on how you've got TEMPLATE_LOADERS and TEMPLATE_DIRS set, this could search in dozens of places. Jacob --

Re: Django and Python Warnings

2009-03-06 Thread Jacob Kaplan-Moss
On Fri, Mar 6, 2009 at 9:46 AM, Brian Neal wrote: > I updated my working copy of Django after a long period and was > browsing the source and noticed it was taking advantage of the Python > warnings module. What is the best way to "see" such warnings when > doing development? Is it possible to co

Re: Why are views not called controllers?

2009-03-06 Thread Jacob Kaplan-Moss
Also see: http://www.pointy-stick.com/blog/2008/11/30/removing-model-view-controller-straitjacket/ Jacob --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dj

Re: Django and Python Warnings

2009-03-06 Thread Jacob Kaplan-Moss
On Fri, Mar 6, 2009 at 5:56 PM, Graham Dumpleton wrote: > Anyway, the issue is that at the moment mod_wsgi doesn't have an > equivalent for the command line -W option. Do people feel it would be > useful to have a directive in mod_wsgi which allows one to control the > warnings mechanism, ie., do

Re: Django and Python Warnings

2009-03-07 Thread Jacob Kaplan-Moss
On Sat, Mar 7, 2009 at 12:50 AM, Graham Dumpleton wrote: > BTW, if there is anything else you would like to see in mod_wsgi, now > is the time to speak up as am close to point where can wrap up work on > mod_wsgi 3.0. For the sites I work on, mod_wsgi is already basically perfect (to the point t

Re: Best practice for a site-wide form (ie: search)?

2009-03-07 Thread Jacob Kaplan-Moss
On Sat, Mar 7, 2009 at 5:25 PM, Alex Gaynor wrote: > My strategy would be to make a template tag that was passed the variable and > rendered that if there was data, else created and rendered a blank form. Or, you know, you could just put a form in the base template. You know, `...`. Really, don'

Re: Trouble passing keyword arg to post_save signal

2009-03-07 Thread Jacob Kaplan-Moss
On Sat, Mar 7, 2009 at 11:14 PM, Brandon Taylor wrote: > When I attempt to pass a keyword arg to it: > > models.signals.post_save.connect(scrub_directory, sender=TheModel, > {'my_kwarg' : 'some_value'}) > > I get a syntax error: keyword argument appeared after a non-keyword > argument. Well, you

Re: Encode Html for correct display in tags?

2009-03-10 Thread Jacob Kaplan-Moss
On Tue, Mar 10, 2009 at 8:55 AM, jago wrote: > Can this be done automatically in Python or Django? Yes; Django automatically escapes HTML values in templates: http://docs.djangoproject.com/en/dev/topics/templates/#id2 Jacob --~--~-~--~~~---~--~~ You received thi

Re: Django blog for google app engine

2009-03-12 Thread Jacob Kaplan-Moss
On Tue, Mar 10, 2009 at 12:20 PM, Flank wrote: > where can i get open source blog on django for GAE? App Engine is new enough you'll probably have better luck writing one yourself. Here's a place to start: http://www.42topics.com/dumps/appengine/doc.html Jacob --~--~-~--~~-

Re: Using Model name in the url

2009-03-12 Thread Jacob Kaplan-Moss
On Tue, Mar 10, 2009 at 9:44 PM, Michael Strickland wrote: > So I've actually run into a new problem: declaring the permalink for > only the inherited models works fine, but whenever I query the > database using the base model's manager (so I can get results from all > of the inherited models), t

Re: Posted data limits in django?

2009-03-12 Thread Jacob Kaplan-Moss
On Tue, Mar 10, 2009 at 11:22 PM, Greg wrote: > I've checked the actual posted data and it is all being posted > correctly, which leads me to the conclusion that something in django > itself is choking...? Can anyone help me with this? Is there a limit > as to how many form fields you can have?

Re: Simple Dynamic Form Problem

2009-03-12 Thread Jacob Kaplan-Moss
On Wed, Mar 11, 2009 at 11:30 AM, Alex G wrote: > > Having referenced http://www.b-list.org/weblog/2008/nov/09/dynamic-forms/, > I set about in an attempt to make a dynamic form through a simple > change to __init__, but not all is well... > [snip] > .        super(RFSInputForm, self).__init__(se

Re: Question regarding post_save signal

2009-03-12 Thread Jacob Kaplan-Moss
On Wed, Mar 11, 2009 at 10:05 AM, uno...@gmail.com wrote: > is there a way that i can pass the user that generated the signal to > my signal handler ? No. The `post_save` signal is a feature of the model API, which doesn't know anything about these "users" of which you speak. Consider: if I dro

Re: login_required

2009-03-12 Thread Jacob Kaplan-Moss
On Wed, Mar 11, 2009 at 7:10 PM, juanefren wrote: > Few times when I open any page in my site this error appears. > Caught an exception while rendering: name 'login_required' is not > defined. Somewhere in your app you're missing an import. Try grepping your source for "login_required" and check

Re: redirect module...

2009-03-12 Thread Jacob Kaplan-Moss
On Wed, Mar 11, 2009 at 2:50 PM, RavenJade2006 wrote: > Is it because I did not put it in through the admin section?  Or is it > because the page I am trying to redirect from still actually exists? Assuming you're using Django's built-in redirect app (http://docs.djangoproject.com/en/dev/ref/con

Re: Getting stuck in transactions

2009-03-12 Thread Jacob Kaplan-Moss
On Tue, Mar 10, 2009 at 5:10 PM, Tom Davis wrote: > I have a command-line script that uses Django's ORM. For reasons > beyond my comprehension, it has a tendency to get "stuck" in > transactions. When I check the postgre server status, it simply shows > a connection that is "idle in transaction"

Re: Mac Django Docs: Fluid Icon

2009-03-12 Thread Jacob Kaplan-Moss
On Thu, Mar 12, 2009 at 5:47 AM, Idan Gazit wrote: > http://www.flickr.com/photos/idangazit/3348201897/in/pool-fluid_icons Hey, that's slick -- thanks! Jacob --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Re: How to submit a documentation patch

2009-03-13 Thread Jacob Kaplan-Moss
Hey Bayo -- To expand a bit on what Alex said, the relevant bit of the documentation is http://docs.djangoproject.com/en/dev/internals/contributing/#patch-style. In essence, what you'll do is: - Make an SVN checkout of Django. - Make whatever doc edits you want to submit in the `docs/` directory

Re: Simple Dynamic Form Problem

2009-03-13 Thread Jacob Kaplan-Moss
On Fri, Mar 13, 2009 at 12:04 PM, Alex G wrote: > I knew it was going to be something like this.  I'm sorry to have > troubled you :-/. No worries at all. `super()` confuses the hell out of me, too :) Jacob --~--~-~--~~~---~--~~ You received this message because

Re: Development server starting two processes

2009-03-14 Thread Jacob Kaplan-Moss
On Sat, Mar 14, 2009 at 5:53 AM, Guillermo wrote: > Should I be seeing only one process instead of two when I start the > dev server? Nope -- two is normal behavior. One's the server itself, and the other is the process that monitors your code on disk and reloads the server when you make code ch

Re: Model problem, default not propagating to SQL

2009-03-15 Thread Jacob Kaplan-Moss
On Sat, Mar 14, 2009 at 11:56 PM, kpeters wrote: > default (active field) does not seem to propagate - see below > (Postgres 8.3.6 - current Django as of yesterday) > > Any ideas? This is expected behavior: the `default` argument can be things that can't properly be represented in a database. Co

Re: Snap and SCT - any reviews?

2009-03-15 Thread Jacob Kaplan-Moss
On Sun, Mar 15, 2009 at 5:40 PM, John Crawford wrote: > Anyone? Anyone? Bueller? That's rude. Please don't take the amazing work of the volunteers on this board for granted. Nobody here is required to update your question, and if you don't get an answer that's just the way it goes. Further, you

Re: Memcache unstable under consistent heavy load

2009-03-15 Thread Jacob Kaplan-Moss
On Sun, Mar 15, 2009 at 7:42 PM, meppum wrote: > I've created a small script that *should* cause this error on any > machine running memcached. Any thoughts would be appreciated. Not for me -- the given script completes (quickly) without error on every memcached installation I've got access to.

Re: Memcache unstable under consistent heavy load

2009-03-15 Thread Jacob Kaplan-Moss
On Sun, Mar 15, 2009 at 8:43 PM, meppum wrote: > Did you run the script on the same machine as the memcached > installation or did you do it across the wire? Both; I can't seem to find any problems. Again, what's the error you're getting? Jacob --~--~-~--~~~---~--~

Re: Django bug that should be addressed: Idle timeouts do not clear session information

2009-03-16 Thread Jacob Kaplan-Moss
On Mon, Mar 16, 2009 at 4:46 PM, Huuuze wrote: > Does anyone else agree with my viewpoints on this matter?  If so, > please post your comments in the ticket. Actually, the right way to get your viewpoint heard is to take the matter to the django-developers mailing list, where topics related to D

Re: Numbering of items in template

2009-03-17 Thread Jacob Kaplan-Moss
On Tue, Mar 17, 2009 at 12:46 PM, Jesse wrote: > I'm please to know of such a tag.  Do you know of a good example of > how it is used with the sum filter?  Otherwise, I will try. I don't know why you'd need the sum filter; the for tag does everything you'd want. See http://docs.djangoproject.com

Re: Django first app doubt

2009-03-17 Thread Jacob Kaplan-Moss
On Tue, Mar 17, 2009 at 12:53 PM, Gustavo Senise wrote: > I am trying to access http://localhost:8000/polls/admin/ and getting a error > 'MediaDefiningClass' object is not iterable. > > Can anyone help!? Can you post the full traceback? I suspect it might be a bug with a change in Django I made

Re: Django first app doubt

2009-03-17 Thread Jacob Kaplan-Moss
> I suspect it might be a bug with a change in Django I made today -- > are you running Django out of SVN? Er, no, the bug I thought was there isn't. Still, it'll always help to tell us what version of Django you're running. Jacob --~--~-~--~~~---~--~~ You receiv

Re: allowing a user to delete their own account and associated data.

2009-03-17 Thread Jacob Kaplan-Moss
On Tue, Mar 17, 2009 at 8:34 PM, tristan wrote: > A pointer to where I might find the python that deletes an account in > the "Auth" admin app would be great, because then I could just copy > that... I've found that does everything I need, but I need to expose > it to my users so they can do it t

Re: Django bug that should be addressed: Idle timeouts do not clear session information

2009-03-17 Thread Jacob Kaplan-Moss
On Tue, Mar 17, 2009 at 8:55 PM, Huuuze wrote: > 7.  Django detects the missing cookie I think this is where you're getting hung up. Django doesn't "detect" a "missing" cookie; Django sees a request from a browser that doesn't include a cookie. Nothing's missing; it's just a new browser without

Re: My web page can not be Internationalized

2009-03-18 Thread Jacob Kaplan-Moss
On Wed, Mar 18, 2009 at 9:35 PM, Eric wrote: > Can anyone help me ? Tks Malcolm tried. He wrote: > Constructing a very small example, with, say, a form containing only the > dropdown box, that demonstrates the problem you're seeing would be a > reasonable start. We can't read your mind; if you

Re: Test Client doesn't populate request.META["HTTP_HOST"] ...

2009-03-19 Thread Jacob Kaplan-Moss
On Thu, Mar 19, 2009 at 9:40 AM, Johan wrote: > Am I using the wrong construct? If so how do I get around this > problem? :: >>> c.post('/register/', data, HTTP_HOST='example.com') Jacob --~--~-~--~~~---~--~~ You received this message because you are subscr

Re: ImageFile bug? (Re: ImageField questions)

2009-07-24 Thread Jacob Kaplan-Moss
On Fri, Jul 24, 2009 at 8:23 AM, Rusty Greer wrote: > from what i can tell, get_image_dimensions in > django/core/files/images.py seems to open the files but never closes > them.  is this a bug? Yes, it was #8817 (http://code.djangoproject.com/ticket/8817) which was fixed a few months ago (http:/

Re: html text field ...disabled in form?

2009-07-24 Thread Jacob Kaplan-Moss
On Fri, Jul 24, 2009 at 8:57 AM, Asinox wrote: > how ill make a html text field with attr disabled? See the ``attrs`` argument to widgets: http://docs.djangoproject.com/en/dev/ref/forms/widgets/#customizing-widget-instances Jacob --~--~-~--~~~---~--~~ You receive

Re: ImageFile bug? (Re: ImageField questions)

2009-07-26 Thread Jacob Kaplan-Moss
2009/7/24 Rusty Greer : > that bug actually doesn't fix my case.  if i alter the patch to just > do a file.close() in all cases, it works.  is there another patch to > close the file opened outside of this class? I'm not sure I follow; let me make sure I understand you: * You've verified that yo

Re: ImageFile bug? (Re: ImageField questions)

2009-07-28 Thread Jacob Kaplan-Moss
On Sun, Jul 26, 2009 at 11:10 PM, Rusty Greer wrote: > i applied the patch you mentioned before (to my 1.0.2 release): Yeah, the fix is predicated on some file storage refactoring that's too intensive to reach the 1.0.X series. You'll need to upgrade to 1.1 to get the fix. Jacob --~--~-

Re: regex infinite loop with 100% cpu use in django.forms.fields.email_re - DOS hole?

2009-10-09 Thread Jacob Kaplan-Moss
Just as an update for anyone following this thread: This was indeed a security exploit, and it has been fixed. See http://www.djangoproject.com/weblog/2009/oct/09/security/ for details. Jacob --~--~-~--~~~---~--~~ You received this message because you are subscri

Call for proposals -- PyCon 2011

2010-09-23 Thread Jacob Kaplan-Moss
Call for proposals -- PyCon 2011 -- === Proposal Due date: November 1st, 2010 PyCon is back! With a rocking new website, a great location and more Python hackers and luminaries under one roof than you could po

Re: Setting initial data for an M2M field

2010-02-16 Thread Jacob Kaplan-Moss
On Tue, Feb 16, 2010 at 10:01 AM, Tom wrote: > I can set other initial data, for example to the 'notes' CharField > fine.  I guess my question boils down to: how do you set initial data > for a many-to-many field? The initial data for a many to many field needs to be a list. So:: f = EmailFo

Re: The going rate for Django-based web developers ...

2007-06-08 Thread Jacob Kaplan-Moss
On 6/8/07, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > to elaborate, i dont think such skill sets are available on the > market. People who have them are all happily employed or are self- > mployed No shit; I have trouble finding people like that at *any* price. [Shameless plug: if *you* have

Re: Scalability where file uploads are involved

2007-06-08 Thread Jacob Kaplan-Moss
On 6/7/07, Nimrod A. Abing <[EMAIL PROTECTED]> wrote: > The only thing I can think of right now is to share a directory on the > dedicated media server and have each server in the Django cluster > mount that share either through NFS or Samba. But I don't think it's a > good idea to do it this way.

Re: Django datestyle

2007-06-13 Thread Jacob Kaplan-Moss
On 6/13/07, Mario Gonzalez <[EMAIL PROTECTED]> wrote: > I'm getting some problems with style DateTime field because in my > country we don't use ISO style, we use ISO, DMY instead. Have you tried the DATE_FORMAT setting (http://www.djangoproject.com/documentation/settings/#date-format)? It doesn'

Re: multiple databases

2007-06-26 Thread Jacob Kaplan-Moss
On 6/25/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Ben Ford is working on merging in changes from the trunk in with the > branch... at this time neither he or myself ( I had planned on doing > this but found he was farther ahead of me ) have commit permissions to > the project... but hopef

Re: nasa site on django

2007-06-28 Thread Jacob Kaplan-Moss
On 6/27/07, Vance Dubberly <[EMAIL PROTECTED]> wrote: > Moved http://opensource.arc.nasa.gov to django a couple of weeks ago. > Thought ya'll might want to know that. Congrats :) > Also thought you might want to know the site was running on Tomcat/Mysql and > the performance difference is mind b

Re: nasa site on django

2007-06-28 Thread Jacob Kaplan-Moss
On 6/28/07, Vance Dubberly <[EMAIL PROTECTED]> wrote: > Django suffers from running under mod_python in > a prefork environment where every process loads a full copy of django. So > as I'm sure you can imagine RAM gets chewed up very quickly. Are you running Django behind a load balancer like Pe

Re: Accessing Web Services using Django

2007-07-03 Thread Jacob Kaplan-Moss
Hey Roboto -- There isn't anything Django-specific about consuming web services; it's just Python. You might want to check out the section of Dive Into Python that covers web services: http://diveintopython.org/http_web_services/index.html God luck, Jacob --~--~-~--~~~-

Re: YUI tags

2007-07-05 Thread Jacob Kaplan-Moss
Hi Todd -- You might find writing those "nested" template tags a bit tricky; there's a not-very-well-documented method you'll need to pull out the sub-tags. I've got an example of how you can do these types of nested tags here: http://www.djangosnippets.org/snippets/300/ Good luck! Jacob --~-

Re: one to many

2007-07-07 Thread Jacob Kaplan-Moss
On 7/7/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I'm curious about the use of instance._set. If I have models: > > class Foo(models.Model): > # something > > class Bar(models.Model): > myFoo = models.ForeignKey(Foo) > > ...would I be able to say barInstance.myFoo_set.[] ? By default,

Re: Eclipse and PyDev setup

2007-07-11 Thread Jacob Kaplan-Moss
HI Fred -- In the future, please don't cross-post to django-users and django-dev; django-dev is used to discuss the development of Django itself, not to answer usage questions. Thanks! Jacob --~--~-~--~~~---~--~~ You received this message because you are subscri

Re: little problem

2007-07-13 Thread Jacob Kaplan-Moss
On 7/13/07, JeffH <[EMAIL PROTECTED]> wrote: > > if getattr(model_instance, 'id', None) is None: > model_instance.created_by = whatever > Also take a look at ``hasattr()``: http://docs.python.org/lib/built-in-funcs.html#l2h-35 Jacob --~--~-~--~~~---~--~~ You re

Re: flatpages issues

2007-07-13 Thread Jacob Kaplan-Moss
Hi John-Scott -- Did you add 'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware' to your ``MIDDLEWARE_CLASSES`` setting? Jacob --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To p

Re: flatpages issues

2007-07-16 Thread Jacob Kaplan-Moss
On 7/16/07, John-Scott <[EMAIL PROTECTED]> wrote: > Can someone in the know confirm or deny that adding the catch-all line > to urls.py is in fact required to invoke flatpages? No, it's not; the fallback middleware works fine for me. If it's not working for you, chances are you've got something m

Re: regex in url

2007-07-17 Thread Jacob Kaplan-Moss
On 7/16/07, james_027 <[EMAIL PROTECTED]> wrote: > Yes I am looking for the explanation of ?P syntax, is this > something related to python's regex or django's own regex. Ned's quick answer below is quite clear, I think, but if you'd like more details from the horse's mouth (as it were), the offi

Re: Bulk data upload

2007-07-18 Thread Jacob Kaplan-Moss
On 7/18/07, Tim Chase <[EMAIL PROTECTED]> wrote: > I dislike CSV because it takes extra overhead to > synchronize the flavors of them (how are quotes quoted? are > values quoted? etc). Psst! Check out Python's built-in ``csv`` module (http://docs.python.org/lib/module-csv.html); it handles all t

Re: Django on a shared host. The docs are scaring me ;)

2007-07-19 Thread Jacob Kaplan-Moss
On 7/19/07, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > Gypsy is run by Jacob, so naturally ... - afaik they have a waiting > list. Actually, "they", err... me, are basically defunct; turned out running a hosting company is a lot more work than I thought Jacob --~--~-~--~~--

Re: How to do not escape a unicode string in Django

2007-07-23 Thread Jacob Kaplan-Moss
Hi David -- It's probably just your shell; try ``print myobject`` instead. Jacob --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.

Re: Displaying the contents of a Dict (Using POST)...showing 'x' and 'y' keys?

2007-07-27 Thread Jacob Kaplan-Moss
On 7/27/07, Greg <[EMAIL PROTECTED]> wrote: > It should only have 8 keys (1 through 8). Instead I see the keys 'x' > and 'y'? It's causing a problem when I try to loop through my POST > data. > > Does anybody know why this is happening? You're probably using an - those send along x/y coords of

Re: newforms: common constraints

2007-07-27 Thread Jacob Kaplan-Moss
On 7/27/07, james_027 <[EMAIL PROTECTED]> wrote: > but those min max constraints are so common? why not include it? Because "common" is different for any given user and/or site. I think *I've* only written a single form with min/max validation, FWIW. Designing a framework is hard; you've got to s

Re: edit_inline following multiple relations in the admin site

2007-07-27 Thread Jacob Kaplan-Moss
On 7/27/07, Jos Houtman <[EMAIL PROTECTED]> wrote: > Is this possible without denormalization of the data model or is my only > viable option in writing a separate view? edit_inline doesn't nest, so those are (unfortunately) your only two choices. Jacob --~--~-~--~~~

Re: Wrong assertion in __init__ of ValidationError?

2007-07-30 Thread Jacob Kaplan-Moss
Hi Gilbert -- Yeah, this is a bug; it's on my shortlist to fix. Jacob --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsu

Re: Problem with __setattr__ and __getattribute__

2007-08-01 Thread Jacob Kaplan-Moss
Hi Dave -- I'm not sure what's going on in your code example, but there's a *much* easier way of copying an object:: >>> o = MyModel.objects.get(pk=1) >>> o.id = None >>> o.save() By setting the ID (or whatever your primary key is called) to ``None`` and calling save() you'll force

Re: Firebird support

2007-08-02 Thread Jacob Kaplan-Moss
On 8/2/07, james_027 <[EMAIL PROTECTED]> wrote: > anybody here heard of firebird database? how can I get support from > django? This has been discussed before on django-dev; please search the archives. Jacob --~--~-~--~~~---~--~~ You received this message because

Re: django app for managing sending email to users...

2007-08-03 Thread Jacob Kaplan-Moss
On 8/3/07, James Tauber <[EMAIL PROTECTED]> wrote: > I was thinking of developing a django app for this with support for > queuing and throttling of sends, scheduled sends, and logging of mail > failures. I'm NOT interested at all in using it for unsolicited email > (although unfortunately there's

Re: mod_python/django problems

2007-08-03 Thread Jacob Kaplan-Moss
On 8/3/07, Aljosa Mohorovic <[EMAIL PROTECTED]> wrote: > on few blogs/web sites it is stated that > 30 django sites on one > server running apache/mod_python have some issues, like untraceable > errors and wrong site displaying for some domain. > any comments on this? When something like this hap

Re: Launchpad - Community for free projects

2007-08-10 Thread Jacob Kaplan-Moss
On 8/10/07, Jonas <[EMAIL PROTECTED]> wrote: > I found a great service to hosting free projects of software that let > a great relation with the community and integration with Bazaar > control version. Its name is launchpad.net, and the company behind is > Canonical, the Ubuntu's creator. I'm not

Re: Presentations about Django?

2007-08-10 Thread Jacob Kaplan-Moss
Hi Horst -- See http://www.djangoproject.com/community/logos/ -- that page has downloadable high-res logos, along with some pretty simple usage guidlines. In general, as long as you're using the Django logo to promote Django itself (and not some other project/product), nobody's going to come down

Re: Presentations about Django?

2007-08-10 Thread Jacob Kaplan-Moss
On 8/10/07, Vincent Foley <[EMAIL PROTECTED]> wrote: > Has your "Django Master Class" at OSCON 07 been taped? It wasn't, but the handouts contain nearly all the info, and you can find 'em here: http://toys.jacobian.org/presentations/2007/oscon/tutorial/ Jacob --~--~-~--~~---

Re: Presentations about Django?

2007-08-10 Thread Jacob Kaplan-Moss
On 8/10/07, Brian Rosner <[EMAIL PROTECTED]> wrote: > I saw the video of you presenting Django to Google at one of their Tech > Talks and I am not sure if I read/heard this somewhere, but is that > presentation freely available under the Creative Commons license or > something? It's at http://vid

Re: Launchpad - Community for free projects

2007-08-10 Thread Jacob Kaplan-Moss
On 8/10/07, Jonas <[EMAIL PROTECTED]> wrote: > I posted it here bacause I have been that there are many projects > based on Python/Django hosted on Google Code and as found a better > service where the community can integrate and participate better then > I said it. Fair enough; I'm just *extreme

Re: Django Book Site is down

2007-08-15 Thread Jacob Kaplan-Moss
On 8/15/07, eriku777 <[EMAIL PROTECTED]> wrote: > Its back up. My apologies for the thread but I could not figure out > how to get in touch with the server admins. [EMAIL PROTECTED] will do it. FYI, my colo facility is having routing issues; might be a bit more downtime in the next day or so.

Re: mutual exclusion

2007-08-17 Thread Jacob Kaplan-Moss
On 8/17/07, Derek Anderson <[EMAIL PROTECTED]> wrote: > this means 16 mailer threads (or 32, if two machines). but i only want > one mailer thread running at a time. (to avoid sending duplicate emails > during a race condition) but apache kills and restarts processes, so i > can't just randoml

ANN: Making some changes to djangoproject.com

2007-09-07 Thread Jacob Kaplan-Moss
Howdy folks -- A quick announcement: I'm going to be making some changes to djangoproject.com over the next week or so. The first of those changes are done and don't appear to have broken anything, but if you notice anything busted, please send me an email ([EMAIL PROTECTED]). These changes ar

Re: Django Book

2007-09-07 Thread Jacob Kaplan-Moss
On 9/7/07, Griffin Caprio <[EMAIL PROTECTED]> wrote: > This may have been answered already, but I couldn't find it. What's > the status of www.djangobook.com? The last update is dated Jan 24 > 2007 and two chapters are still TBA. Has the book been abandoned ? No, we're finishing up the book fo

Re: ANN: Making some changes to djangoproject.com

2007-09-07 Thread Jacob Kaplan-Moss
On 9/7/07, ToddG <[EMAIL PROTECTED]> wrote: > You're rewriting Django in Java! Finally, enterprise capability! Dammit, that news wasn't supposed to leak! Who told you!? Jacob --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: *Occasional* PostgreSQL Error

2008-01-25 Thread Jacob Kaplan-Moss
Hi Doug -- On 1/24/08, Doug Van Horn <[EMAIL PROTECTED]> wrote: > OperationalError: could not connect to server: No such file or > directory >Is the server running locally and accepting >connections on Unix domain socket "/var/run/postgresql/.s.PGSQL. > 5432"? This means that, fo

Re: Iterating over very large queryset

2008-01-30 Thread Jacob Kaplan-Moss
On 1/30/08, James Bennett <[EMAIL PROTECTED]> wrote: > On Jan 30, 2008 10:21 AM, Jarek Zgoda <[EMAIL PROTECTED]> wrote: > > Can you share any hints on how to reduce the memory usage in such > > situation? The underlying database structure is rather complicated and I > > would like to not do all qu

Re: sort order

2008-01-31 Thread Jacob Kaplan-Moss
On 1/31/08, Nianbig <[EMAIL PROTECTED]> wrote: > I would like to add the functionality to be able to manually sort > these objects in the Django-admin... I´ve tried doing this by just > adding a integerfield... but it is not so user friendly... are there > any built-in functions for this in Django

Re: Accessing the Admin class

2008-02-04 Thread Jacob Kaplan-Moss
On 2/4/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Anyone know what I'm doing wrong? It's really not you: Django does some magic with the inner Admin class and stuffs it away elsewhere. You can get at it via ``Model._meta.admin``. However, before you do, I'd recommend at least looking at

Re: Unicode error

2008-02-05 Thread Jacob Kaplan-Moss
On 2/5/08, Kristian Øllegaard <[EMAIL PROTECTED]> wrote: > Is there an obvious thing i did wrong? Have you heard about this error > before? This is because of the changes in Unicode handling after 0.96; read more here: http://code.djangoproject.com/wiki/UnicodeBranch#PortingApplicationsTheQuickC

Re: Improperly configured exception

2008-02-05 Thread Jacob Kaplan-Moss
On 2/5/08, Schmoopie <[EMAIL PROTECTED]> wrote: > Improperly configured > Error while importing URLconf 'mysite.urls' > > but there is no explanation here as to what is wrong with the > configuration. What could be causing this? It probably means that your ROOT_URLCONF, `mysite.urls`, is missing

Re: Questions related to testing Django application using Sqlite

2008-02-05 Thread Jacob Kaplan-Moss
On 2/5/08, Manoj Govindan <[EMAIL PROTECTED]> wrote: > Recently I tried using Sqlite instead of Postgres as the database > engine for testing one of my django applications. > My observations follow: > > 1) Tests ran significantly faster[1]. Under Sqlite tests run in an in-memory database, so this

Re: User permissions

2008-02-06 Thread Jacob Kaplan-Moss
On 2/6/08, James Bennett <[EMAIL PROTECTED]> wrote: > Some amount of time between "now" and "the heat death of the > universe". There is no estimate, no timeline, no schedule, no ETA, no > guess, nor any other synonym of any of those words. ... though given the choices, I'd be inclined to wager t

  1   2   3   4   5   6   >