Looking for a project

2009-09-20 Thread Daniel Watkins

Hello all,

As part of the third year of my computer science degree (at the
University of Warwick), I need to complete an individual project.  I'd
quite like to use this to do something for Django.  The project is meant
to be done entirely individually, which means that something that works
as a standalone app (rather than being a branch of Django itself) would
be preferable.

The project needs to be completed between the beginning of October and
April, with about 5 hours a week being spent on it.

I have a few half-formed ideas of my own, but if anyone else has an idea
of what I could do, I'd like to hear about it.


Cheers,

Dan


--~--~-~--~~~---~--~~
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
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~--~~~~--~~--~--~---



Re: Looking for a project

2009-09-20 Thread Daniel Watkins

Hi Dougal,

On Sun, 2009-09-20 at 21:10 +0100, Dougal Matthews wrote:
> It would probably be worth you listing your ideas even if they are
> half baked. This would show people what you are interested in and we
> could possibly help you develop them further.

Thanks for the reply.  I had a couple of ideas, but I can actually only
recall one of them now[0]: a Django calendar app.  This would probably
break down into a couple of parts, a CalDAV server implementation and a
frontend (similar to the role of, but not as impressive as, Google
Calendar).  The intention would be that the two should be decoupled
enough to run on separate servers.  If the former proves to be complex
(as it may well do), I'm happy to lose the latter part.

> Otherwise, you could look at the wiki for discussed features or even
> get involved in 1.2?

As I said, I'd like to avoid working on the core as part of my project,
as there may be some problems with submitting work based on an existing
free software codebase.


Dan


[Footnote 0: If only I'd written them down at the time, maybe in some
sort of email to the Django developers list.]


--~--~-~--~~~---~--~~
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
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~--~~~~--~~--~--~---



Re: Looking for a project

2009-09-20 Thread Daniel Watkins

Hey,

On Sun, 2009-09-20 at 09:45 -0700, corn13r...@gmail.com wrote:
> A django webmail app

That'd be interesting, I'll add that to my list.


Dan


--~--~-~--~~~---~--~~
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
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~--~~~~--~~--~--~---



Re: Looking for a project

2009-09-20 Thread Daniel Watkins

On Sun, 2009-09-20 at 16:26 -0700, Richard wrote:
> django-schedule is under active developement and is a great
> calendaring app.

Looking at django-schedule's website, it only seems to do the front-end
part of what I was suggesting.  Is my understanding correct?


Dan


--~--~-~--~~~---~--~~
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
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~--~~~~--~~--~--~---



Filtering on Many2Many Related Objects

2011-05-20 Thread Daniel Watkins
Hello all,

Earlier I was trying to filter for objects that had a set of other
objects related to them by a ManyToManyField.  It's a bit awkward, and
I have a couple of proposals to improve it.

Consider the following models:
  class Person(models.Model):
name = models.CharField(max_length=128)

  class Group(models.Model):
persons = models.ManyToManyField(Person)

Consider a group g containing Persons p1 and p2.  In order to filter
for groups containing p1 and p2, one has to construct a QuerySet
containing p1 and p2 and then pass that into the filter call.

I think a better syntax for this would be:
  Group.objects.filter(persons__contains=[p1,p2])

The second problem I hit was if I wanted to filter to get Groups which
_only_ containing p1 and p2 then I have to do something like:
  
Group.objects.annotate(num_persons=Count('persons')).filter(num_persons=2).filter(persons=q)
where q is the QuerySet mentioned earlier.

This would be considerably nicer:
  Group.objects.filter(persons=[p1,p2])

What do people think about this?  Is it worth my looking into some code
to do it?


Cheers,

Dan

-- 
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.
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.



Re: Filtering on Many2Many Related Objects

2011-05-29 Thread Daniel Watkins
On Sun, May 22, 2011 at 05:42:00PM -0700, Chris Beaven wrote:
> Isn't the first suggestion (__contains) achievable already by just chaining 
> two filters: Group.objects.filter(persons=p1).filter(persons=p2) ?

Sure, but if I want to filter on several different numbers of persons,
it gets very messy very quickly.  The second suggestion could also be
implemented using a count, but again that's rather unpleasant in all but
the simplest use cases.


Dan

-- 
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.
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.



Re: Django Error Display Page

2011-06-10 Thread Daniel Watkins
On Thu, Jun 09, 2011 at 08:31:44PM -0700, Valentin Golev wrote:
> What I'd really like is a stacktrace in a plain text in the html
> commentary ("") on the very top of the page.

I've opened https://code.djangoproject.com/ticket/16227 with patch
attached.


Regards,

Dan

-- 
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.
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.