Skip to content

Commit 1e85c58

Browse files
authored
Merge pull request #12 from Aeromon/master
Update urls.py
2 parents b5ced97 + 758b9e3 commit 1e85c58

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

AppStore/urls.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@
2121

2222
urlpatterns = [
2323
path('admin/', admin.site.urls),
24+
path('', app.views.index_products, name='products'),
2425
##path('', app.views.index, name='index'),
25-
path('add', app.views.add, name='add'),
26-
path('buy', app.views.buy, name='buy')
26+
path('add/', app.views.add, name='add'),
27+
path('buy/', app.views.buy, name='buy')
2728
path('view/<str:id>', app.views.view, name='view'),
2829
path('edit/<str:id>', app.views.edit, name='edit'),
29-
path('login', app.views.login, name='login'),
30-
path('', app.views.index_products, name='products'),
31-
path('purchase', app.views.purchase, name='purchase'),
30+
path('login/', app.views.login, name='login'),
31+
path('purchase/', app.views.purchase, name='purchase'),
3232
]

0 commit comments

Comments
 (0)