from django.conf.urls import url from django.contrib.auth.decorators import login_required from categories.views import CategoriesEdit urlpatterns = [ url(r'^$', login_required(CategoriesEdit.as_view()), name="categories_edit"), ]
from django.conf.urls import url from categories.views import CategoriesEdit urlpatterns = [ url(r'^$', CategoriesEdit.as_view(), name="categories_edit"), ]
from django.conf.urls import url, patterns from django.contrib.auth.decorators import login_required from categories.views import CategoriesEdit urlpatterns = patterns( '', url(r'^$', login_required(CategoriesEdit.as_view()), name="categories_edit"), )
# coding: utf-8 from django.conf.urls import patterns, url from django.contrib.auth.decorators import login_required from categories.views import CategoriesEdit urlpatterns = patterns('', url(r'^$', login_required(CategoriesEdit.as_view()), name = "categories_edit"), )