Skip to content
urls.py 1.63 KiB
Newer Older
# (c) 2018
#     MPIB <https://www.mpib-berlin.mpg.de/>,
#     MPI-CBS <https://www.cbs.mpg.de/>,
#     MPIP <http://www.psych.mpg.de/>
#
# This file is part of Castellum.
#
# Castellum is free software; you can redistribute it and/or modify it
# under the terms of the GNU Affero General Public License as published
# by the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# Castellum 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
# Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public
# License along with Castellum. If not, see
# <http://www.gnu.org/licenses/>.

Stefan Bunde's avatar
Stefan Bunde committed
from django.contrib import admin
from django.http import HttpResponse
Stefan Bunde's avatar
Stefan Bunde committed
from django.urls import path
Bengfort's avatar
Bengfort committed
from django.contrib.auth import views as auth_views
from django.views.generic import TemplateView
from django.views.i18n import JavaScriptCatalog
Stefan Bunde's avatar
Stefan Bunde committed

Bengfort's avatar
Bengfort committed
from subject_management.views import SubjectCreateView
Stefan Bunde's avatar
Stefan Bunde committed

def dummy(request):
    return HttpResponse('', status=204)
Stefan Bunde's avatar
Stefan Bunde committed


urlpatterns = [
    path('', TemplateView.as_view(template_name='index.html'), name='index'),
    path('login/', auth_views.LoginView.as_view(template_name="login.html"), name='login'),
Bengfort's avatar
Bengfort committed
    path('logout/', auth_views.LogoutView.as_view(), name='logout'),
    path('ping/', dummy, name='ping'),
Bengfort's avatar
Bengfort committed
    path('foo/', SubjectCreateView.as_view(), name='subject-create'),
    path('jsi18n/', JavaScriptCatalog.as_view(), name='javascript-catalog'),
Stefan Bunde's avatar
Stefan Bunde committed
    path('admin/', admin.site.urls),
]