Skip to content

Instantly share code, notes, and snippets.

@m3ck0
Last active March 21, 2016 10:04
Show Gist options
  • Save m3ck0/a8268dd7f1079715dc75 to your computer and use it in GitHub Desktop.
Save m3ck0/a8268dd7f1079715dc75 to your computer and use it in GitHub Desktop.
from django.contrib.auth.decorators import login_required
from django.conf.urls import url
from .views import HomeView
from .views import SigninView
from .views import SignupView
from .views import SignoutView
urlpatterns = [
url('^$', login_required(HomeView.as_view()), name='index'),
url('signout/$', login_required(SignoutView.as_view()), name='signout'),
url('signin/$', SigninView.as_view(), name='signin'),
url('signup/$', SignupView.as_view(), name='signup'),
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment