Re: Detecting modifications in ManyToMany field

2015-03-08 Thread Fabien Schwob
> > https://docs.djangoproject.com/en/1.7/ref/signals/#m2m-changed > On Sat, Mar 7, 2015 at 7:57 AM, Fabien Schwob <xphut...@gmail.com> wrote: > >> Hello, >> >> I would like to detect changes in a ManyToMany field, to update data >> in the linked Model. I've two objects : &

Detecting modifications in ManyToMany field

2015-03-07 Thread Fabien Schwob
=self.id).categories.all() Any solutions to handle this case ? With a custom signal, or anything else ? Thanks -- Fabien Schwob -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving e

Using multiples version of Django on the same server

2007-09-07 Thread Fabien Schwob
Hello, I'm setting up a new server to host my Django projects and they don't each use the same version of Django (0.95, 0.96 and svn). Is their a way to configure each virtualhost to use their own version of Django ? Thanks -- Fabien SCHWOB

ORM API and applications best practice

2007-08-15 Thread Fabien Schwob
can't access the avatar field in a good way (with select_related()). What is the good solution to solve this problem ? Thanks -- Fabien SCHWOB --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users&q

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

2007-08-06 Thread Fabien Schwob
> I'm happy to start up django-mailer list at Google Groups if people > prefer. How is it possible to help ? I'm about to write somethink like django-mailer for a website I maintain, so I think it's better to contribute to django-mailer. Does you already have an idea of the architecture of

Error was: 'module' object has no attribute 'process_register'

2007-08-03 Thread Fabien Schwob
%} I've the problem on : * Django : trunk (I've make an svn up today) / Python : 2.5 / DB: Sqlite * Django : trunk (from ~1 week) / Python : 2.4.4 / DB: Sqlite Does someone know how to solve this issue ? Thanks -- Fabien SCHWOB --~--~-~--~~~---~--~~ You received

Re: Django equivalent of ROR flash

2007-08-02 Thread Fabien Schwob
Hello, > Does Django have this > http://api.rubyonrails.com/classes/ActionController/Flash.html Django provides something similar in the authentification app, but it works only the the authentificated users : http://www.djangoproject.com/documentation/authentication/#messages --

Re: Do I have to send shopping cart data to every template in my app?

2007-08-02 Thread Fabien Schwob
ttp://www.djangoproject.com/documentation/templates_python/#writing-your-own-context-processors -- Fabien SCHWOB --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send e

Re: Best practices to provide Django on a shared host

2007-07-05 Thread Fabien Schwob
or 7.04). So, with this link I don't know how are Textdrive server configured. My goal is for example to provide a tutorial on how to build something like Gypsyhosting from a clean Ubuntu install. Thanks -- Fabien SCHWOB --~--~-~--~~~---~--~~ You received this message

Best practices to provide Django on a shared host

2007-07-05 Thread Fabien Schwob
to *touch* the fcgi script. My goal is to build my shared hosting and to create a document on how to do that. So, any help are welcome. Thanks. -- Fabien Schwob --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Djan

Re: Creating a decoration for the views

2006-10-24 Thread Fabien Schwob
> # Create the decorator > def decorador(function): > def new_function(*args, **kwargs): > # Do what need do > return function(*args, **kwargs) > new_function.__doc__ = function.__doc__ > new_function.__name__ = function.__name__ > return new_function > >

Creating a decoration for the views

2006-10-23 Thread Fabien Schwob
Hello, I've some code which is duplicated between all my views and it violate the DRY principle. So, I would like to use the decorators to eliminate the duplicated code. Does someone has a simple example on how to do that. The code I would like to factorise is the following one : if

send_mail and ESMTP

2006-09-24 Thread Fabien Schwob
Hello, I would like to know if someone here has already tried to send mail using an ESMTP compatible server. When I'm trying to do that, I get the following error : smtplib.SMTPAuthenticationError: (535, 'authorization failed (#5.7.0)') And I can't see if the problem come from Django or from

Re: Filter, ForeignKey and edit_inline

2006-08-17 Thread Fabien Schwob
> To do the filter you want, you can use the 'range' field lookup: > import datetime > start_date = datetime.date.today() > end_date = some_other_date > events = > Event.objects.filter(eventdate__beginning_date__range=(start_date, > end_date)) > > If you've already picked an event, you can get

Re: Django, mod_python and 403 error

2006-08-17 Thread Fabien Schwob
> It'd be a great help if you pasted the errors from Apache's error log. > Also, what kind of 403 errors do you get -- could you include a link > to a screenshot? In the error log I get : [Thu Aug 17 18:31:01 2006] [error] [client 86.73.128.192] (13)Permission denied: cannot read directory for

Re: Django, mod_python and 403 error

2006-08-16 Thread Fabien Schwob
Nobody have an idea on how to solve this problem ? On 8/10/06, Fabien Schwob <[EMAIL PROTECTED]> wrote: > Hello, > > The development of my Django site is on the way. And in order to try > it online, I've decided to install it under Apache + mod_python. But > when I'm tryin

Django, mod_python and 403 error

2006-08-09 Thread Fabien Schwob
Hello, The development of my Django site is on the way. And in order to try it online, I've decided to install it under Apache + mod_python. But when I'm trying to access it, I get a 403 errors on all pages except the index page. I've installed it at http://www.cocoa.fr and the virtual host

Filter, ForeignKey and edit_inline

2006-07-22 Thread Fabien Schwob
Hello, I'm currently developing a Django application and I've a problem in how to use the filter() function. I've two models that can me resumed as : Class Event: location = models.ForeignKey(Place) name = models.CharField(maxlength=200) public_price =

Relations accros multiple apps

2006-06-16 Thread Fabien Schwob
(User.user) Is-it possible to do that ? Thanks -- Fabien SCHWOB _ Derrière chaque bogue, il y a un développeur, un homme qui s'est trompé. (Bon, OK, parfois ils s'y mettent à plusieurs