Tuesday, October 11, 2011

Django - how to create a private subpage?

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

No comments:

Post a Comment