|
|
|
|
@ -18,7 +18,10 @@ from django.urls import path, include |
|
|
|
|
from django.views.generic import TemplateView |
|
|
|
|
from django.conf import settings |
|
|
|
|
|
|
|
|
|
from apps.course.views import CoursesView, likes, coursecomment, CourseView, LessonView |
|
|
|
|
from apps.course.views import ( |
|
|
|
|
CoursesView, likes, coursecomment, |
|
|
|
|
CourseView, LessonView, SearchView, |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
urlpatterns = [ |
|
|
|
|
path('admin/', admin.site.urls), |
|
|
|
|
@ -28,6 +31,7 @@ urlpatterns = [ |
|
|
|
|
path('course/<int:course_id>/like', likes, name='likes'), |
|
|
|
|
path('course/<int:course_id>/comment', coursecomment, name='coursecomment'), |
|
|
|
|
path('lesson/<int:pk>/', LessonView.as_view(), name='lesson'), |
|
|
|
|
path('search/', SearchView.as_view(), name='search'), |
|
|
|
|
path('', TemplateView.as_view(template_name="templates/lilcity/main.html"), name='index'), |
|
|
|
|
] |
|
|
|
|
|
|
|
|
|
|