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.
19 lines
630 B
19 lines
630 B
from django.urls import include, path
|
|
from django.contrib import admin
|
|
from django.contrib.auth import views as auth_views
|
|
|
|
from contest.views import index, register, profile
|
|
|
|
|
|
urlpatterns = [
|
|
path('', index, name="index"),
|
|
path('cqtufm2019/', include('contest.urls', namespace='contest')),
|
|
|
|
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')),
|
|
]
|