Re: Having many of one application.

2006-06-24 Thread Malcolm Tredinnick
On Sat, 2006-06-24 at 13:59 +0100, Frankie Robertson wrote: [...] > > I have another, smaller related problem with urls. > I can't do this > (r'^blogs/([_A-Za-z0-9-]+)/', include('bloghost.blog.urls')), > because then the captured bit after blogs doesn't go anywhere. > I have to do this: > .. > (

Re: Having many of one application.

2006-06-24 Thread Frankie Robertson
On 24/06/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > On Fri, 2006-06-23 at 17:58 +0100, Frankie Robertson wrote: > > Please, is there any way of doing this? I've dumped the last approach, > > I'm planning on using inclusion tags to query the database, but the > > templates would still ne

Re: Having many of one application.

2006-06-23 Thread Malcolm Tredinnick
On Fri, 2006-06-23 at 17:58 +0100, Frankie Robertson wrote: > Please, is there any way of doing this? I've dumped the last approach, > I'm planning on using inclusion tags to query the database, but the > templates would still need to know the slug of the hostee's current > page. So generic views

Re: Having many of one application.

2006-06-23 Thread Jay Parlar
On 6/23/06, Frankie Robertson <[EMAIL PROTECTED]> wrote: > > Please, is there any way of doing this? I've dumped the last approach, > I'm planning on using inclusion tags to query the database, but the > templates would still need to know the slug of the hostee's current > page. So generic views d

Re: Having many of one application.

2006-06-23 Thread Frankie Robertson
Please, is there any way of doing this? I've dumped the last approach, I'm planning on using inclusion tags to query the database, but the templates would still need to know the slug of the hostee's current page. So generic views don't work because they don't know what the blog_slug is, as it is I

Re: Having many of one application.

2006-06-21 Thread Frankie Robertson
On 21/06/06, djx <[EMAIL PROTECTED]> wrote: *snip* Okay, so my original post was a bit vague, but I'll have another stab at explaining. -- Start example code --- /blogs/models.py ... class Blog(Model): title = CharField(maxlength=60, core=True, unique=True) tagline = CharField(maxle

Re: Having many of one application.

2006-06-21 Thread djx
GenericRelations looks like a good fit for logging/auditing. eg. lion.log.create(action="create", action_by="userA") lion.log.create(action="modify", action_by="userB", field="weight", value="100") lion.log.create(action="modify", action_by="userB", field="weight", value="120") lion.log.create(act

Re: Having many of one application.

2006-06-20 Thread djx
thanks heaps Nick and Jay. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAI

Re: Having many of one application.

2006-06-20 Thread Jay Parlar
And if you really need per-object permissions, you can use the new GenericRelations recently checked in by Jacob. Ian has a nice post about it here http://feh.holsman.net/articles/2006/06/19/django-generic-relations, which includes all the relevant links. I was able to get a per-object permissio

Re: Having many of one application.

2006-06-19 Thread [EMAIL PROTECTED]
djx, You can keep up with the Row Level/Object permissions by following the developer mailing list for example (http://groups.google.com/group/django-developers/browse_thread/thread/53acb7ed7783f313/36df83efcdbef1e5#36df83efcdbef1e5), and reading the projet wiki entry here (http://code.djangopro

Re: Having many of one application.

2006-06-19 Thread djx
James Bennett wrote: > On 6/19/06, kevin evans <[EMAIL PROTECTED]> wrote: > > I guess I was looking for a way to still use the great built-in admin.i.e. > > be able to assign users to sites within the django generated admin. > > Right now that's not really possible because the permissions system

Re: Having many of one application.

2006-06-19 Thread James Bennett
On 6/19/06, kevin evans <[EMAIL PROTECTED]> wrote: > I guess I was looking for a way to still use the great built-in admin.i.e. > be able to assign users to sites within the django generated admin. Right now that's not really possible because the permissions system used in the admin assigns permi

Re: Having many of one application.

2006-06-19 Thread Guillermo Fernandez Castellanos
hi, There's this info that I saw once on the list: http://lukeplant.me.uk/blog.php?id=1107301634 I have to admit I (very) quickly tried it and could not make it work... I'll have to spend more time over it. If you manage to do it, please tell me. Enjoy, G On 6/19/06, kevin evans <[EMAIL PROT

Re: Having many of one application.

2006-06-19 Thread kevin evans
Thanks James,I guess I was looking for a way to still use the great built-in admin.i.e. be able to assign users to sites within the django generated admin.On 19/06/06, James Bennett <[EMAIL PROTECTED]> wrote: On 6/19/06, kevin evans <[EMAIL PROTECTED]> wrote:> How would one create users that could

Re: Having many of one application.

2006-06-19 Thread James Bennett
On 6/19/06, kevin evans <[EMAIL PROTECTED]> wrote: > How would one create users that could only post to a particular blog/site? By writing views that check whether the user who's trying to post is in the list of allowed users for the blog/site they're trying to post to. -- "May the forces of ev

Re: Having many of one application.

2006-06-19 Thread kevin evans
How would one create users that could only post to a particular blog/site?On 19/06/06, limodou <[EMAIL PROTECTED] > wrote:On 6/19/06, Frankie Robertson < [EMAIL PROTECTED]> wrote:>> The following is used mainly as an example for something I've been> wondering about.>> Say I'm a blog host and want t

Re: Having many of one application.

2006-06-18 Thread limodou
On 6/19/06, Frankie Robertson <[EMAIL PROTECTED]> wrote: > > The following is used mainly as an example for something I've been > wondering about. > > Say I'm a blog host and want to use django. I need all my views to > know which blog (so as to know what information to get) they're using. > I als

Re: Having many of one application.

2006-06-18 Thread Malcolm Tredinnick
On Sun, 2006-06-18 at 19:46 +0100, Frankie Robertson wrote: > The following is used mainly as an example for something I've been > wondering about. > > Say I'm a blog host and want to use django. I need all my views to > know which blog (so as to know what information to get) they're using. > I a