Re: Pinax: worth installing?

2011-01-22 Thread James Tauber
On Jan 18, 2011, at 9:32 AM, Russell Keith-Magee wrote: > I think we need to clear up some misconceptions here. [...] > Pinax, on the other hand, works at a higher level. Pinax targets a > specific domain -- social web apps Actually, this is a major misconception. Pinax is not targeting a specif

Re: Pinax: worth installing?

2011-01-22 Thread James Tauber
On Jan 18, 2011, at 8:43 AM, Cal Leeming [Simplicity Media Ltd] wrote: > I would be interested to hear from anyone who has used Pinax in production. Pinax is used for every production site Eldarion develops on its own and most of the sites it develops for clients. Admittedly many of the apps i

Re: Pinax: worth installing?

2011-01-22 Thread James Tauber
On Jan 18, 2011, at 8:26 AM, ashdesigner wrote: > Guys, are there any considerable drawbacks of using Pinax for Django? > Is it worth installing, or is it better to launch and develop on > "pure" Django? At its most basic, Pinax is just a standard project layout for Django, taking advantage of v

Re: Help me build my site with answers to my questions from models to newsletters everybody view this at least once

2008-05-23 Thread James Tauber
On May 22, 2008, at 11:56 PM, Jeff Anderson wrote: > django isn't designed to be a mass-emailing system. It can do it, > but it is very slow compared to using mailing list software. Mailman > is written in python, and you can have django send off the one e- > mail to the mailman-driven list.

Re: helpers on managers versus models module top-level?

2008-05-23 Thread James Tauber
On May 22, 2008, at 9:29 AM, Rajesh Dhawan wrote: > On May 21, 3:30 am, James Tauber <[EMAIL PROTECTED]> wrote: >> I find myself being inconsistent in whether I put model helper >> methods >> on a custom manager or just as top-level functions in models.py >&

storing a list of arbitrary generic objects in a db field

2008-05-23 Thread James Tauber
se of multiple objects, something like "auth.user:3| another.model:id|..." Thoughts on this approach? James [1] http://code.google.com/p/django-notification/ -- James Tauber http://jtauber.com/ journeyman of some http://jtauber.com/blog/ --~--~-~--~~-

helpers on managers versus models module top-level?

2008-05-21 Thread James Tauber
James -- James Tauber http://jtauber.com/ journeyman of some http://jtauber.com/blog/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Re: symmetrical associations

2008-05-16 Thread James Tauber
On May 14, 2008, at 5:53 PM, Russell Keith-Magee wrote: > Hi James, > > It sounds like you might be looking for ticket #6095 [1]. This lets > you define an intermediate model to use for m2m relations. This allows > you to put attributes on the arc, query over the arc attributes, and > be symmetri

symmetrical associations

2008-05-14 Thread James Tauber
two foreign keys but (a) this leads to a superfluous related_name; (b) how do you best query a node for its arcs? If the arc were just a M2M field on the node, one could use symmetrical=True but it isn't clear to me the best way to do this where the arc/association is its own m

Re: Best practices for sending bulk (+4000) mail in Django / Python

2008-04-23 Thread James Tauber
s intended to be used for exactly this. It's not usable yet, but could always do with more people driving it to completion. See http://code.google.com/p/django-mailer/ James -- James Tauber http://jtauber.com/ journeyman of s

Re: How often do you update your django?

2008-03-26 Thread James Tauber
It might be worth adding that this approach works for Django because development takes place on branches not the trunk. Other open source projects may use the trunk for development, in which case what people are saying about how often they update Django won't apply to those projects. Jus

Re: another complex SQL / extra() question

