Re: I'm wanting to modify Django CMS so I can restrict the content I make to particular users site side?
On 21 Sty, 12:15, littlejim84wrote: > I have content that I've created in Django CMS that I then want to > restrict access to on the site site (not the editing side, like with > the CMS_PERMISSIONS option in Django CMS). I've been told that I can > use either Middleware or Template Context Processors to inject my own > code into the way Django CMS is doing things. i'm not sure if i understand you well, but if i do, your problem seems to be quite simple to resolve. each page in django-cms has two options in "advanced settings" section (at the very bottom of editing page): * login required * menu login required HTH -- greetings, ojo -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.
I'm wanting to modify Django CMS so I can restrict the content I make to particular users site side?
Hello. I'm not really an expert in Python or Django, but am looking for a solution to this problem. I've had no luck with this in the Django CMS mailing list or IRC and it's really more about Django and how to mod things generally so I can have more control over things. I'm not wanting to mod the actual code of Django CMS as I want to retain it so it doesn't mess with any updates of it in the future. I'm not an expert enough to be able to submit patches to it or anything like. I have content that I've created in Django CMS that I then want to restrict access to on the site site (not the editing side, like with the CMS_PERMISSIONS option in Django CMS). I've been told that I can use either Middleware or Template Context Processors to inject my own code into the way Django CMS is doing things. I'm basically wanting to have a login on the site site where users can sign up (I presume I should use django-registration app for this?) and only when they have signed up they can have access to all my content I've made in Django CMS that will most probably be at the URL of 'http://domain.com/students/'. Thing is, I'm not really too sure how to do this? Do I use Middleware or use Context Processors? How do I check the URLs in these things? I could really do with some baby steps to help me here... I'm looking at this as a general way to mod Django apps in the future without having to mess with their code at all. I'm presuming this is the way to do it for these sort of things? Thank you in advance. Please help a sorta noob! -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.