Re: How to filter out posts from friends?

2009-07-01 Thread Mathieu Leplatre
On 1 juil, 14:44, coan wrote: > I have a friendship model for users and want to retrieve all the posts > my friends made. > > class Friendship(models.Model): >  from_friend = models.ForeignKey( User, related_name='friend_set' ) >  to_friend = models.ForeignKey( User, related_name='to_friend_set'

Re: Making a ManyToManyField to its own model?

2009-07-01 Thread Mathieu Leplatre
On 1 juil, 10:45, littlejim84 wrote: > I'm new to Django, and I'm developing an project where I have an app > called 'people' and a model inside called 'person'. The project itself > is based around the idea of people connecting with each other... So, I > as a person can connect to 3 other person

How to model a OneToMany relation to an abstract class ?

2009-07-01 Thread Mathieu Leplatre
Hi all, I am trying to design the following model : - a checklist is a collection of checkpoints - a checkpoint can be an action, or a group of actions. - the same action can be in several groups I read the Generic relations documentation : http://www.djangoproject.com/documentation/models

Re: Error: No module named X (django standalone script)

2008-09-18 Thread Mathieu Leplatre
On Sep 17, 10:41 pm, Eric Abrahamsen <[EMAIL PROTECTED]> wrote: > On Sep 17, 2008, at 11:45 PM, Mathieu Leplatre wrote: > > > > > > > Hi all, > > > I am starting a new thread, the first one became off-topic (http:// > > groups.googl

Error: No module named X (django standalone script)

2008-09-17 Thread Mathieu Leplatre
Hi all, I am starting a new thread, the first one became off-topic (http:// groups.google.com/group/django-users/browse_thread/thread/ 34b501d2d1f88496/f8a5d5ef5aeab62a) I want to do a simple external script that just relies on django's ORM. So I did a single file testdjango.py : -- import

Re: How to syncdb programatically (django standalone script) ?

2008-09-17 Thread Mathieu Leplatre
bout that in the Django documentation web site. > I hope it was helpfull > > []s > Ronaldo. > > On Tue, Sep 16, 2008 at 7:53 PM, Mathieu Leplatre <[EMAIL PROTECTED]> wrote: > > > Should I post a new thread ? > > I cannot find anything about this way of

Re: How to syncdb programatically (django standalone script) ?

2008-09-16 Thread Mathieu Leplatre
Should I post a new thread ? I cannot find anything about this way of using Django... On Sep 16, 9:12 am, Mathieu Leplatre <[EMAIL PROTECTED]> wrote: > Thanks for the tip. > > Indeed it loooks to be the way, however I am having app_label > errors... > It complains >

Re: How to syncdb programatically (django standalone script) ?

2008-09-16 Thread Mathieu Leplatre
Thanks for the tip. Indeed it loooks to be the way, however I am having app_label errors... It complains Error: No module named p (for polls) If I put my script in a module or remove Meta : File "[...]/django/db/models/base.py", line 51, in __new__ kwargs = {"app_label": model_module.__name

How to syncdb programatically (django standalone script) ?

2008-09-15 Thread Mathieu Leplatre
Hi all, I found many post about specific errors regarding django as a standalone tool. With a little bit of researching, I ended up with this script below. Unfortunately, it fails on database initialization. ... ... File "/home/mathieu/Code/uhm/svn/uhm/django/db/backends/sqlite3/ base.py", lin

Re: Send emails using sendmail or postfix

2008-09-01 Thread Mathieu Leplatre
On Sep 1, 4:02 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Mon, 2008-09-01 at 11:39 -0700, Mathieu Leplatre wrote: > > Hi all, > > > According to the documentation, email sending is done through smtp. > > Is there a way to use sendmail or postfix instead ?

Send emails using sendmail or postfix

2008-09-01 Thread Mathieu Leplatre
Hi all, According to the documentation, email sending is done through smtp. Is there a way to use sendmail or postfix instead ? Thank you. Mathieu. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" gro