2007-09-06 Thread James Tauber
expected output. Well, it turned out the lack of results (doesn't work = no results at all) was a snafu on the templating side but I appreciate your SQL insights which was a large part of what I was looking for advice on as well. James -- James Tauber http://jtaub

another complex SQL / extra() question

2007-09-06 Thread James Tauber
WHERE c = 1 ) """], params=[source.id] ) but that doesn't work either (even though the raw SQL does, even with the WHERE id IN (...). ) Any ideas? James -- James Tauber http://jtauber.com/

second query question

2007-08-28 Thread James Tauber
There's another query I want to do that I can't seem to wrap my head around at the moment: Say I have a model where Things have Properties each of a particular PropertyType. So class Property(models.Model): thing = models.ForeignKey(Thing) property_type = models.ForeignKey(P

query where m2m field is to have values from one set but not another

2007-08-28 Thread James Tauber
I have a model where each Blah can come from one or more Sources. i.e. I have: class Blah(models.Model): ... sources = models.ManyToManyField(Source) The query I want to perform is to find all the Blahs that come from sources 1 or 2 but not sources 3 or 4. My first attempt was:

Re: explicit m2m model

2007-08-22 Thread James Tauber
make sure that when Friendship(A, B) is created, Friendship(B, A) is done so automatically. And similarly if Friendship (A, B) is deleted, delete the corresponding reversal. I'm just wondering the recommended way to do that. James On 23/08/2007, at 2:43 AM, Russell Keith-Magee wrote: >

Re: explicit m2m model

2007-08-22 Thread James Tauber
So bottom line is I *can* do it, but I have to do the work myself? I'll re-look through the archives. Thanks! James On 23/08/2007, at 2:03 AM, Russell Keith-Magee wrote: > > On 8/23/07, James Tauber <[EMAIL PROTECTED]> wrote: >> >> Say I want to express a symm

explicit m2m model

2007-08-22 Thread James Tauber
Say I want to express a symmetric m2m in a separate model. In other words, instead of class Person(models.Model): ... friends = models.ManyToManyField('self') I wanted class Person(models.Model): ... class Friendship(models.Model): to_person = models.ForeignKe

django-atompub: full atom feed support

2007-08-22 Thread James Tauber
rator. See http://code.google.com/p/django-atompub/wiki/LegacyGuide for instructions. I'm particularly interested in people testing out the legacy support but welcome general feedback about atom.py and the documentation. James -- James Tauber http://jtauber.com/ journeyman

Re: next page in this category

2007-08-14 Thread James Tauber
Actually, one problem with this is the first / last page will get a 'list index out of range'. I notice _get_next_or_previous_by_FIELD just catches an IndexError so I guess I'll do the same. James On 14/08/2007, at 6:55 PM, James Tauber wrote: > > > Okay, this i

Re: next page in this category

2007-08-14 Thread James Tauber
Okay, this is the solution I came up with: http://dpaste.com/16869/ On 14/08/2007, at 12:31 AM, James Tauber wrote: > > > Imagine you have a Page model with a creation_time field and a many- > to-many field of Categories. > > Clearly you can navigate through each page in

next page in this category

2007-08-13 Thread James Tauber
each category a given page is in, provide the next page in that category (ordered by creation time)? James -- James Tauber http://jtauber.com/ journeyman of some http://jtauber.com/blog/ --~--~-~--~~~---~--~~ You received this message because you

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

2007-08-11 Thread James Tauber
On 10/08/2007, at 11:41 PM, Andrew wrote: > I'm so happy that you've taken the initiaive with this. I'm happy to > help code -- just let me know how. Would be great to have you on board. To help, I suggest you a) subscribe to the django-mailer list http://groups.google.com/group/django

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

2007-08-08 Thread James Tauber
My point is that you just need an iterable. Both lists and QuerySets meet this requirement. There is no casting in Python. You don't need to "cast" a QuerySet to a list. James On 08/08/2007, at 12:05 PM, Kai Kuehne wrote: > > Sure, that's not the point. The point is that the user has to >

Re: {SPAM 01.3} Re: django app for managing sending email to users...

2007-08-08 Thread James Tauber
On 07/08/2007, at 11:42 AM, Ramdas S wrote: > > I am not very sure whether the bulk-mail support personalization. > > I think that should be an important feature. Yes, it will support templates with the user passed in the context. James --~--~-~--~~~---~--~~ Yo

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

2007-08-08 Thread James Tauber
On 07/08/2007, at 10:16 AM, Kai Kuehne wrote: > Just a question: > Why not add this bulk-email-support in the first place? E.g., the > function would > take a list of contrib.auth.models.User objects and iterate over > it. You could > check whether it's a QuerySet and cast it to list if needed

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

2007-08-08 Thread James Tauber
ow the bottom layer works. I've also, at the request of a couple of people, set up a Google group. I'll move design discussions there (so join if you want to participate) but give occasional updates here. http://groups.google.com/group/django-mailer James On 05/08/2007, at 3:23 PM,

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

2007-08-07 Thread James Tauber
Also posted to http://code.google.com/p/django-mailer/wiki/InitialDesignThoughts I'll check in some initial models in the next day or so. James On 07/08/2007, at 9:04 AM, James Tauber wrote: > Here are some more thoughts below which I'll add to the project wiki &

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

2007-08-07 Thread James Tauber
On 06/08/2007, at 9:40 AM, Fabien Schwob wrote: > 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 this future app ? First of a

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

2007-08-05 Thread James Tauber
ailer list at Google Groups if people prefer. James -- James Tauber http://jtauber.com/ journeyman of some http://jtauber.com/blog/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users&

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

2007-08-03 Thread James Tauber
Great, I'll start something at Google Code Project Hosting and whatever you (or anyone else) can help with will be most welcome. django-mailer will probably be the project name. James On 03/08/2007, at 5:12 PM, Jacob Kaplan-Moss wrote: > > On 8/3/07, James Tauber <[EMAIL PRO

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

2007-08-03 Thread James Tauber
On 03/08/2007, at 5:55 PM, Bram - Smartelectronix wrote: > I'm exactly in the same situation, with the same needs for > splicemusic.com. Right now I have a big loop which goes over all > users, > and for each user checks if there are any new events that happened. > > This scales really badly, an

django app for managing sending email to users...

2007-08-03 Thread James Tauber
A number of sites I'm working on will optionally notify users of certain events via email. Think of the email you get from a social networking site when someone wants to add you as a friend. Or forum software that emails subscribers to a thread when there's been a new post. I also have the

new django site: PotterPredictions.com

2007-07-11 Thread James Tauber
parate apps and make them available open source. James -- James Tauber http://jtauber.com/ journeyman of somehttp://jtauber.com/blog/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Dja

mailing list for helping django apps jam together

2007-02-25 Thread James Tauber
.com/group/django-hotclub James -- James Tauber http://jtauber.com/ journeyman of some http://jtauber.com/blog/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post

Re: catalog of django apps?

2007-02-16 Thread James Tauber
enabled tools. > > Nathan > > On 2/15/07, James Tauber <[EMAIL PROTECTED]> wrote: >> >> On 15/02/2007, at 8:48 PM, James Bennett wrote: >> >>> >>> On 2/15/07, James Tauber <[EMAIL PROTECTED]> wrote: >>>> Has anyone give m

Re: catalog of django apps?

2007-02-16 Thread James Tauber
On 16/02/2007, at 1:46 AM, James Bennett wrote: > > On 2/15/07, James Tauber <[EMAIL PROTECTED]> wrote: >> That would be great. In fact, it would be nice if many of the >> component apps of the site were themselves available on the site for >> building other so

Re: catalog of django apps?

2007-02-15 Thread James Tauber
On 15/02/2007, at 8:48 PM, James Bennett wrote: > > On 2/15/07, James Tauber <[EMAIL PROTECTED]> wrote: >> Has anyone give much thought to building a "Cheeseshop" for reusable >> Django apps? > > A couple people have tried to start sourceforge-esque sit

catalog of django apps?

2007-02-15 Thread James Tauber
Has anyone give much thought to building a "Cheeseshop" for reusable Django apps? I have a bunch of ideas but want to check what's been done already. I'm thinking it could be a two-tiered catalog: one tier accepting all submissions, the other tier being more constrained to apps that follo

Re: "Best" way of using templates

2007-02-14 Thread James Tauber
If the formatting could be applied to different classes, I'd use a filter. If the formatting only makes sense for Houses, I'd make it a method on House. James On 14/02/2007, at 9:51 PM, Jonathan Ballet wrote: > > Hello everybody, > > some days ago, my co-worker did some things which keep b

Re: Running django with stackless

2007-02-10 Thread James Tauber
Is your mention of webpy everywhere instead of Django a cut-and-paste error? Are you really asking about django or about webpy? On 10/02/2007, at 7:30 AM, krypton wrote: > > Guys I m using threads to use concurrecy in my webapps and I find it > to be needlessly slow, because most of the stuff

Re: Installed apps settings, necessary?

2007-02-10 Thread James Tauber
They need to be in INSTALLED_APPS for syncdb to pick up the models and make any necessary additions to the database. There may be other uses as well (contrib.admin might use it too, for example) but I'm not sure. James On 09/02/2007, at 11:23 AM, voltron wrote: > > Hi all, going bto instal

Re: full content feeds

2007-02-03 Thread James Tauber
Actually, it looks like Atom1Feed is where the restriction is. Anyone have a replacement for Atom1Feed that does full-content? Otherwise, I'll write one and contribute it (I'm working on Django support for the Atom Publishing Protocol, anyway) James On 03/02/2007, at 2:39 PM, Ja

Re: full content feeds

2007-02-03 Thread James Tauber
But the description template seems to just control the content of the summary element in Atom. If I want a full content feed, rather than just a summary, it looks like I can't use django.contrib.syndication.views.feed On 03/02/2007, at 4:47 AM, aaloy wrote: > 2007/2/3, James Tauber

full content feeds

2007-02-02 Thread James Tauber
I've implemented a very quick "announcement" feed as coded below. This meets my current need of adding news items in the admin and having an Atom feed for them (there are also HTML views but that's irrelevant to my question). However, I'd like my feed to be full content. Given what I have

Re: not receiving error email

2007-02-01 Thread James Tauber
g any exception. James On 31/01/2007, at 6:49 PM, James Bennett wrote: > > On 1/31/07, James Tauber <[EMAIL PROTECTED]> wrote: >> I just got an unhandled exception error on my production site but >> didn't receive an email. > > There are some cases where this will hap

not receiving error email

2007-01-31 Thread James Tauber
I just got an unhandled exception error on my production site but didn't receive an email. I have ADMINS set and django in general has no problem emailing (account activation works fine). Is there something else I need to do to get error emails? Any other suggestions as to what to look for

Re: 2 Questions!

2007-01-30 Thread James Tauber
accents!!) télévision but when I look for > "télé" > I get a unicode error. If I look for "vision" everything works just fine. > Any idea why? Sounds like one is a Unicode object and the other an encoded string (maybe UTF-8 or Latin-1). James -- James Tauber

Re: add manipulator with current user field

2007-01-14 Thread James Tauber
On 14/01/2007, at 10:29 AM, Honza Král wrote: On 1/14/07, James Tauber <[EMAIL PROTECTED]> wrote: I have a model with a required field of ForeignKey(User) What's the easiest way to write an add manipulator that automatically provides the current authenticated user for that fiel

add manipulator with current user field

2007-01-14 Thread James Tauber
I have a model with a required field of ForeignKey(User) What's the easiest way to write an add manipulator that automatically provides the current authenticated user for that field? James -- James Tauber http://jtauber.com/ journeyman of some http://jtauber.com

Re: flatpages with content entirely in template

2007-01-03 Thread James Tauber
Makes sense. I guess djangoproject.com might not be the best production deployment of django to look to for the latest-and- greatest way to do things :-) James On 03/01/2007, at 10:40 PM, James Bennett wrote: On 1/3/07, James Tauber <[EMAIL PROTECTED]> wrote: It does, however,

Re: flatpages with content entirely in template

2007-01-03 Thread James Tauber
Thanks, that's helpful. It does, however, raise the question why djangoproject.com does the homepage as a flatpage rather than direct_to_template generic view. James On 03/01/2007, at 7:41 PM, James Bennett wrote: On 1/3/07, James Tauber <[EMAIL PROTECTED]> wrote: Or are p

user registration app

2007-01-03 Thread James Tauber
/account_management_patterns (there I was describing what I built for Quisition, an application I'm now porting to Django) I'd rather not have to write my own, but if I do, I'll try to make it generic enough that others can use it. James -- James Tauber http://jtauber.

flatpages with content entirely in template

2007-01-03 Thread James Tauber
nd is this indeed what djangoproject.com itself is doing?) James -- James Tauber http://jtauber.com/ journeyman of some http://jtauber.com/blog/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &quo

per-user databases

2006-12-16 Thread James Tauber
r-specific information. Has anyone done something like this with Django before? James -- James Tauber http://jtauber.com/ journeyman of some http://jtauber.com/blog/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo