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
- Generic object_detail view with multiple named URL filters by cotton 1 month, 3 weeks ago
- object-oriented generic views by carljm 3 years, 5 months ago
- ModelForm-based create_update generic views by carljm 3 years, 6 months ago
- View dispatch based on HTTP verb by malcolmt 4 years, 4 months ago
- Decorating URL includes by cotton 5 months, 2 weeks ago
Comments