from django.conf.urls import url, include
from django.contrib.auth.decorators import user_passes_test
from django.contrib.auth import views as auth_views

from .views import IndexView

admin_required = user_passes_test(
    lambda u: u.is_superuser,
    login_url='/accounts/login/'
)

urlpatterns = [
    url(r'^$',
    IndexView.as_view(),
    name='index_page'),
]

a78884c3ef1102ed7e8ec5a2e214f684a6c29b76
<mask token>

<mask token>
admin_required = user_passes_test(lambda u: u.is_superuser, login_url=
    '/accounts/login/')
urlpatterns = [url('^$', IndexView.as_view(), name='index_page')]

from django.conf.urls import url, include
from django.contrib.auth.decorators import user_passes_test
from django.contrib.auth import views as auth_views
from .views import IndexView
admin_required = user_passes_test(lambda u: u.is_superuser, login_url=
    '/accounts/login/')
urlpatterns = [url('^$', IndexView.as_view(), name='index_page')]

from django.conf.urls import url, include
from django.contrib.auth.decorators import user_passes_test
from django.contrib.auth import views as auth_views

from .views import IndexView

admin_required = user_passes_test(
    lambda u: u.is_superuser,
    login_url='/accounts/login/'
)

urlpatterns = [
    url(r'^$',
    IndexView.as_view(),
    name='index_page'),
]
