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/>.
from django.contrib.auth import views as auth_views
from django.views.i18n import JavaScriptCatalog
def dummy(request):
return HttpResponse('', status=204)
path('', TemplateView.as_view(template_name='index.html'), name='index'),
Stefan Bunde
committed
path('login/', auth_views.LoginView.as_view(template_name="login.html"), name='login'),
path('logout/', auth_views.LogoutView.as_view(), name='logout'),
path('foo/', SubjectCreateView.as_view(), name='subject-create'),
path('jsi18n/', JavaScriptCatalog.as_view(), name='javascript-catalog'),