RE: Including [django-users] in subject line?

2007-06-09 Thread Mike Schinkel
Chris Moffitt wrote: > Not to pile on but if you'd like a google mail account for list > purposes, that's always an option. It has a very nice way of allowing you to tag messages and file them accordingly. You can also use pop if you want to consolidate with your other mail boxes. Procmail is

Re: Including [django-users] in subject line?

2007-06-09 Thread Mike Schinkel
Simon Drabble write > On Sun, 10 Jun 2007, Kenneth Gonsalves wrote: > > On 10-Jun-07, at 7:33 AM, Mike Schinkel wrote: > >> Does anyone know of a free service (or software) that I > could proxy > >> through that would let me add a subject header? Given that it > >> appears to be a non-negotiable

Online Money Making Scams Revealed!

2007-06-09 Thread edcwealth5
Tired of being scammed? Don't be another victim like me! I have written a report on these so called 'get rich quick programs' check it out: http://www.cgmoney.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: New forms library - omit field

2007-06-09 Thread JP
This link was very useful to me, thank you!. On Jun 9, 4:06 pm, eXt <[EMAIL PROTECTED]> wrote: > Huh.. It looks that I've found an answer to my question by myself. > Here is helpful link:http://weblog.bignerdranch.com/?p=31 > > -- > Jakub Wisniowski

Re: Including [django-users] in subject line?

2007-06-09 Thread Kenneth Gonsalves
On 10-Jun-07, at 7:33 AM, Mike Schinkel wrote: > Does anyone know of a free service (or software) that I could proxy > through > that would let me add a subject header? Given that it appears to be a > non-negotiable on the list, that's about the only potential > solution left > that I can

RE: Including [django-users] in subject line?

2007-06-09 Thread Mike Schinkel
Chris: >> Not to pile on but if you'd like a google mail account for list purposes, that's always an option. It has a very nice way of allowing you to tag messages and file them accordingly. You can also use pop if you want to consolidate with your other mail boxes. Procmail is also a handy

Re: Including [django-users] in subject line?

2007-06-09 Thread Dave Lists
Ramiro Morales wrote: > On 6/9/07, Mike Schinkel <[EMAIL PROTECTED]> wrote: >> I'm curious how many people of the 5000+ would prefer no ID in subject? > >> Is it a majority, or just a very vocal minority? >> > > /me raise hand. > > Come on, even GMail has a way to create a filter > that

RE: Including [django-users] in subject line?

2007-06-09 Thread Mike Schinkel
[EMAIL PROTECTED] wrote: > > http://www.robbyonrails.com/articles/2006/04/13/canada-on-rail > s-day-1-part-1 > > Why does this keep seeming more and more accurate every day You mean the part about "This fairly dismissive treatment of people's legitimate concerns...?" -- -Mike Schinkel

RE: Including [django-users] in subject line?

2007-06-09 Thread Mike Schinkel
James Bennett wrote: > On 6/9/07, Mike Schinkel <[EMAIL PROTECTED]> wrote: > > Ironic. I was asking for a method that would help me make the list > > more managable, and have been told "no." Ironic because it > will likely > > cause me to leave before I can really learn more about Django, my

Re: Including [django-users] in subject line?

2007-06-09 Thread Ramiro Morales
On 6/9/07, Mike Schinkel <[EMAIL PROTECTED]> wrote: > > I'm curious how many people of the 5000+ would prefer no ID in subject? > Is > it a majority, or just a very vocal minority? > /me raise hand. Come on, even GMail has a way to create a filter that tags a message according to some pattern

Re: Including [django-users] in subject line?

2007-06-09 Thread Chris Moffitt
Not to pile on but if you'd like a google mail account for list purposes, that's always an option. It has a very nice way of allowing you to tag messages and file them accordingly. You can also use pop if you want to consolidate with your other mail boxes. Procmail is also a handy option..

Re: Including [django-users] in subject line?

2007-06-09 Thread Forest Bond
On Sat, Jun 09, 2007 at 09:23:15PM -0400, Mike Schinkel wrote: > > Malcolm Tredinnick wrote; > > > > Outlook has had rule-based sorting into other mailboxes for a while, > > > > so I would have thought it was possible to use that. > > > > > > It does have that. And I tried that for a while,

