You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

20 lines
602 B

from django.urls import path, include
from django.views.generic import TemplateView
from .views import UsersView, OAuth2
app_name = 'tuxbot_gnous_eu'
oauth = OAuth2()
urlpatterns = [
path('', TemplateView.as_view(template_name="index.html"), name='index'),
path('users', UsersView.index, name='users_index'),
path('user/<int:user_id>/', include([
path('show', UsersView.show, name='users_show'),
path('edit', UsersView.edit, name='users_edit'),
])),
path('login', oauth.login, name='login'),
path('login/callback', oauth.callback, name='login_callback'),
]