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
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**
2 matches
Mail list logo