Re: Including [django-users] in subject line?

2007-06-09 Thread James Bennett
On 6/9/07, Mike Schinkel <[EMAIL PROTECTED]> wrote: > Ironic. I was asking for a method that would help me make the list more > managable, and have been told "no." Ironic because it will likely cause me > to leave before I can really learn more about Django, my reason for wanting > to get on the

RE: Including [django-users] in subject line?

2007-06-09 Thread Malcolm Tredinnick
On Sat, 2007-06-09 at 19:53 -0400, Mike Schinkel wrote: > > Malcolm Tredinnick wrote: > > Outlook has had rule-based sorting into other mailboxes for a > > while, so I would have thought it was possible to use that. > > It does have that. And I tried that for a while, but found it to be >

RE: Including [django-users] in subject line?

2007-06-09 Thread Mike Schinkel
James Bennett wrote: > I'm sorry if it sounded rude; again, I wasn't trying to pick > on you, but it's also hard to articulate this without > sounding like an asshole. It's kind of a lose-lose situation. And I apologize for reacting badly. No harm, no foul. > And this is really great for

Re: override get_next_by_FOO() / get_previous_by_FOO()

2007-06-09 Thread Jonathan Stockdill
I found myself in a similar position and used the following: def get_next_pub(self): return self.get_next_by_pub_date(pub_date__lt=datetime.now (),is_draft=False) def get_previous_pub(self): return self.get_previous_by_pub_date(pub_date__lt=datetime.now

Re: Including [django-users] in subject line?

2007-06-09 Thread James Bennett
On 6/9/07, Mike Schinkel <[EMAIL PROTECTED]> wrote: > Thanks for the warm welcome to a new list member. I'm sorry if it sounded rude; again, I wasn't trying to pick on you, but it's also hard to articulate this without sounding like an asshole. It's kind of a lose-lose situation. This list has

RE: Including [django-users] in subject line?

2007-06-09 Thread Mike Schinkel
Malcolm Tredinnick wrote: > Outlook has had rule-based sorting into other mailboxes for a > while, so I would have thought it was possible to use that. It does have that. And I tried that for a while, but found it to be "out-of-sight, out-of-mind." It's worse than just going to the group

RE: Including [django-users] in subject line?

2007-06-09 Thread Malcolm Tredinnick
On Sat, 2007-06-09 at 18:42 -0400, Mike Schinkel wrote: > Malcolm Tredinnick wrote: > > > Is there any chance the owners of this list could modify the > > > configuration so that the emails contain [django-users] in > > the subject > > > line? It would make it so much easier to deal with the

RE: Including [django-users] in subject line?

2007-06-09 Thread Mike Schinkel
Malcolm Tredinnick wrote: > > Is there any chance the owners of this list could modify the > > configuration so that the emails contain [django-users] in > the subject > > line? It would make it so much easier to deal with the volume of > > email if this could be done. > > No. Sorry. > >

RE: Including [django-users] in subject line?

2007-06-09 Thread Mike Schinkel
James Bennett wrote: > This is more of a general plea on behalf of those of us who > already get more email than we can reasonably read: before > posting to this list, please remember that the archive is on > Google Groups, and that Google is *really* good at searching; > you may be able to

Re: Signals and many-to-many relatiion

2007-06-09 Thread Krzysztof Kaczmarek
Any solution? Maybe can I override MyClass.MyMMRealtion.add() and MyClass.MyMMRealtion.remove()? On 10 Cze, 00:25, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Sat, 2007-06-09 at 23:42 +0200, sihing Krzysztof Kaczmarek wrote: > > Hello, > > > How can I detect changes (add and remove) in

Re: Including [django-users] in subject line?

2007-06-09 Thread James Bennett
On 6/9/07, Mike Schinkel <[EMAIL PROTECTED]> wrote: > Is there any chance the owners of this list could modify the configuration > so that the emails contain [django-users] in the subject line? It would > make it so much easier to deal with the volume of email if this could be > done. I'm not

Re: Signals and many-to-many relatiion

2007-06-09 Thread Malcolm Tredinnick
On Sat, 2007-06-09 at 23:42 +0200, sihing Krzysztof Kaczmarek wrote: > Hello, > > How can I detect changes (add and remove) in many-to-many relation > using Django signals framework? > > I used signals.post_save, but it's called to early (before add/remove > objects from many-to-many

Re: Including [django-users] in subject line?

2007-06-09 Thread Malcolm Tredinnick
On Sat, 2007-06-09 at 18:12 -0400, Mike Schinkel wrote: > Is there any chance the owners of this list could modify the configuration > so that the emails contain [django-users] in the subject line? It would > make it so much easier to deal with the volume of email if this could be > done. No.

Re: Error Handling

2007-06-09 Thread Malcolm Tredinnick
On Sat, 2007-06-09 at 22:13 +, Christopher wrote: > Is there a way that I can do something like this in Python? > > try: > # Do something > except not MyModel.DoesNotExist: > # Handle it... > > I want to handle all exception except if it's a DoesNotExist one. > Then I don't care. This

Signals and many-to-many relatiion

2007-06-09 Thread sihing Krzysztof Kaczmarek
Hello, How can I detect changes (add and remove) in many-to-many relation using Django signals framework? I used signals.post_save, but it's called to early (before add/remove objects from many-to-many relation). Any ideas? Krzysztof Kaczmarek

Error Handling

2007-06-09 Thread Christopher
Is there a way that I can do something like this in Python? try: # Do something except not MyModel.DoesNotExist: # Handle it... I want to handle all exception except if it's a DoesNotExist one. Then I don't care. --~--~-~--~~~---~--~~ You received this

Including [django-users] in subject line?

2007-06-09 Thread Mike Schinkel
Is there any chance the owners of this list could modify the configuration so that the emails contain [django-users] in the subject line? It would make it so much easier to deal with the volume of email if this could be done. Thanks in advance. -- -Mike Schinkel

Re: Admin Error

2007-06-09 Thread Christopher
I got it, no worries :) On Jun 9, 5:30 pm, Christopher <[EMAIL PROTECTED]> wrote: > looks like it's not when i am saving but rather trying to list the > one's I have saved. > > On Jun 9, 5:26 pm, Christopher <[EMAIL PROTECTED]> wrote: > > > Hi, I am using Django SVN version updated today. I

