1 2 3 4 5 6 7 8 9 10 11 | from django.conf.urls.defaults import *
from django.contrib.auth.decorators import login_required
from django.views.generic.list_detail import object_list
extra_apps_option = {
#queryset ...
}
urlpatterns = patterns('',
(r'^conf/$', login_required(object_list), extra_apps_option),
)
|
More like this
- SWFUpload auth decorator by debrice 4 years, 3 months ago
- HTTP basic auth decorator by bthomas 4 years, 3 months ago
- ad-hoc request authentication by mwicat 2 years ago
- LoginRequiredMixin by slink 2 years ago
- view by view basic authentication decorator by Scanner 6 years ago
Comments