2022-01-22 17:04:38 +01:00
|
|
|
from django.urls import include, path
|
2017-01-18 02:25:12 +01:00
|
|
|
from django.contrib import admin
|
|
|
|
from django.contrib.auth import views as auth_views
|
|
|
|
|
2017-01-22 22:54:57 +01:00
|
|
|
from contest.views import index, register, profile
|
2017-01-18 02:25:12 +01:00
|
|
|
|
2017-01-19 18:42:11 +01:00
|
|
|
|
2017-01-18 02:25:12 +01:00
|
|
|
urlpatterns = [
|
2022-01-22 17:04:38 +01:00
|
|
|
path('', index, name="index"),
|
2022-01-22 19:11:47 +01:00
|
|
|
path('contest/', include('contest.urls', namespace='contest')),
|
2017-01-18 02:25:12 +01:00
|
|
|
|
2022-01-22 17:04:38 +01:00
|
|
|
path('admin/', admin.site.urls),
|
|
|
|
path('login/', auth_views.LoginView.as_view(), name='login'),
|
|
|
|
path('logout/', auth_views.LogoutView.as_view(), {'next_page': '/'}, name='logout'),
|
|
|
|
path('register/', register, name='register'),
|
|
|
|
path('profile/', profile, name='profile'),
|
|
|
|
path('api/', include('api.urls')),
|
2017-01-18 02:25:12 +01:00
|
|
|
]
|