Custom mod_python handlers with Django

2007-06-09 Thread Mike H
Hi all, I've posted the first in a series of posts about how to implement your own mod_python handlers using Django. I started it because I wanted to serve resized images without hitting the database, running middleware etc., but still have access to the django project settings (so I could

Re: Custom filters failing with "no module"

2007-06-09 Thread James Bennett
On 6/9/07, Andrew R <[EMAIL PROTECTED]> wrote: > I think a better long term solution is something like: > > Template.add_templatetags_file('filename.py') > So long as your code is in a location where your code can be imported by Python, there is another way; there are a couple of

Re: New forms library - omit field

2007-06-09 Thread eXt
Huh.. It looks that I've found an answer to my question by myself. Here is helpful link: http://weblog.bignerdranch.com/?p=31 -- Jakub Wisniowski --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

New forms library - omit field

2007-06-09 Thread eXt
Hi all I'm building an application which makes heavy use of data input forms (add and edit). Of course I'd like to automatically generate my forms basing on my data model. I've found that Django offers 'form_for_model' function which is very cool. Here is my problem: I've got two tables A

Re: Custom filters failing with "no module"

2007-06-09 Thread Andrew R
James Bennett wrote: > On 6/6/07, Andrew R <[EMAIL PROTECTED]> wrote: >> whereas I just want it to import "javadoc_filter" from my current dir. I'm >> sure >> this is by design in django but there must be a way around it. > > This is one of the tricky bits of Django that you don't often see. >

Re: passing foreign key via post

2007-06-09 Thread Nimrod A. Abing
On 6/10/07, Car <[EMAIL PROTECTED]> wrote: > > > > Why not create it there? That is the moment you have all the data you > > need and all you're doing is calling a constructor. The code you've > > written there is a pretty normal pattern for taking form information and > > putting it into a

Re: Error from decimal.py _raise_error, line 2267

2007-06-09 Thread RichardH
On 9 Jun, 13:16, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Sat, 2007-06-09 at 04:57 -0700, RichardH wrote: > > I am running the django web server/sqlite on WinXP with Python 2.4 and > > the latest django SVN version. In keeping up with the FloatField to > > DecimalField changes I came

