Re: Password protected URLs Django - choose which to be protected also in admin

2012-04-15 Thread Kevin
Depending on how you are building your application, you have a few options here: - If you need to protect specific rows in a database to only a handful of users, and make this configurable in admin site, use something like django-guardian to provide row-level permissions. - If you absolutely n

Password protected URLs Django - choose which to be protected also in admin

2012-04-14 Thread rentgeeen
Hello, I have quite interesting problem with password protected content in Django. I can successfully protect my content or URLs in Django by using "@login_required" decorator. Example: **Urls.py** urlpatterns = patterns('', url(r'^(?P[a-zA-Z0-9_.-]+)/$', 'example.sort'), ) **Views.py**