14.3.13. crate_anon.crateweb.config.urls
crate_anon/crateweb/config/urls.py
Copyright (C) 2015, University of Cambridge, Department of Psychiatry. Created by Rudolf Cardinal (rnc1001@cam.ac.uk).
This file is part of CRATE.
CRATE is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
CRATE is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with CRATE. If not, see <https://www.gnu.org/licenses/>.
crateweb Django URL configuration
The urlpatterns list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
Add an import:
from my_app import views
Add a URL to urlpatterns:
re_path(r'^$', views.home, name='home')
Class-based views
Add an import:
from other_app.views import Home
Add a URL to urlpatterns:
re_path(r'^$', Home.as_view(), name='home')
Including another URLconf
Add an import:
from blog import urls as blog_urls
Add a URL to urlpatterns:
re_path(r'^blog/', include(blog_urls))