Re: passing foreign key via post

2007-06-09 Thread Car
> Why not create it there? That is the moment you have all the data you > need and all you're doing is calling a constructor. The code you've > written there is a pretty normal pattern for taking form information and > putting it into a model. Because it forces me to make different view for

Re: django.contrib.auth.views.login failing cookie test

2007-06-09 Thread Mike H
Ahhh! If I had been more explicit in giving you my code, we might have seen the problem sooner! The problem is that my login form is on the sidebar of my base.html - it appears on my homepage. My homepage renders directly to a template. So, the POST from my homepage goes to the login view

Re: django.contrib.auth.views.login failing cookie test

2007-06-09 Thread Malcolm Tredinnick
Hey Mike, On Sat, 2007-06-09 at 16:53 +0100, Mike H wrote: > Malcolm Tredinnick wrote: > > Assuming you have the SessionMiddleware installed, you will have a > > session created whenever you access a page that Django is responsible > > for. > > > > > > Thanks, exactly what I needed to know

Re: django.contrib.auth.views.login failing cookie test

2007-06-09 Thread Mike H
Malcolm Tredinnick wrote: > Assuming you have the SessionMiddleware installed, you will have a > session created whenever you access a page that Django is responsible > for. > > Thanks, exactly what I needed to know :) This is not happening. After the first page view, I have no session.

Re: django.contrib.auth.views.login failing cookie test

2007-06-09 Thread Malcolm Tredinnick
On Sat, 2007-06-09 at 16:33 +0100, Mike H wrote: > Hi Malcolm, > > I'm more than willing to help track down the error (as if I dont get it > fixed, I cant use Django! Asking customers to log in twice wont go down > well...) > > I have a question though : After the first load of the login

Re: django.contrib.auth.views.login failing cookie test

2007-06-09 Thread Mike H
Hi Malcolm, I'm more than willing to help track down the error (as if I dont get it fixed, I cant use Django! Asking customers to log in twice wont go down well...) I have a question though : After the first load of the login page, should a session have been started for me? Or does the

Re: Admin Error

2007-06-09 Thread Christopher
looks like it's not when i am saving but rather trying to list the one's I have saved. On Jun 9, 5:26 pm, Christopher <[EMAIL PROTECTED]> wrote: > Hi, I am using Django SVN version updated today. I have made a model > and done the Admin code so I can see it in the Admin section of my > site and

Admin Error

2007-06-09 Thread Christopher
Hi, I am using Django SVN version updated today. I have made a model and done the Admin code so I can see it in the Admin section of my site and it all looks fine. When I try to save something in there I get the following error: Django version 0.97-pre, using settings 'totalimpact.settings'

Re: django.contrib.auth.views.login failing cookie test

2007-06-09 Thread Malcolm Tredinnick
On Sat, 2007-06-09 at 15:48 +0100, Mike H wrote: > Hi, > > I'm trying to use the provided login view for my new application, > but whenever I use it, the first time i submit the login request, > AuthenticationForm returns the error > "Your Web browser doesn't appear to have cookies enabled.

Re: Event based caching

2007-06-09 Thread Malcolm Tredinnick
On Sat, 2007-06-09 at 14:52 +, Henrik Lied wrote: > Hi there! > > I haven't found anything on this, so I thought I'd ask: > Has anyone implemented event-based caching in Django? > > Hypothetical scenario > --- > A rather large social networking site uses

Re: passing foreign key via post

2007-06-09 Thread Malcolm Tredinnick
On Sat, 2007-06-09 at 14:38 +, Car wrote: > Thanks for your answer > > Now I have following snippet: > http://dpaste.com/11938/ > > But, is at a good practice to create Model objects in a view ? Where > code of that kind of operations should be placed? Why not create it there? That is the

remove inline item

2007-06-09 Thread Manuel Meyer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hey, to a model Event i attach some images. But how can I delete images from an Event? If I use something like http://localhost:8000/moor/admin/doccms/eventimage/2/delete/ manually, the Image's sql entry will be removed, but a Error

Event based caching

2007-06-09 Thread Henrik Lied
Hi there! I haven't found anything on this, so I thought I'd ask: Has anyone implemented event-based caching in Django? Hypothetical scenario --- A rather large social networking site uses memcached for caching. The Django Caching Framework only allows time-based

django.contrib.auth.views.login failing cookie test

2007-06-09 Thread Mike H
Hi, I'm trying to use the provided login view for my new application, but whenever I use it, the first time i submit the login request, AuthenticationForm returns the error "Your Web browser doesn't appear to have cookies enabled. Cookies are required for logging in." The second time i submit

Re: passing foreign key via post

2007-06-09 Thread Car
Thanks for your answer Now I have following snippet: http://dpaste.com/11938/ But, is at a good practice to create Model objects in a view ? Where code of that kind of operations should be placed? --~--~-~--~~~---~--~~ You received this message because you are

best news in one site

2007-06-09 Thread mahboobi
hi everybody ! Im from iran world peapole can find iranian and world news in iranian website named http://www.indexiran.ir indexiran this site disigned and programmed in tow language 1- http://www.indexiran.irpersian ( Farsi ) 2-http://www.indexiran.ir/english English in

best news in one site

2007-06-09 Thread mahboobi
hi everybody !Im from iranworld peapole can find iranian and world news in iranian website namedindexiranthis site disigned and programmed in tow language1- persian ( Farsi ) 2-http://www.indexiran.ir/english;> Englishin http://www.indexiran.ir/;>persian language you can find persiand agency news

Re: passing foreign key via post

2007-06-09 Thread Malcolm Tredinnick
On Sat, 2007-06-09 at 13:39 +, Car wrote: > Hi, > > I have 1:n Relation, model A which hase foreign key ("type") to B. I'm > passing foreign key to a view via post using the ModelChoiceField. > Problem is its converted into string, so when I try to create in a > view a 'A' record > > like

passing foreign key via post

2007-06-09 Thread Car
Hi, I have 1:n Relation, model A which hase foreign key ("type") to B. I'm passing foreign key to a view via post using the ModelChoiceField. Problem is its converted into string, so when I try to create in a view a 'A' record like # data = POST dictionary A( address =

Re: Django DbMigration 0.03 released

2007-06-09 Thread Marinho Brandao
Hello :) hummm.. as I can see, haves another project called DBMigration, like mine. Is a good project, congratulations :) I'll call a new name for my DBMigations [1] :) [1] http://code.google.com/p/dbmigrations/ 2007/6/9, Mike H <[EMAIL PROTECTED]>: > > Hi all, > > We've just released an

Re: Multiple SQL servers

2007-06-09 Thread Malcolm Tredinnick
On Sat, 2007-06-09 at 05:24 -0700, tma wrote: > Hi, > > I am building a web-based release system using django (which is great, > btw). I want to utilize information from our issue reporting system > ("Issues solved in this release"), but that is located on a different > server. > > Since the

Multiple SQL servers

2007-06-09 Thread tma
Hi, I am building a web-based release system using django (which is great, btw). I want to utilize information from our issue reporting system ("Issues solved in this release"), but that is located on a different server. Since the settings module is global (DATABASE_* settings), can I only

Re: Error from decimal.py _raise_error, line 2267

2007-06-09 Thread Malcolm Tredinnick
On Sat, 2007-06-09 at 04:57 -0700, RichardH wrote: > I am running the django web server/sqlite on WinXP with Python 2.4 and > the latest django SVN version. In keeping up with the FloatField to > DecimalField changes I came across an error in both the admin pages > and user pages with one of my

Django DbMigration 0.03 released

2007-06-09 Thread Mike H
Hi all, We've just released an update to the django dbmigration project. This release cleans up the code a little and improves the parsing of SQL migrations. Homepage and downloads at: http://www.aswmc.com/dbmigration/ Thanks to Chris Beaven for his patches :) MikeH

Error from decimal.py _raise_error, line 2267

2007-06-09 Thread RichardH
I am running the django web server/sqlite on WinXP with Python 2.4 and the latest django SVN version. In keeping up with the FloatField to DecimalField changes I came across an error in both the admin pages and user pages with one of my apps. In the debug page (excellent feature), an

Re: Model Method Regular Expressions

2007-06-09 Thread Kent Johnson
hass wrote: > I'm trying to set up a model with a field that swallows a healthy > dollop of html, such as a youtube embed code. > > But then, I want to use regular expressions to strip that code into > pieces that I can access independently. My first thought is that some > regular expression