from django.urls import path
from myapp import views
from django.contrib.auth import views as auth_views
from django.contrib.auth.views import PasswordResetView

app_name = 'myapp'

urlpatterns = [
    path(r'', views.IndexView.as_view(), name='index'),
    path('login', views.user_login, name='login'),
    path('logout', views.user_logout, name='logout'),
    path('register',views.register, name='register'),
    path('forgot_password', views.forgot_password, name='forgot_password'),
    path('about', views.about, name='about'),
    path('<int:topic_id>', views.DetailView.as_view(), name='detail'),
    path('findcourses', views.findcourses, name="findcourses"),
    path('place_order', views.place_order, name="place_order"),
    path(r'myOrder/', views.myOrder, name='myOrder'),
    path('review', views.review_view, name="review_view"),
    path('myaccount', views.myaccount, name='myaccount')

    ]
