Re: unique_together across tables?

2005-08-08 Thread adrian
I think unique_together is not actually the behavior I mean. I mean for the two fields to be unique in the sense that if a value is found in one field then it won't also be found in the other field. My question stands. Anyone know how to do this?

unique_together across tables?

2005-08-08 Thread adrian
Is there a way to create multiple tables which share an id field? My meaning is that ids would be unique over both tables. It is already possible to indicate that two fields in the same table share this constraint, using the "unique_together" option. This would be useful for creating a "transla

Re: Composite key / unique_together fields?

2005-08-08 Thread Joe Topjian
Yeah, that's the idea. So the Entries table would look like id, blog_id, post_number, post_text, 1, 1, 1, Joe's first entry 2, 1, 2, Joe's second entry 3, 2, 1, Jane's first entry 4, 2, 2, Jane's second entry -Michael Gotcha! Sorry for the confusion! My opinion would be to go with your

Re: Composite key / unique_together fields?

2005-08-08 Thread Michael Josephson
Hi, > Are you trying to do this: > > Weblogs > --- > 1: Joe's blog > 2: Jane's blog > 3: John's blog > > Entries > --- > 1: weblog->1: Joe's first entry > 2: weblog->1: Joe's second entry > 1: weblog->2: Jane's first entry > 2: weblog->2: Jane's second entry Yeah, that's the idea. So t

Re: Composite key / unique_together fields?

2005-08-08 Thread Joe Topjian
>> Taking just the weblog example, what I mean is for each weblog to have >> its own set of numeric IDs for posts independent of any other weblog's >> data that is in the same installation of the app even though all the >> post data is in the same table. Everybody's data should be in the same >> s

Re: Composite key / unique_together fields?

2005-08-08 Thread Joe Topjian
> Oh, the weblog app and the bug tracking app are two totally separate > examples to try to illustrate the idea I'm after. I'm not intending to > mix multiple types of data within a single table. Right.. I understand that they are two different examples. :) > Taking just the weblog example, wha

Re: Composite key / unique_together fields?

2005-08-08 Thread Michael Josephson
Oh, the weblog app and the bug tracking app are two totally separate examples to try to illustrate the idea I'm after. I'm not intending to mix multiple types of data within a single table. Taking just the weblog example, what I mean is for each weblog to have its own set of numeric IDs for posts

Re: Composite key / unique_together fields?

2005-08-08 Thread Joe Topjian
> I'd like to have an auto incrementing ID field that is unique within a > particular subset of the records identified by another field. e.g. if > you had a weblog application that supported multiple weblogs you could > have posts ID 1, 2 and 3 for weblog ID 1 and posts ID 1,2, and 3 for > weblog

Composite key / unique_together fields?

2005-08-08 Thread Michael Josephson
Hi all, First proper post to the list. I've been working with Django since shortly after the code was announced, have worked through the tutorials and it's gone pretty smoothly so far. So thanks for making an interesting project available. Now onto the question :-) (This isn't exactly the scena

Any live Django sites outside Lawrence yet?

2005-08-08 Thread Simon Willison
This is purely to satisfy my own curiosity, but does anyone have a deployed, public Django site up and running yet (aside from the sites built by the team in Lawrence)? It would be cool to hear about intranet apps as well, but I'm really interested in seeing some examples of Django runnin

Re: Planet Django

2005-08-08 Thread Jacob Kaplan-Moss
On Aug 7, 2005, at 11:55 PM, Milton Waddams wrote: any chance of an rss feed? I added one this morning: http://www.djangoproject.com/rss/community/ Jacob

Re: Problems with User Auth stuff

2005-08-08 Thread Jason F. McBrayer
On Tue, 2005-08-02 at 18:28 +, Django wrote: > I made it work with the users going in django.models.auth. But it is > not a very good solution as it becomes project-wide and I cannot have > another similar application. > > I think we need to have a way to tell the auth/sessions framework the

Re: TemplateSyntaxError

2005-08-08 Thread Brantley
Thanks

Re: TemplateSyntaxError

2005-08-08 Thread Adrian Holovaty
On 8/8/05, Brantley <[EMAIL PROTECTED]> wrote: > Here's my conf, if you'd like, and everything's pointing to the correct > location, I know that it's not the tutorial suggested directory layout: Check out the "Multiple Django installations on the same Apache" section on this page: http://www.djan

Re: TemplateSyntaxError

2005-08-08 Thread Brantley
Yessir, running both with Apache and mod_python. Here's my conf, if you'd like, and everything's pointing to the correct location, I know that it's not the tutorial suggested directory layout: ServerAlias magic.deadwisdom.com ServerSignature On SetHandler python-program PythonHandler dja

Re: TemplateSyntaxError

2005-08-08 Thread Adrian Holovaty
On 8/8/05, Brantley <[EMAIL PROTECTED]> wrote: > I keep getting a TemplateSyntaxError randomly. When I'm working with > the admin side of my site, I'll often get this error > "TemplateSyntaxError: Template 'base_site' cannot be extended, because > it doesn't exist". It's entirely random, so I ca

TemplateSyntaxError

2005-08-08 Thread Brantley
I keep getting a TemplateSyntaxError randomly. When I'm working with the admin side of my site, I'll often get this error "TemplateSyntaxError: Template 'base_site' cannot be extended, because it doesn't exist". It's entirely random, so I can't replicate it. Any ideas? Full Traceback: Traceba

Django job: Get paid to work with Django full-time

2005-08-08 Thread Adrian Holovaty
Hi all, We're hiring a Web developer at World Online, which is the company Jacob and I work for, at which we developed Django. Obviously, we use Django very heavily. This is your chance to get paid to work with Django full-time. I've posted a job ad to connection.oreilly.com but will repost it h