urls.py 952 Bytes
Newer Older
1
from django.contrib.auth import views as auth_views
2 3 4 5 6
from django.conf.urls.defaults import patterns, url

from etherpadlite.models import *


7 8 9 10 11 12
urlpatterns = [
    #path('', 'django.contrib.auth.views.login',
        #{'template_name': 'etherpad-lite/login.html'}, name='login'),
    path('', auth_views.LoginView.as_view(),
        {'template_name': 'login.html'}, name='login'),
    path('etherpad', 'django.contrib.auth.views.login',
13
        {'template_name': 'etherpad-lite/login.html'}),
14
    path('logout', 'django.contrib.auth.views.logout',
15
        {'template_name': 'etherpad-lite/logout.html'}),
16 17 18 19 20 21
    path('accounts/profile/', 'etherpadlite.views.profile'),
    re_path(r'^etherpad/(?P<pk>\d+)/$', 'etherpadlite.views.pad'),
    re_path(r'^etherpad/create/(?P<pk>\d+)/$', 'etherpadlite.views.padCreate'),
    re_path(r'^etherpad/delete/(?P<pk>\d+)/$', 'etherpadlite.views.padDelete'),
    path('group/create/', 'etherpadlite.views.groupCreate')
]