Last active
March 21, 2016 10:04
-
-
Save m3ck0/a8268dd7f1079715dc75 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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