Created
December 9, 2016 08:48
-
-
Save tag1216/c3dc40d915c3ad0deec0fbbf150b6720 to your computer and use it in GitHub Desktop.
DjangoでURLルーティングの階層化
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
urlpatterns = [ | |
url(r"^mysite/", include([ | |
url(r"^accounts/", include([ | |
url(r"^login/$", auth_views.login, {"template_name": "accounts/login.html"}, name="login"), | |
url(r"^logout/$", auth_views.logout, name="logout"), | |
], namespace="accounts", app_name="accounts")), | |
url(r'^admin/', admin.site.urls), | |
url(r'^', include('app.urls')), | |
])) | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment