Check out this page:
https://docs.djangoproject.com/en/dev/topics/auth/#handling-object-permissions
Also, you may want to check out decorators if the user only has to be logged
in. Another method you could use are groups.

On Tue, Oct 11, 2011 at 1:56 PM, Petey <efri...@gmail.com> wrote:

> I am trying to do a private subpage for every user which will be accessed
> trough url:
>     url(r'^galeria/$', 'publisher.views.private_gallery'),
>
> I was trying to create a query set for private gallery by using a signal:
> user_logged_in
>
> p = Publisher.objects.filter(status='p', pub_type='private_gallery',
> user_gallery=str(user_logged_in)).order_by('-id')
>
> However, django does not accept signals in querysets.
> Could you give me some good hints on making private pages which can be
> viewed only by Users?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/3gwZr3oZjRIJ.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

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

Reply via email to